Tip Bank

DevX

Right shift

Question: Can you tell me how to write a program that right-shifts an integer variable 4 bits? The program should print the integer in bits before and after the shift

DevX

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

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

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

Single Quote Marks in a SQL Query

Question: I have built several pages that use VBScript to pull information from a Microsoft Access database. My problem is that if a user tries to use a single quote

DevX

Determining if a ToElement Exists

Question: In a VBScript function I assign the window.event.ToElement to an object for some functionality. The problem is that if the mouse is moved outside of the browser window, the

DevX

Dynamically Change Another Opened Window

Question: I am having trouble creating a site where customers can click something in a parent window and have a picture appear in another child window. I then want customers