Tip Bank

DevX

Runing a DOS Program

Question: I am trying to run a DOS program using the folowing syntax: WinExec(‘Command.com /c c: emaddr CN=variable’, wn_shownormal); I can’t manage to get it to work with a variable

DevX

Displaying Text and Setting the Font

Question: I am working on a project that reads in teletext information from the COM port in 8-bit binary form. Since ASCII does not represent teletext graphical characters, I have

DevX

The Access Specifier of Special Member Functions

The default constructor, copy constructor, assignment operator, and destructor are special member functions. The implementation implicitly declares these member functions for a class when the program does not explicitly declare

DevX

Standard Streams

C++ provides four standard I/O streams that are automatically instantiated before program’s outset. They are defined in the standard header : cin // standard input stream of charcout // standard

DevX

C++ and Multithreading

Standard C++ does not directly address the issue of multiprocessing, threads, and thread safety. This issue is implementation dependent, which enables vendors to decide whether or not to provide multithreading

DevX

When Are Pointers Equal?

Pointers to objects or functions of the same type are equal if and only if in they are both NULL: int *p1 = NULL, p2 = NULL; bool equal =

DevX

Watch Out for “()” When Calling Subroutines

To call a subroutine, you can use the Call statement or simply the name of the subroutine: Call MyRoutine(firstParameter) ‘Or MyRoutine firstParameter Notice you don’t include the parentheses in the

DevX

Collect User Requirements With Scenarios

When talking to the user or subject-matter expert about an application’s requirements, write the requirements in the form of scenarios. A scenario both defines the requirement and provides a list

DevX

Browse VB Command as You Type

When you refer to an object in VB5, you get a drop-down list of that object’s properties and methods. But, did you know that the statements and functions of the