
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: What are Abstract Classes? Please explain with an example. Answer: An abtract class has at least one pure virtual member function. A pure virtual member function is a non-implemented
Question: Can you expalin the difference between the following statements in some examples and when do we need them: const char *ptr; //char *const ptr; // Answer: The following statement:
Question: I am having problems designing my XML doc. I’d like togeneralize it using common structure names but it appears that the DTD/Schemafor it can’t fully describe it. Here is
Question: I am calling one form from another. But after working in the called form, when I come back to the calling form, the grid that was there in the
‘ Indexed ShellSort of an array of any type” Indexed Sorts are sort procedures that sort an index array’ instead of the main array. You can then list the items
‘ Bubble Sort an array of any type’ BubbleSort is especially convenient with small arrays (1,000′ items or fewer) or with arrays that are already almost sorted” NUMELS is the
‘ Return the volume label of a disk’ Pass a null string for the current diskFunction VolumeLabel(drive As String) As String Dim temp As String On Error Resume Next temp
Private Declare Function LoadLibrary Lib “kernel32” Alias “LoadLibraryA” (ByVal _ lpLibFileName As String) As LongPrivate Declare Function GetProcAddress Lib “kernel32” (ByVal hModule As Long, _ ByVal lpProcName As String) As
‘ QuickSort an array of any type’ QuickSort is especially convenient with large arrays (>1,000′ items) that contains items in random order. Its performance’ quickly degrades if the array is
The canonical form of a copy constructor of a class C is: C::C(const C& rhs); You can also declare the copy constructor’s parameter as follows: C::C(C& rhs); //no const, OK
You can use SQLMAINT.EXE command-prompt utility to perform routine database maintenance activities. It can be used to run DBCC checks, to dump a database and its transaction log, to update
You can use the query governor advanced server configuration option to prevent long-running queries from executing, thus preventing system resources from being consumed for long. By default, this option allows
The use of the static keyword is deprecated when declaring objects in a namespace scope; the unnamed-namespace provides a superior alternative. Nonetheless, it is important to know how to define
It is perfectly legal to use of the equality operator to compare literal strings. However, the results might be surprising: bool eq;eq = “Mungojerrie” == “Rumpleteazer”; //not what you expect
The rumors about the obsolescence of C were immature. In fact, some of the latest developments in the software world indicate that C is still a leading programming tool. Linux
You can use sp_configure with RECONFIGURE to display or change server-level settings. However, some configuration options require a server stop and restart to update the currently running value. RECONFIGURE does
Callback functions have a fixed signature so you cannot alter the number or type of the arguments it takes. For example, the standard qsort() function takes a pointer to a
CC++ (this is not a typo) is a parallel programming language based on C++. You can find a free CC++ compiler as well as an overview of CC++ features, syntax,
The homepage of Dennis Ritchie, the creator of C and a coauthor of the legendary The C Programming Language, is probably the best virtual museum of the C programming language.
Although you can catch an exception by value, as in the following example: catch( Exception except) // by value { //
Question: I have an HTML page containing two forms. One form uploads an image file and needs to have an encryption type set while the other sends a plain set
Question: I am retrieving around 3000 records from a SQL database into an ASP page. The process is very slow. Will using MTS speed up the execution time? I am
Question: Can you show me an example that demonstrates how to use pointers to return more than one variable? Answer: A function cannot return more than one value. However, you
Question: I need to have a TXT file downloaded to a user’s machine over the Internet. I want to place the file in a specific directory. I could give the
Question: I have to use the Scripting.FileSystemObject in a script on the client side because I have to read a file from the client disk. Because the Scripting.FileSystemObject is not
Did you ever want to copy a block of preformatted text or a long concatenated SQL string, but wished that InterDev didn
When you have a multi-select control, your request variable for the control will be comma delimited. An easy way to retrieve each option value is to use the VBScript Split
Regular select controls are quite bland. Wouldn’t it be interesting to add some color? With IE (this tip, unfortunately, does not apply to Netscape), you could change the color of
If you
You can improve on ASP performance by avoiding the use of server-side #include directives to include large lists of constants. Instead you can use the new tag to import type-library


