The Latest

DevX - Software Development Resource

Servlet State

Question: I’m developing some applications with servlets. I’ve been declaring static variables to preserve state, but when two instances of the servlet run at the same time, the second instance

DevX - Software Development Resource

Changing the Stack Size

Question: Is it possible in Java to increase an application’s stack size? Answer: The stack size of an application can be set at run time depending on the virtual machine

DevX - Software Development Resource

Connecting to an Access DB on a Server

Question: I want to connect to an Access DB on a server from a client using a VB app. I assume I would have to make a connection to the

DevX - Software Development Resource

Form Variable Problem with Web Clipping App

Question: In my Web clipping app, I have a form like this: When I submit the form the query string looks like this: myserver.com/results.cgi?var1=xyz&var2&var3=abc The problem is if a form

DevX - Software Development Resource

Client Says Not to Use Joins in VB App?

Question: I have a client that used to be an Oracle programmer years ago who tells me I’m designing his SQL 7.0 database all wrong because I’m using joins in

DevX - Software Development Resource

Spell checking

Question: I have a bunch of words in a listbox that I want to spell check(with Microsoft Word 2000 maybe?). I would like the routine to delete any word in

DevX - Software Development Resource

Co-located Exchange with ISP

Question: We have co-located a Windows NT Exchange 5.5 SP3 server with our ISP and we have about 14 Outlook clients running from our office. All of the Outlook clients

DevX - Software Development Resource

Opening an ASP Page Through VB

Question: How can I access an ASP page through VB? Answer: You can use the Internet Transfer control to connect to a web page and retrieve data from Visual Basic.

DevX - Software Development Resource

Template Function Error

Question: Consider the code: template class TestClass {public: T testFunc(T*);};template TestClass::testFunc(T* p1){ return sadfs; //actually, here I could //write anything I want} The problem is that VC++6 compiler doesn’t track

DevX - Software Development Resource

Const Member Functions

Question: What does the ‘const’ in the following funciton prototype mean? class A{public: void fn (int a ) const;} Answer: The const after a member function’s parameter list indicates that

DevX - Software Development Resource

WAP and Session Tracking

Question: How do I maintain sessions in Nokia WAP Server? Answer: Session variables are covered in the WAP Server documentation. Related Posts SEC Probe Targets SolarWinds ExecutivesMusk plans human colony

DevX - Software Development Resource

Problem with Using the AND Condition

Question: In the WHERE condition, I have not been able to use the AND condition when the two conditions on either side of the AND command relate to data the

DevX - Software Development Resource

Lost Column in Outlook View

Question: I have accidentally deleted the ‘From’ column from my inbox. Could you instruct me how to get this column back? Answer: Right-click the header of any other column (like

DevX - Software Development Resource

Multiple Hosts from Multiple DNS Servers

Question: How do I host another domain into a single server if it has a different DNS server than mine? I have my DNS from a local ISP; the other

DevX - Software Development Resource

Backing Up a Macintosh PST File on a PC

Question: I have a lone Macintosh user among an office of Windows users. This user has Outlook 8.2 running, with all mailboxes stored on the server. Understandably this is quite

DevX - Software Development Resource

The Advanced Find/Replace Add-In

This great add-in improves the standard Find and Replace dialog with all the functionality we’ve been looking for in all these years. First, when you perform a search you see

DevX - Software Development Resource

Example of Code Structure for COM+ Component

In this article I show you my ordinary code structure for COM+ components. I show this in preparation for further articles about debugging tips. When I show this example, I

DevX - Software Development Resource

The fill() Algorithm

The algorithm fill() is declared in as follows: void fill(ForwardIterator f, ForwardIterator l, const T&); The arguments f and l mark the sequence’s beginning and end, respectively. fill() fills the

DevX - Software Development Resource

How to Delete Dynamically Allocated Multidimensional Arrays

You can allocate a multidimensional array using new as follows: class A{public: int j;//…constructor, destructor, etc.}void func(){ int m; A (*pa)[2][2]=new A[2][2][2]; // three dimensional array m=pa[0][0][0].j; // access member

DevX - Software Development Resource

Clarifying a Common Source of Pointer Confusion

Novices, especially those who have experience with garbage-collected languages, are often confused with the concept of object deallocation and destruction in C++. They tend to explicitly invoke every object’s destructor

DevX - Software Development Resource

Duplicate Namespace Aliases

A definition of namespace alias can be used to redefine a previously defined namespace alias declared in that scope, as long as the new definition refers only to the same

DevX - Software Development Resource

Rotate Ads on WAP

Question: How do you integrate an ad-serving technology (such as one by Doubleclick that enables you to rotate ads on a regular Web page) onto a cell phone or PDA?

DevX - Software Development Resource

IIF Function Under SQL Server 7.0

Question: Is the IIF function valid under SQL server 7.0? It’s in the SQL Books Online as valid, but none of my stored procedures accept it. Answer: The IIF function

DevX - Software Development Resource

Container of Pointers

Many programmers believe that by storing pointers instead of objects in a container, they improve performance. However, they forget that the pointers still refer to existing objects that must be

DevX - Software Development Resource

Understanding Stack Overflow

The stack is a region of memory on which local automatic variables are created and function arguments are passed. The implementation allocates a default stack size per process. On modern

DevX - Software Development Resource

Disabling Further Inheritance of a Class

To block a class from being derived any further, declare its constructor private. Next, add a public static member function Instance() that creates an instance of this class and returns