Tip Bank

DevX - Software Development Resource

Windows 2000 Defragment

Question: How can users be given the ability to run defragment without any other rights being givento their computers? Answer: There is a utility in the W2K Resource Kit called

DevX - Software Development Resource

Data Field Refresh on Forms

Question: I have a multi-page form with navigation controls on the first page. When I “Next”through the records, the data fields refresh fine on Page One but not on the

DevX - Software Development Resource

Windows NT Profiles

Question: Why are Windows NT user profiles created with extensions of .000, .001, and so on? Answer: The following is from the MSDN article Q185588, “Guide To Windows NT 4.0

DevX - Software Development Resource

Pausing Code to Call Another Form

Question: I have a form with a block of code that hides the form and then calls another form. This other form accepts input, saves it to a table and

DevX - Software Development Resource

Directories That Won’t Open

Question: How come I can’t open some directories on my C: drive? I get the error”c:directoryname is not accessible. Access is denied.” Answer: I have had the same problem on

DevX - Software Development Resource

Windows NT Administration

Question: How can I add hundreds of users to the NT server by an automated procedure? Answer: In the NT Resource Kit (either NT 4.0 or W2K version), look at

DevX - Software Development Resource

Carriage Returns in Text Files

Question: I have written a function which strips out all carriage returns from a memo field passed toit, replacing them with the characters ““. The returned piece of text is

DevX - Software Development Resource

Avoiding Buffer Overflows

Buffer overflows are a fertile source of bugs and malicious attacks. They occur when a program attempts to write data past the end of a buffer. Consider this example: #include

DevX - Software Development Resource

What’s in a Library?

A library is essentially a file that contains compiled object modules (a module is the object file produced from compiling a single source file). A program can call, or import,