devxlogo

Tip Bank

Insert a bitmap into Word 97

Question: I’d like to get a bitmap file (c:mypic.bmp) placed on a MS Word97 file (msfile1.doc) using Powerbuilder (6.5). I am interested in printing that file afterwards. Answer: The following

SQL fucntion calls

Question: Does SQL have a function to get only the time–rather than getDate()–which gets the date and time, or a function to get the Unix time() time. (the one that

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

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

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

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

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

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

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