September 8, 1998

Extra DLLs as a Result of Conditional Compilation

Starting with Visual Basic 4.0, you can add conditional compilation statements and use them to create different versions for 16-bit and 32-bit environments or to call debugging DLLs while testing your applications. However, you have to be careful when you use the setup wizard to generate the installation package because

Determine if Your Program is Running Within VB’s IDE

Sometimes it is useful to know if your program is running within Visual Basic’s Integrated Development Environment (IDE) or as a standalone EXE. This routine returns True if the program is running within VB’s IDE: Public Function RunningInIDE() As Boolean ‘Assume running as EXE for now RunningInIDE = False ‘Trap