Tip Bank

DevX - Software Development Resource

A Shorthand for Internationalization

The software industry uses the term “I18N” as an abbreviation for the terminternationalization. The idea is that I18N begins with an i, ends with an n, and has 18 characters

DevX - Software Development Resource

Shorthand for Assignment Expressions

For recursive assignment expressions such as the following: x = x+5; x= x/5;x = x * 5; C++ defines shorter versions that eliminate the need to repeat the variable’s name

DevX - Software Development Resource

Parenthesize Complex Expressions for Clarity

Although C++ clearly defines operators’ precedence, the compiler is allowed to compute subexpressions with identical precedence in a platform-defined order. Besides, many programmers don’t remember which operators have higher precedence

DevX - Software Development Resource

Referring to a Class Member

You can refer to a name of a class member only in one of the following contexts: In the scope of its class or a class derived from its class

DevX - Software Development Resource

Initialization of Built-In Types

Question: What does the declaration int i(0) ; mean? Does C++ have a type ‘int’ constructor? And why doesn’t Visual C++ accept a char* p(0) ; declaration? Answer: This expression

DevX - Software Development Resource

Saving Form Data Within the Form Format

Question: I want users to be able to save a partially completed form, preferably to their hard disk with a user specified name, so that they can retrieve the file

DevX - Software Development Resource

Using the CDO for NTS Library With WML

Question: I have installed the library in my server but when I try to do Server.CreateObject(“CDONTS.NewMail”) in my ASP file, it returns an error: ‘ASP 0177 : 800401f3’ “Server.CreateObject failed”

DevX - Software Development Resource

Generating WML via an ASP

Question: Can I generate WML via an ASP? If so, do I no longer need a WAP server installed on top of IIS? Answer: ASP is a server-side scripting language.

DevX - Software Development Resource

Heap Issue

Question: I have a class A (from a DllA) inside a method that does a new on a class B defined in the DllB, uses it and deletes it. When