
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: Is there any way to do a incremental save using XMLDOMDocument (MSXML parser) and also loading part of the Document tree? Answer: A SaveInto or a LoadFrom command? As
Question: When setting up a recordset, is it possible to get a record when the field contains more than the word that I’m looking for and where the words are
XML has a special set of characters that cannot be used in normal XML strings. These characters are: & – & < - < > – > ” – "
If a user runs a page on our site and has not yet logged in, we can redirect him to the correct login page with the following script:
Of course no one ever sees an error on your Web site?but just in case, you can turn off explicit ASP error messages on your live site for better security
Question: How can I pass a member function of a class as a pointer in C (pointer type expected: void *)? Answer: You can’t pass a pointer to a C++
Question: Using Visual C++ 6.0, I recently attempted to create a structure to implement a data message that my application had to process. The following code segment produced unexpected results
Question: What is the “clear screen” function in C++, and which library is it in? Answer: Standard C and C++ don’t define a function that clears the screen. DOS and
Question: On the Indexes tab of Visual FoxPro Table Designer dialog, you can define a Primary Index. How do I do the same thing through code in a FoxPro program?
Question: What are the pros and cons of creating extended stored procedures? Answer: The pros are that you can implement additional functionality and access data from DLLs from within SQL
Question: From a database-efficiency standpoint, which is better for SQL when inserting new rows into a table: issuing ad hoc SQL statements in the form of “Insert Into…” or using
Question: I have a memo field in a table, which has been scattered to memvar. I need to append a standard statement to the field once the user has completed
Question: How do I print out all of the tables, the fields the tables contain, and the datatype of the fields in my accounting database (for report creation)? I am
A class’s size can change simply by playing with the order of its members’ declaration. For example: struct A{ bool a; int b; bool c;}; // sizeof (A) == 12
A class’s size can change simply by playing with the order of its members’ declaration. For example: struct A{ bool a; int b; bool c;}; // sizeof (A) == 12
Question: We’ve developed a TV scheduling program in HTML, but we have problems with speed (connectivity as well as display refresh) and the inherent functional limitations of HTML. We need
Question: I am trying to populate a drop-down listbox with the data from a table within my database and a blank line. The code I am using is as follows:
The Interface Definition Language, or IDL, is a language for describing collections of data types, constants, methods (functions, procedures, etc.), and groups of methods known as interfaces. This is not
This code will generate code to do a column-by-column comparison against a table, assuming that you are joining the inserted table (aliased as “i”) with the deleted table (aliased as
If you need a garbage collector, you can either install one or implement it by yourself. Which type of garbage collection should you use? A conservative garbage collector and a
Applications that are free from memory leaks but perform dynamic memory allocation and deallocation frequently tend to show gradual performance degradation if they are kept running for long periods. Finally,
Templates can have default type parameters. The compiler uses these default types when you don’t provide them explicitly in a template instantiation. For example: template < class T1=char, class T2=char
Hardcoded literal strings can become a serious maintenance problem. Suppose you have numerous message boxes in your application that display a hardcoded text message and you want to change that
Question: I have written an applet which uses a Graphics object to draw movingcircles. However, when multiple threads accesses the same Graphics object,the circles disappear after being on screen for
Question: I have been looking everywhere for information on HashMaps,particularly how to put one hash map into another HashMap. Answer: This is where the expression RTFM (Read That Fine Manual)
Question: Only Objects can be popped from, or push onto, a stack. That means Ihave to wrap a primitive data type, such as int, with something akin toInteger before pushing
Question: How do I determine if a Unix process has stopped writing to a file,so that my Java program can start reading it? Answer: If you are not able to
Question: I’m building an application that has several different frames. Eachhas a button that when pressed should bring up a new frame and closethe calling frame. How can I display
Question: I need to extend class A which resides in a different package, butclass A has only one constructor which is package protected. I get a compile error in class
Question: How do I write a Java program that generates random numbers withinlimits, such as 1 to 100, or 1 to 1000? Answer: The java.util package includes a Random class









