devxlogo

Tip Bank

Deprecated APIs

Question: How do I make a method deprecated? Answer: Deprecating a method or entire class is as simple as using the “@deprecated javadoc” tag in its documentation. For example: /**

JavaScript Not Working with IE 5.5

Question: Why will this code not work with IE 5.5? Answer: It’s not a question in this case of JavaScript not working with IE 5.5, but of Java not working

Using errno in DLLs

C++ inherited from C the global variable errno which indicates the success status of a previous operations. An errno value of 0 indicates that the previous operation was successful whereas

The vector::data() Member Function

In a previous tip, I discussed techniques for treating a vector object as an array. The two main forms of obtaining the internal array’s address are: &*v.begin(); // obtain address

Uninitialized enum Variables

The value of an uninitialized automatic enum variable is indeterminate. Uninitialized global and static enum variables have a zero value by default. In this regard, enum variables are similar to

The Modulus Operator

The operator % returns the remainder of dividing its two operands. For example: b=10%3; // b equals 1 Don’t confuse the modulus operator with the division operator: c=10/3; // division,

Designing Custom Forms

Question: Is it possible to make changes to the text on the tabs? Answer: Sure, with the tab you want to change selected, just click Form > Rename This Page.

Upgrading from AIX 4.2 to AIX 4.3

Question: We have plans to upgrade our AIX operating system to version 4.3. We are using Informix 7.31. Do we need any new Informix components (compilers etc.)? Answer: You probably