Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.








Question: When we copy an image (in bmp format) in a help file, we get a “not enough memory space” error when we compile. What are the formats of images
Question: At our school we have a Windows NT Server network (10O Base T and 10 Base T mix) for our students to use. We have a five-station peer-to-peer Windows
Question: I want to trap the special keys of Windows NT: Alt+Tab, Ctl+Alt+Del. In the first 10 minutes, I set a kbd hook and took a look at what were
Question: Other than specifying the “/o” option, is there a way to direct isql output to a file? I would like to specify the file name dynamically in a stored
Question: My problem is that once I get the logged-on user id, I need to get their full name from the NT security. Is this possible? For example: UID: jsmith123Name:
Question: I attempted to import a package (*.PAK) file from another MTS server, and I got an error message. Both MTS servers are running the same version ofNT and MTS.
Question: We are trying to reset the NT password using structure USER_INFO_1003. Everything worked fine. Then we also needed to set ‘User Must Change Password at Next Logon’ option. There
Question: How can I change my Windows NT server password through a program? Answer: Actually, this is rather simple. However, heed the following precaution from the MSDN documentation on this
Question: Do you know how to return DOS level code from a program upon exit? Answer: On most systems, you can simply return a value from your main function.int main(){
Question: I am moving from other languages to Visual C++. I am trying to write a function that returns a string (or pointer to a string), which will then be
Question: I am studying C and C++ programming on my own. I have no previous programming experience. I am using Visual C++ 5.0 to run the following example “program 8.12”
Question: I am trying to view the table information by using the Data Form Wizard in Visual InterDev. I have successfully previewed the fileList.asp form that is created by the
Question: Is it possible to crash a server from an Active Server Page (ASP) if you are using an object instantiated via an ActiveX DLL installed on the server? My
Question: I have a linked list class whose private data members I want to access and initialise through a dialog box generated through the VC++ wizard. Debugging gives me an
Question: I am interested in buying a new compiler and don’t know wether to purchase Visual Basic or Visual C++. I have taken a course in C++, but I am
Question: Deleting all files in a directory should bea basic function; however, I can’t seem tofind a function that will do this. Can you point me to a function that
When network testing, it is useful to have a client program connects to a UDP server and gets an echo of a text string that you send to the server:
When network testing, it is useful to have a client program that connects to a TCP/IP server and gets an echo of a text string that you send to the
The following program is a simple version of a TCP/IP server that responds to requests from a client and delivers files. I wrote it to be as small as possible
With Java, you can easily write a client program that connects to a Web server and downloads an HTML file. You can also easily expand this simple program into a
With Java, it’s easy to write a client program that connects to a TCP/IP server to get the date and time. This is very useful for network testing. Insert your
My code often has a lot of nested procedure calls, which can be painful to trace while doing walk-throughs. Developers might be unaware of the “Procedure Definition” (Shift+F2) feature, which
This routine parses a string and returns an equivalent string where all the instances of a given substring are doubled. This is especially useful for doubling quotes within SQL statements
To use a picture on a CommandButton, you must set its Picture property and set its Style to 1 – Graphical. Otherwise, the picture will be ignored.
Visual Basic includes constants, such as vbActiveTitleBar and vbButtonFace, for Windows system colors, which the user might change through the Control Panel. (In VB3, these constants are defined in the
Since a class is a namespace, the scope for overloading a member function is confined to the class containing this function. Sometimes, it is necessary to overload the same function
To change the ToolTips background color, open the Control Panel’s Display tool. Click on the Appearance tab. In the Item combo box, select ToolTip. Click on the little color box
In large-scale projects different teams use API functions developed by another team or a third-party vendor. For example: int retrievePerson (int key, Person& recordToBefilled); // original version; used by all
C++ allows you to declare variables wherever you need them, thus enabling immediate initializations. A good example is a loop counter. It can (and should) be declared inside a for-statement:
Not every function that is declared inline can actually be inlined by the compiler. A function that has local variables, loops, or an extensive amount of code cannot be inlined





