Tip Bank

DevX - Software Development Resource

Don’t Duplicate ImageList Controls

A common control, such as a TreeView or a ListView, can use an ImageList control placed on a form different from the current one. This is useful when many forms

DevX - Software Development Resource

Array Length

Question: How do I know the size of the array returned by File.list() so I don’t get the message ArrayIndexOutOfBoundsException when printing the local directory content in the screen? Answer:

DevX - Software Development Resource

Server Folders

Question: Is there a way to get a list of folders for a network drive passing in the server name(for example, \NetDrive). I tried using Dir(“\NetDrive”,vbDirectory) but received only an

DevX - Software Development Resource

Forcing a function to be non-inline

Question: Is there a way to force a function not to be inline?that is, to define the body of a function in a header file, but require that the compiler

DevX - Software Development Resource

List NT Users on Domain

Question: How do I list all the users on an NT domain with Visual Basic? Answer: The following code should get you started. Note that you need to add good

DevX - Software Development Resource

Converting

Question: Are there any utilities that will convert an .EXE file back to a .CPP file? A friend wrote a little program for me, and I would like to alter

DevX - Software Development Resource

OLEAUT32 and Y2K

Question: I have heard that the two-year date cutoff for oleaut32.dll is user-definable. By this I mean that you can set oleaut32 to recognize “80” as 2080 instead of 1980.

DevX - Software Development Resource

Comparing Strings

Question: I have defined a string variable using the following command: #define latinWord 64 char word[latinWord]; I want to use an If statment to see if the variable “word” is