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
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
Question: Is it possible to control the printed page size and layout in DHTML? In other words, can I control how a DHTML page looks when it is printed and
Question: I want to split a TXT file into smaller TXT files. The program should split the file every time there are three empty lines. For example: Paragraph1Paragraph2 Paragraph1 and
Question: I have a table that contains the values returned from a SQL database. I have created a division within each cell. The ID value for the division is the
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
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
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
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
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 =
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
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
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
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
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
I use constants for things like control-array index numbers, but it’s a hassle to keep scrolling to the top of the module to remember the constant names. If you name
When developing code that maps to database fields, you often need to look back at the tables to determine the correct database fields. With VB5, you can now do this
If you extend a few AWT classes, you will eventually want to add images to enhance their appearance. Icons for buttons and your own logo in the corner of frames
In Visual Basic, the standard combo box lets you store an Index to its data. For instance, a user would see in the list an employee name but not an
Question: How do I make the contents of one DIV (divA) equal to the contents of another DIV (divB) in Netscape? I know that in Microsoft Internet Explorer the code
Question: I would like to put my entire alternative no frames content in the NOFRAMES element instead of just a link to it. The advantage to this would be a
Question: How can I get data from a Dynamic Data Exchange (DDE) server and display it in a Web page? On a Visual Basic form, I can use a text
To prevent a component from getting the focus when the Tab or shift-Tab keyboard focus traversal is used, override the isFocusTraversable method. It is often desirable to toggle a TextField
Question: How do I interrogate tables randomly and print out their structures, components, sizes, and indexes? This ability would be useful in allowing me to check how I have created
Question: I’m leaving Turbo Pascal for Windows 1.5 and Turbo Pascal 7.0 because they don’t work correctly with Windows 95 (for example, division by 0). I heard that Delphi is
Question: The VS_VERSIONINFO structure can be used to obtain file version data about files with extended version data. This structure is not included in Delphi 4.0, nor is it included
Here’s another simple but useful add-in you can add to your arsenal. Follow the directions given in the previous tip “Add Remarks to Your Procedures,” with only minor differences. Use
VB5 introduced support for enumerations, which are related sets of constants. Although you can declare a property as an enumerated type, VB lets you assign any long integer value to
When copying the contents of one array into another, use the System.arraycopy method instead of an iterative loop. For example, consider the following arrays: int[] first = {1, 2, 3};
Question: I am working on system that is built from many pieces, but they all use certain common settings. I developed a simple ActiveX DLL that reads those settings from
Question: I am trying to set up a small intranet and was wondering if there is a way to determine the client’s workstation name (for example, Computer Name in Control