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: I would like to prevent users from deleting e-mail in Outlook 97 on a Windows 95 or Windows NT workstation in combination with Exchange Server on an NT server.
Question: How can I get the source code from EXE files? Does it matter if they are read-only? Answer: This question is asked very frequently. However, the answer is always
Question: What does the modulus (%) operator do? Answer: The modulus operator returns the remainder of a division operation. For example, 5%2 equals 1 because dividing 5 by 2 gives
Question: What is the proper method(s) to delete a column from a table or expand the size of a column in a table? Adding is easy. Deleting and changing obviously
Question: We have a requirement to send a report (a datawindow) to the users/vendors through e-mail. Can I send the Web page with the .psr file so that the user
Question: I’m trying to write a program that has a pointer to a private member function of a class. A public member function calls some of the private functions by
Question: What is a segmentation fault? I get it when I try to output an integer. (It’s a very basic program: it reads in an integer and spits it back
Question: I have IDS 7.31.UC2A and I want to register Informix OLE DB Provider on this database server. I need the %INFORMIXDIR%etccoledbp.sql script for running it against the sysmaster. Can
Question: I have encountered a problem as follows: void foo(const int& var){ foo2(var);}void foo2(int& var)… So what I did was void foo(const int& var){ foo2((int&)var); ^^^^^^} and it compiled *_*
Question: I have a number of datawindows in a window. In a post-construct event I am making a call to another datawindow. Every so often when I open the window
Question: I am an engineer at GNB Technologies and have been programming for quite some time. Last week a friend of mine asked me an interesting question that stumped me.
Add this control to a VB form and onjoy a number of great new features, including: the control over the size and position of the form when maximized, automatic resizing
You can generate random numbers in JavaScript using the Math.random() method. This function returns a fractional random number between 0 and 1. Unlike other languages, JavaScript will initialize a random
Consider the following program: class Exception {}; int main() { try { throw Exception(); // where is the exception stored? } catch( Exception & ex) // catch by reference {}
The terms heap and free-store are used interchangeably when referring to dynamically allocated objects. Are there any differences between the two? Technically, free-store is an abstract term referring to unused
Suppose you have an application that reads input from the keyboard. How can you detect whether alphabetic data is being entered into an integer field from a cin statement? The
Suppose you have a class called A, which doesn’t have a default constructor, and you want to embed an instance of this class as a member of another class, B:
Does you compiler accept the following code? class A { public: void f(int); }; void (A::*pm)(int) = A::f; // #1 no ampersand before A::f A standard-compliant compiler should flag line
Question: How do I display the next page after a user enters data into a field and presses the Enter key? Answer: This is both possible and fairly easy. Here’s
Question: How can I generate a unique number using JavaScript? Answer: You can generate random numbers in JavaScript using the Math.random() method. This function returns a fractional random number between
Question: I call the following function to display the date in “month, date, year” format. It displays in the right format (for example, January 7, 2000) in Netscape 4.0. But
With HTML 4.0, you can add keyboard shortcuts to your Web page. To achieve this, you place the ACCESSKEY attribute inside the form element tag. It is advisable to add
Question: I am getting this error message in the event viewer for my Exchange Server: Event Id: 1025Source: MSExchaneIS PrivateType: WarningCategory: GeneralDescription: An error occurredFunction name or description of problem:
You can use the SELECT control to present a predefined list to the user. The SELECT control is useful for quickly selecting one or more items from a predefined or
Volatile objects are used in multithreaded applications and applications that map hardware devices into registers. Although you can declare an STL container object with the volatile qualifier, you will not
C++ doesn’t specify whether char is signed or unsigned. Thus, the interpretation of the following declaration: char arr[100]; Is platform-dependent: some compilers will treat arr as an array of 100
In the early days of STL, C++ creators decided to include a specialized form of the vector container class, namely vector < bool >. In this specialized vector, bits serve
Many programming schools recommend that functions have only a single exit point. For example, the following function is considered bad programming practice because it contains three potential exit points: int
Excessive use of inline functions might bloat the size of the executable and reduce execution speed. In other words, using inline abundantly can degrade rather than enhance performance. For this
Question: How do I change a Julian date to a Gregorian date and remain Y2K compliant? Answer: I am not sure how the year is stored in the Julian date,











