Rename a file
Question: In VB, how do you rename a file (at runtime)? Answer: Use the FileSystem object (Microsoft Scripting Runtime, SCRRUN.dll) as follows: Dim fs As New FileSystemObjectDim f As FileSet
Question: In VB, how do you rename a file (at runtime)? Answer: Use the FileSystem object (Microsoft Scripting Runtime, SCRRUN.dll) as follows: Dim fs As New FileSystemObjectDim f As FileSet
Question: How can I support 64-bit integers on a 32-bit system? I need to do division on numbers exceeding 4.3 billion. I have the resaults in a char value, and
Using a text box and submit button, you can validate an e-mail address to make sure there is only one @ sign and that it is not at the beginning
On some occasions, the performance boost that can result from moving declarations is quite considerable. Consider this example: void use() { string s1; if (condition == false){ return; //s1 was
Java’s PipedInputStream and PipedOutputStream classes allow you to write data to an OutputStream object and to read this data from an InputStream object (see the tips “Pass Data Between Threads
Web authors should be used to using the ALT tag to provide a textual label for an image. However, you can’t apply ALT text to a textual link, and most
Objects are made serializable by implementing the java.io.Serializable interface. In general, when you serialize an object instance, all of the instance’s fields are considered to be part of its state,
A downcast is a cast from a base to a derived object. Before the introduction of RTTI to the language, downcasts were regarded as bad programming practice–they were unsafe and
A compiler can automatically optimize the code by unrolling loops. Consider this code: int *buff = new int[3]; for (int i =0; i