
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 should use memcpy() only for copying POD (plain old data) types, but not class objects. For copying objects, use their assignment operator or the std::copy() algorithm. Remember also that
A compound statement is a sequence of one or more statements enclosed between { and }. For example: for (int n=0; n
A function that can be safely called while it’s already executing is said to be re-entrant. The C++ standard doesn’t state whether the Standard Library’s functions are re-entrant; this is
The software industry uses the term “I18N” as an abbreviation for the terminternationalization. The idea is that I18N begins with an i, ends with an n, and has 18 characters
For recursive assignment expressions such as the following: x = x+5; x= x/5;x = x * 5; C++ defines shorter versions that eliminate the need to repeat the variable’s name
Although C++ clearly defines operators’ precedence, the compiler is allowed to compute subexpressions with identical precedence in a platform-defined order. Besides, many programmers don’t remember which operators have higher precedence
You can refer to a name of a class member only in one of the following contexts: In the scope of its class or a class derived from its class
Question: Can I generate WML via an ASP? If so, do I no longer need a WAP server installed on top of IIS? Answer: ASP is a server-side scripting language.
Question: I have installed the library in my server but when I try to do Server.CreateObject(“CDONTS.NewMail”) in my ASP file, it returns an error: ‘ASP 0177 : 800401f3’ “Server.CreateObject failed”
Question: How do I write a statement that selects data between two dates? Answer: You can select data within two dates using the BETWEEN operator. Using the Orders table in
Question: I am trying to select various values from various fields. I want to be able to concatenate the results into a string variable, then insert the string into another
Question: I want to attach a parameter to a URL like this, “url?name=value”, and use the parameter on the HTML page. Is this possible? Answer: Yes; you can do this
Question: What is the definition for Informix? Answer: Informix is a database company that develops and sells high-powered commercial databases. It’s main competition is Oracle.
Question: I have a class A (from a DllA) inside a method that does a new on a class B defined in the DllB, uses it and deletes it. When
Question: How do I export only one table, then import the same table back into Informix? Answer: Use the SQL UNLOAD command: UNLOAD to filename.unl select * from tablename When
Question: I want users to be able to save a partially completed form, preferably to their hard disk with a user specified name, so that they can retrieve the file
Question: What does the declaration int i(0) ; mean? Does C++ have a type ‘int’ constructor? And why doesn’t Visual C++ accept a char* p(0) ; declaration? Answer: This expression
Question: How do I improve an integer set’s performance when it is used in multithreaded environment? Answer: Many factors affect a multithreaded application’s performance: the operating system, the duration of
Question: Which is the fastest way to open a recordset (ADO) to add new records: SqlString=”select * from authors where id
This control is an extended and object-oriented version of the VB’s MsgBox function. You can center the message box on your form or place it everywhere you want, display any
Under Windows NT you can programmatically display the Connect To Printer dialog using one simple API function: ‘ This works only under Windows NT and 2000Private Declare Function ConnectToPrinterDlg Lib
Private Type RECT Left As Long Top As Long Right As Long Bottom As LongEnd TypePrivate Declare Function GetClientRect Lib “user32” (ByVal hWnd As Long, _ lpRect As RECT) As
Private Declare Function SetCursorPos Lib “user32” (ByVal X As Long, _ ByVal Y As Long) As LongPrivate Declare Function GetWindowRect Lib “user32” (ByVal hWnd As Long, _ lpRect As RECT)
Private Type POINTAPI X As Long Y As LongEnd TypePrivate Declare Function SetCursorPos Lib “user32” (ByVal X As Long, _ ByVal Y As Long) As LongPrivate Declare Function ClientToScreen Lib
If your VB application is meant to be called from within a Ms-Dos batch file, you must be able to return Dos an error code. This can be accomplished using
Private Type POINTAPI X As Long Y As LongEnd TypePrivate Declare Function GetCursorPos Lib “user32” (lpPoint As POINTAPI) As LongPrivate Declare Function WindowFromPoint Lib “user32” (ByVal xPoint As Long, _
Private Type POINTAPI X As Long Y As LongEnd TypePrivate Declare Function GetCursorPos Lib “user32” (lpPoint As POINTAPI) As LongPrivate Declare Function ScreenToClient Lib “user32” (ByVal hWnd As Long, _
Private Type POINTAPI X As Long Y As LongEnd TypePrivate Type MSG hwnd As Long message As Long wParam As Long lParam As Long time As Long pt As POINTAPIEnd
In Windows 95 and 98, when the screen saver is currently active (and the screen is blanked) the Ctrl-Alt-Del key combination doesn’t work, in order to force the user to
Question: I have downloaded an ActiveX DLL (A third Party ActiveX component) for uploading files to my server. The problem is I can not register the DLL in my Web











