devxlogo

We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

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.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

Casting Pointers To Members

C++ allows casting a pointer to member functions of one type to another pointer to member, as long as the signatures of the two match. However, the results of such

Hardcoded Char Arrays

Does your C++ compiler accept the following code? char s[3]=”abc”; // illegal in C++, no place for ” The standard requires that the size of a char array initialized with

Violating an Exception Specification

The implementation ensures that functions having an exception specification should throw only exceptions that are listed in their exception specification. For example: class X{};class Y{};void f() throw X{ throw Y();

Binding a Reference to an Rvalue

In a previous tip, http://www.devx.com/free/tips/tipview.asp?content_id=1585 , I explained the concept of lvalues and rvalues. Binding a reference to an rvalue is allowed as long as the reference is const. The

Extracting a Program’s Name

The name of the executable is stored in the string argv[0]. To access it, declare your main() function as follows: int main(int argc, char ** argv) Even if the application

Helper Functions

The interface of a class consists of its public members. Usually, private members represent implementation details and are not exposed to other classes and users. Private members can be member

JDBC Transactions

Question: Does “Connection.setAutoCommit(false)” mean “begin a transaction?” Answer: By default, JDBC connections start in autocommit mode. This means that every executed statement is treated as a separate transaction. A transaction

Storing InitialContext in Servlet Sessions

Question: Suppose a client of a Web application logs in using a login-handler servlet, and then some back-end operations using EJBs need to be performed. Can I store the initial

JavaBeans vs. Enterprise JavaBeans

Question: What is the difference between a JavaBean and an Enterprise JavaBean? Answer: It is natural to be confused regarding the relationship between JavaBeans and Enterprise JavaBeans (EJBs), because they

ResultSet Interface

Question: If ResultSet is an interface, then why can we call methods like next(), isLast() etc. without defining the method body anywhere in the program? As I understand it, in

Memory Allocation

Question: What is the reason that allocated memory should be explicitly deallocated ? Is there any difference in the way the data with different storage types (stack, heap, static memory)

Changing a Character’s Case

Question: Is there a function that can convert upper case to lower case and vice-versa? Answer: The toupper() and tolower() functions are declared in the standard header. Each of them

Multidimensional Arrays and Classes

Question: I am currently writing a program that uses multidimensional arrays to store and display data items. My problem is that I cannot seem to change the array values from

The MB Scroller Control

Have you ever spent your time trying to arrange too many controls on a form that was too small for all of them? Now you can relax, at last. Just

Split large HTML tables in smaller ones

In general, a browser can’t render an HTML table before the closing &/TABLE> tag is received. This means that the end user might wait for several seconds before a table

Avoid querying the ServerVariables collection

You can access a lot of useful information through the ServerVariables collection, but this has a price in terms of performance. More precisely, the first time you reference this collection

The MapPath method slows down execution

The Server.MapPath method slightly shows down the execution of your ASP scripts, because IIS has to access some internal variables. For this reason you should try to avoid it if

Use Response.IsClientConnected after long queries

When you perform a complex and time-consuming query in your ASP program, you should periodically test whether the client is still connected, using the IsClientConnected method of the Response object,

Buffering is on by default in IIS 5

You can speed up ASP by adding the following statement at the beginning of an ASP page: Response.Buffer = True This statement must be executed before any HTML text is

Advanced Find – Words Within a Document

Question: I’m trying to use the Advanced Find feature of Outlook to locate attachments that contain a specific word (analogous to the Containing Text feature of Windows’ Find feature). I

New Users Can Send But Can’t Receive E-mail

Question: I have a problem with my Exchange Server. All my existing Outlook users can send and receive e-mail; no problem at all! But if I create any new users,

Editing the Global Address Book from Client

Question: Is there any way to edit the global address book in Exchange from a 98 client machine? Answer: The easiest way isn’t the way you’re expecting. I’d use a

Sharing Contact Folders

Question: How do I set up the administrator contact subfolders as an address book on a different mailbox in order to allow other users to add information? Answer: Assuming you

Printing a Report to a RTF or HTML File

Question: Can you create a HTML or RTF file in Visual FoxPro? If so, how? Answer: VFP comes with a program (called GENHTML.PRG) that can generate HTML from many different

Organizational Chart Linked to Outlook Contacts

Question: I’d like to draw an organizational chart of each of our customers (and store that diagram in an Exchange public folder), linking each different role to a specific Outlook

Why Choose Exchange 5.5?

Question: Why should I choose to implement Exchange 5.5 when Microsoft Office works for my company? Answer: Well…Microsoft Exchange Server is a very different product from Microsoft Office. Office is