Tip Bank

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

Optimizing Member Alignment

A class’s size can change simply by playing with the order of its members’ declaration. For example: struct A{ bool a; int b; bool c;}; // sizeof (A) == 12

DevX - Software Development Resource

Client-side Processing With ASP

Question: We’ve developed a TV scheduling program in HTML, but we have problems with speed (connectivity as well as display refresh) and the inherent functional limitations of HTML. We need

DevX - Software Development Resource

Generate Audit Table Trigger Code

This code will generate code to do a column-by-column comparison against a table, assuming that you are joining the inserted table (aliased as “i”) with the deleted table (aliased as

DevX - Software Development Resource

Models of Garbage Collectors

If you need a garbage collector, you can either install one or implement it by yourself. Which type of garbage collection should you use? A conservative garbage collector and a