devxlogo

Tip Bank

Avoid using double underscore in your identifiers

Identifiers starting with __ (double underscore) are reserved for C/C++ implementations and standard libraries. Furthermore, C++ programs are transformed by the compiler (inline substitution, addition of this as an argument

Control Arrays are Collections

Most VB4 programmers know they can access a form’s control collection using a For Each loop. Many, however, are not aware that individual control arrays are actually collections. This knowledge

Support a Font the Printer Doesn’t

Often users print from applications that support a font the printer doesn’t. An error occurs if an application uses a statement such as Printer.Print SomethingToPrint following a Printer.FontName = FontName

Center Forms with Taskbar Visible

Just about every VB developer uses the Move (Screen.Width – Width) 2, (Screen.Height – Height) 2 method to center the forms on screen. However, when the user has the Windows

Set a Flag to True/False

When you want to set a flag to True or False, depending on the results of a comparison, you don’t need to use an If statement like this: If x

Navigating the Object Hierarchy

Question: I am trying to process a table and its rows and cells on an HTML page. I have given the Table, TR and TD elements IDs. I am trying

NT Workstation DualBoot with 95

Question: I have Windows 95 OSR 2 installed (FAT32). Should I be able to install NT Workstation/Server as a dual boot option? Whenever I run setup.exe I get a message

String literals are const

According to the C++ standard, the following line is illegal: char *s = “hello world”; //illegal Though still supported by many compilers, it’s deprecated and should be avoided. The reason