devxlogo

Tip Bank

Desktop

Question: How can I get the current Desktop color? Answer: There are several ways to do this, but one way is to check the NT registry. HKEY_CURRENT_USER Control Panel Colors

Windows NT

Question: Is it possible to install Windows NT on the PC (without a network)? Answer: Yes, it is not only possible, but fully supported. In fact, in order to qualify

Win NT Domain Management from VB5

Question: Are simple domain management tasks such as “Add User to a Group” or “Add a Computer to an NT domain” possible under VB5? Do you have sample codes? Answer:

Be careful with EOF

The standard library of the C programming language offers a functiongetc to read a single character from a file or stdin: char c = getc(stdin); This function is useful if

No Pointer Arithmetics Outside Array Bounds!

Sometimes it is tempting to let a pointer point to a location that isslightly beyond an array’s index range. For example, consider the followingself-defined array class, which allows you to

Delphi Development for Windows CE

Question: Can I use Delphi to create apps, including DB apps, for Windows CE? Answer: I wish Borland Delphi could be used to develop Windows CE apps. However, the only

Building a Simple Database

Question: In my program, the user must log in. I must take that login and search a database to see if the login is valid and then match a password

Controlling the Menu Font

On some platforms, the default font used by Java for menu text is unfortunately not the user-selected, system-wide menu font. With some VMs it can be undesirably small. You can

Margins in Dialog Boxes

When laying out a dialog box with a manager that does not provide space between the components and the edges of the box (such as a GridLayout manager), the following