Tip Bank

DevX - Software Development Resource

C++ origins

Question: Who invented C++, and why is it so popular? Answer: C++ was created as an extension to C by AT&T researcher Bjarne Stroustrup, who built the first version of

DevX - Software Development Resource

Percentage of whole, upon a group

Question: Is it possible to display a grouped column as a percentage of the whole? Say I have a table that has two fields: ACCESS_TYP CHRG————————- 10 1.00 10 2.00

DevX - Software Development Resource

Avoid Deleting a Pointer More Than Once

The results of deleting an object more than once are undefined. However, if code modifications are impossible (when a third party code is used, for example), a temporary workaround to

DevX - Software Development Resource

Prefix Versus Postfix Operators

You can use both — and ++ as prefix and postfix operators. When applied to primitives such as int or char, they are indistinguishable in terms of efficiency. When applied

DevX - Software Development Resource

Enums Improve Readability

An enumerated type is simply a list of constants, each of which has a unique value. An Enum can improve the readability of your code by allowing you to declare

DevX - Software Development Resource

Maintain Username and Password

Due to a minor bug, the Internet Transfer Control cannot use the username and password properties if they are set before the URL property. Because of this, you should always

DevX - Software Development Resource

Move a Form Without a Title Bar

Enter this code in a BAS module to let users move a window without a title bar: Declare Function ReleaseCapture Lib “user32” () As LongDeclare Function SendMessage Lib “user32” _