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.
You can take the addresses of a class’s static and non-static member functions. However, the class’s constructor(s) and destructor are an exception to the rule. You cannot take their addresses
You can optimize data access to remote servers by adjusting the size of the network packet. Configuring the packet size provides a choice between responsiveness and overall throughput. Larger packets
You can enable the “Boost SQL Server Priority” option, to allow SQL Server threads to run in the real time priority class. When running at this priority level, SQL Server
You can set SQL Server to display information regarding the amount of disk activity generated by T-SQL statements. This option displays the number of scans, the number of logical reads
You can create an aggregate column in a SQL 7.0 table by specifying it during creating the table itself. This is useful if you want that aggregate column to be
This T-SQL command can be used to display the number of milliseconds required to parse, compile, and execute each statement. When SET STATISTICS TIME is ON, the time statistics for
In DAO recordset, there is no separate refresh command to refresh the current recordset. However, you can call Move member function to position the recordset lRows records from the current
In standard C++, declaring arrays with zero elements is illegal: int n[0]; //illegal However, certain compilers do support arrays of zero size as non-standard extension. In contrast, dynamic allocation of
While the overhead of returning an ordinary object by value may be acceptable in most cases, returning a container by value is much more expensive in terms of performance. For
The time functions of standard C/C++ are limited to the resolution of a second. In general, you can access smaller time units
The representation of floating point numbers is just an approximation. Truncation and rounding occur frequently because the hardware cannot offer infinite precision when using a fixed number of bits. For
MS Visual C++, as well as several other compilers, now offer non-standard keywords that control the inline expansion of a function, in addition to the standard inline keyword. What are
Although the default arguments of a function must appear in its declaration, they are not considered part of its type. Thus, you cannot overload a function by using different default
Default arguments shall be specified only in the parameter-declaration-clause of a function declaration or in a template-parameter. This means that default arguments cannot appear in declarations of pointers to functions,
You can declare a reference to a function, just like you can declare a pointer to a function. For example: void f(int n){ ++n;}int main(){ void (&rf) (int) = f;
The order of evaluation of function arguments is unspecified. Consequently, parameters of a function may not be used in default argument expressions. For example, the following declaration is illegal: int
It is guaranteed that sizeof(char), sizeof(signed char) and sizeof(unsigned char) all equal 1. Applying sizeof to any other fundamental type returns an implementation-defined value. In particular, sizeof(bool) and sizeof(wchar_t) need
If your application uses exception handling, it is recommended that you always add a catch(…) statement after all the existing catch statements. Remember that even if your code contains the
Question: I opened a ASCII text file into an array. Now I want to print the data into a text box. I tried something like this: txtResult.text = flight(i) The
Question: Is there a way to host an MDI form from an ActiveX DLL in a Main application’s MDI Parent Form? Answer: Although I’ve never tried it, I don’t think
Table type recordsets are probably the best of all performance boosters. DAO provides three recordset types: dynaset, snapshot, and table. Of these three types, the table recordset type is the
STL includes the random_shuffle() algorithm. As the name suggests, this algorithm randomly shuffles the elements of a sequence. It takes two arguments, the first of which is an iterator that
Question: I am building a Web site that is hosted on Microsoft’s Personal Web Server. I have an Active Server Page (ASP) with some graphics on it. Everything works fine
Java Server Pages (JSP) are a complementary Java API to Java Servlets. They let you publish dynamic Web content. A JSP can contain HTML tags, scripts written in Java code,
JDK 1.1.x’s java.io.File class has a lastModified():long method. You can use the value returned by lastModified method to create an instance of java.util.Date class and, thus, get a hold of
Question: I’m attempting to create an ordered list every time the Sequence attribute of a Para element has been set to ‘Begin’. The list should continue until it reaches a
Question: I have the XML structure: …….. I use this segment in an XSL template to create a list of hyperlinks that take me to the product page where [orderno]
We all are familiar with disadvantages of GET method when compared to POST method. However, there is a real advantage of using GET when you are creating a link that
It is always recommend to free all object and variables at the end of a procedure. This can be done using the syntax MyVariable = Nothing. However, you should use
Database Programmers using interfaces APIs like ADO, DAO etc. must remain aware of the result sets they are building. One should try to reduce the size of the result set










