devxlogo

Tip Bank

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

Delete an Item From Favorites

Question: How do I delete an item from Favorites under Windows NT 4.0? Answer: Under Windows NT 4.0, the favorites are saved in this folder: C:WINNTProfilesFavorites You can delete items

Netscape Displays a Blank Page

Question: My Web page works fine using Internet Explorer but if view with Netscape it displays a blank page. I think it has something to do with the table commands,

Pre-Fill a User Form

Question: I’d like to implement a script on my Web site that I’ve seen on other sites. This script asks visitors to register for free through a form as a