devxlogo

Tip Bank

DevX - Software Development Resource

SizeOf Function in Delphi

Question: I’m using Delphi 2.0 Client/Server. The Delphi Object Pascal user’s guide says that the Integer size is 2 bytes (signed 16-bit with Range -32768-32768). But when I do the

DevX - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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

DevX - Software Development Resource

Use the Same Name for Your Error Handlers

Older versions of VB required a unique name for your error-handler labels in order to use On Error GoTo . You had to concatenate the module name and routine name