Tip Bank

DevX - Software Development Resource

Building SQL in Code

Question: I am building an SQL statement to Insert and Update records. If the user enters a double quote mark in the text box the SQL statement treats this as

DevX - Software Development Resource

Recognizing variables

Question: I have two varibles, one containing the name of another varible, and one containing a string. How can can I set the varible that’s name is contained in the

DevX - Software Development Resource

RuleZero 1.2 for VID 6 Going Open Source

RuleZero 1.2, the easiest and fastest add-on tool for creating database-driven Web pages in Visual InterDev 6 is now free. You can get a copy from Vertigo Software’s site, www.vertigosoftware.com.

DevX - Software Development Resource

Handling string Exceptions

Several member functions of std::string might throw exceptions. For example, if you use a very large number to specify the initial storage size, string’s constructor will throw an exception: string

DevX - Software Development Resource

Iterators Aren’t Pointers

Suppose you define a the following list object and you need the address of one of its elements: std::list li; std::list ::iterator iter = li.begin(); In many contexts, iter functions

DevX - Software Development Resource

Calling a Member Function From a Destructor

It’s perfectly legal to call a member function?virtual or not?from a destructor. However, you should avoid calling a member function that accesses data members that have already been destroyed. For

DevX - Software Development Resource

The Order of Local Objects’ Destruction

On exit from a scope, destructors are called for all local automatic objects that are declared in that scope, in the reverse order of their declaration. For example: void f()

DevX - Software Development Resource

Understanding Default Initialization

A POD (plain old data) type is a union, struct or class with no user-declared constructors, no private or protected non-static data members, no base classes, and no virtual functions.