Tip Bank

DevX - Software Development Resource

Canceling a call to a dll

Question: In a program, I’m calling a function in a dll. The time before that function is finished can vary from a few seconds to an hour, depending on the

DevX - Software Development Resource

Thread Timing

Question: How can I determine the total time it takes for a set of threads to execute? Answer: When you time a set of threads, you generally want to know

DevX - Software Development Resource

Smart Pointer

Question: Could you give me an exact definition of smart pointers, and how does a reference counting smart pointer work? Answer: I don’t believe there is an exact definition, since

DevX - Software Development Resource

Form Load

Question: What happens in the Form Load? If I try to retrieve information from a database (using a DataControl and TextBoxes connected to the database), I can’t get the program

DevX - Software Development Resource

Setup

Question: The setup wizard gives the capability to the end user to change the directory into which the setup will copy the files. How can I prevent this? If the

DevX - Software Development Resource

Getting the active window

Question: I am using VC++ 5.0 to develop applications based on Windows 95. I want to get the HWND of the active window, which is receiving the keyboard or mouse

DevX - Software Development Resource

Deleting a structure from disk

Question: I have written a videoshop program in C++. I need to be able to delete a video structure off the disk. At the moment, the user enters a video

DevX - Software Development Resource

Dispatching Mouse Events

Question: How can I pass or send a mousedown to a choice menu when a button is pressed? Answer: Sending an event to an AWT component is as simple as

DevX - Software Development Resource

What are Lvalues and Rvalues?

An object is a contiguous region of memory storage. An lvalue (pronounced: L value) is an expression that refers to such an object. The original definition of lvalue referred to