devxlogo

May 27, 1999

The Default Value Returned From main()

In this example, main() is missing an explicit return statement. int main() { printf(“hello world”); } In C, when control reaches the end of main() without encountering a return statement,

Create ODBC DSNs Dynamically

You can use Visual Basic to create ODBC Data Sources Names (DSNs) dynamically for MS SQL Server. Simply place this line in a module: Declare Function SQLConfigDataSource Lib “odbccp32.dll” (ByVal

Avoid Empty Exception Handlers

One of the most frustrating experiences when running a Java program is an empty line where you expect information about a thrown exception. The programmer probably meant to catch the