Tip Bank

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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:

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

Exceptions and operator new

Standard C++ states that operator new should throw an exception of type std::bad_alloc when it fails. This is different from previous stages of C++ and it means two important things:

DevX - Software Development Resource

Exception specification

A function that may throw an exception can warn its users about that by specifying a list of exceptions it may throw, thus helping its users to catch such exceptions

DevX - Software Development Resource

Operator overloading rules of thumb

When overloading an operator to support a user-defined type (object), it is best to adhere to the basic semantics of that built-in operator. For instance, the built-in operator ==, which