devxlogo

Tip Bank

Toggling Edit Control Word Wrap

Question: I have an OWL application in C++. I need to be able to switch in run-time between wordwrap and no-wordwrap text in the Editor window. How can I do

Adding a help file to an executable

Question: A quick question that should be a quick one for an experienced PB guru. How do you attach/add a help file that was created in Winhelp or any other

Casting

Question: Hi,got a problem with a cast. Maybe someone out there knows how to solve it. How can I get this void pointer to act like (point to) my object?example:

OnPaint Flickering

Question: I am a high school student using MS VC++ version 5.0 for my school science project. I am loading bitmaps with the StretchBlt function in the OnPaint function to

Pointers’ content reset

Question: I’ve declared a pointer to integer in file A of project. The pointer is also being used by file B of the same project. I discovered that the pointer’s

Queues & Stacks

Question: Though I’ve been programming in C/C++ for several years now, I’ve never understood how to build a queue or stack. I used to resort to some of the included

System Tray

Question: Can you program C++ to allow a program run in the system tray (next to the clock) like VB? If so, is there sample code somewhere? Answer: This task

Member or Global Function?

Question: I have a function that takes 2 classes as arguments. Should I make the function global or inside the class? If that should be a member function, is there

Adding/Subtracting Time

Question: How do I add/subtract a series of time values of format hh:mm:ss (for example, 02:45:32 + 00:35:43 + and so on)? Also, how do I set the mm:ss format?