Creating Controls through Coding
This tip is useful for when you are going to make software with a huge facility in which users will have rights to create their own database fields. When a
This tip is useful for when you are going to make software with a huge facility in which users will have rights to create their own database fields. When a
To determine whether a number is divisible by some even number you have to use the Mod operator in VB. The following code is an alternate, faster way of doing
A protected feature of a class is available to all classes in the same package, just like a friendly feature. Moreover, a protected feature is available to all subclasses of
To specify an expiration time, you can use the setMaxTime(int) method of javax.servlet.http.Cookie. It takes as a parameter the number of seconds before the cookie will expire. For example, for
When a socket wishes to terminate a connection it can linger, allowing unsent data to be transmitted, or it can
The static initialization order disaster is a very subtle and commonly misunderstood aspect of C++. Unfortunately, it’s very hard to detect?the errors occur before main() begins. This means as soon
This can be done for classes derived from CObject through a functionality provided by the MFC as a macro named RUNTIME_CLASS.1. Make a class derived from CObject and create its
The following macros will facilitate this task and have been very useful: #define SAFEDELETE(p) if(p) { delete p; p =NULL;}#define SAFEDELETE_ARRAY if(p) { delete [] p; p = NULL;}How to
Always put the constant on the left side of an equality/inequality comparison like this: if (0 == Value) This is a good practice because if you accidentally put the ‘=’