Tip Bank

DevX - Software Development Resource

A Fast Way to Find Routines

To quickly go to the code for a called function, subroutine, or property, simply place your cursor on the called routine and hit Shift+F2. VB will immediately go to the

DevX - Software Development Resource

Cancel a Pending Print Job

In the tip, “Please Stop Printing!” [“101 Tech Tips for VB Developers,” Supplement to the August 1997 issue of VBPJ, page 13], the code works fine with one exception. If

DevX - Software Development Resource

Static initialization and free store

Question: Is it valid to attempt to allocate (via ‘new()’) dynamic memory prior to ‘main()’? I am working on software that has static *’s to class objects, and through some

DevX - Software Development Resource

int and class defination

Question: Why is int 2 bytes with real mode compilers, but 4 bytes with protected mode compilers? And why is the class defination ended with ;-mark, since other definations aren’t?

DevX - Software Development Resource

Terminate and Stay Resident Programs

Question: Can you supply me with boilerplate code for a simple console tsr program? I’m using VC++ 4.0, and I want to create a console program to check a directory

DevX - Software Development Resource

C/C++ Linking

Question: If I make a C++ library and supply it to a clientwho does not have a C++ compiler, can theycall my C++ functions from their C routines?That is, is

DevX - Software Development Resource

Making a file circular

Question: I want to make a log file circular using C++ I/O manipulation. I am new to C++ and come from a C background. To me stream I/O is completely