Favor the Function Object to the Function Pointer in STL Algorithms
Many of the STL algorithms have two versions, with one version taking one less parameter than what the second version takes. The one with lesser parameters implies its default logic
Many of the STL algorithms have two versions, with one version taking one less parameter than what the second version takes. The one with lesser parameters implies its default logic
You cannot change the value of a nodes checkbox in the event treeview_NodeCheck as explained in this tip. Besides that, the event doesn’t fire at all when clicking a nodes
For persisting Java objects in a file, use java.io.ObjectOutputStream. ObjectOutputStream writes primitive data types or Java objects. Persistent storage can be accomplished by using a file for the stream. Only
The MSDN-library does not contain a simple example demonstrating the picking-out item fromdrop-down list box for the property grid items. This sample demonstrates the techniquefor setting two items of a
This tip is in response to the tip “Register ActiveX Files Using the Mouse.” There’s a much easier way. Put a shortcut to regsvr32.exe and regsvr32.exe /u in your “SendTo”
A gem in the arsenal of command-line utilities that comes with SQL Server is the SQLMAINT application. With it, you can run a variety of maintenance activities, including DBCC checks,
The following code reads the time zone names stored in the registry and places those names in a combobox. The time zone names (there are about 50 or so) look
This code demonstrates how to create a tModel taxonomy in UDDI for WSDL specifications using UDDI4J. import org.uddi4j.datatype.tmodel.TModel;import org.uddi4j.response.AuthToken;import org.uddi4j.datatype.OverviewDoc;import org.uddi4j.util.KeyedReference;import org.uddi4j.util.CategoryBag;import java.util.Vector;import org.uddi4j.response.TModelDetail;import org.uddi4j.client.UDDIProxy;private String createTaxonomy() { try{ TModel
This tip helps to read configuration information in an XML file. Using XPath, the values can be read simply and the value is fetched from the file as CString. /***********