Tip Bank

DevX - Software Development Resource

Sending Null Values to a Required Field

Question: When I try to send some information to an access database through ASP, I get the following error: [Microsoft][ODBC Microsoft Access 97 Driver] Field ‘tablename.class’ can’t be a zero-length

DevX - Software Development Resource

Bit Fields and Memory Alignment

Question: Using Visual C++ 6.0, I recently attempted to create a structure to implement a data message that my application had to process. The following code segment produced unexpected results

DevX - Software Development Resource

OS System Calls

Question: How can I pass a member function of a class as a pointer in C (pointer type expected: void *)? Answer: You can’t pass a pointer to a C++

DevX - Software Development Resource

Best Method for Inserting Rows

Question: From a database-efficiency standpoint, which is better for SQL when inserting new rows into a table: issuing ad hoc SQL statements in the form of “Insert Into…” or using

DevX - Software Development Resource

Clearing the Screen

Question: What is the “clear screen” function in C++, and which library is it in? Answer: Standard C and C++ don’t define a function that clears the screen. DOS and

DevX - Software Development Resource

SQL Summary

Question: How do I print out all of the tables, the fields the tables contain, and the datatype of the fields in my accounting database (for report creation)? I am