The Latest

DevX

Which Scripting Language Should We Use?

Question: We are in the process of putting up two service portals, which may have business-to-consumer (B2C) transactions. We are confused as to which scripting language we should use. We

DevX

Pass Strings Using URLEncode

A question I seem to answer a lot comes from people trying to pass information through a query string. While Internet Explorer seems to be more forgiving and allows most

DevX

Recommended Books on Cross-Browser DHTML

Question: Can you recommend a book on writing cross-browser DHTML? Answer: What book you should get depends on where you are now. If you’ve never touched JavaScript before, I recommend

DevX

Monitoring Mailbox Contents

Question: I have the need to monitor a mailbox. The mailbox is located on a local server, but the person accessing it is in another country. The person who needs

DevX

Hosting Internet Mail

Question: Right now we have Exchange set to dial up an ISP and retrieve our mail. We are getting a direct connection to the Internet and I want to host

DevX

Dynamically Sort a Listbox

Question: Is it possible to dynamically sort a listbox (a select box with multiple rows)? Let’s say I want to sort the listbox according to different categories. Answer: Here’s how

DevX

Call a Function Across Frames

Question: My page has two frames. The left-side frame has a tree and depending on what the user clicks, I set the location for the right-side frame. My problem is

DevX

Removing Messages on the Server

Question: I’m new to Exchange Administration and was wondering how to clean out my mailbox on the server. I’m showing a lot of messages even though I have all my

DevX

Converting a Datatype to a Stream of Bytes

Sometimes you need to convert a certain datatype to its binary stream ofbytes. An easy way to do it is to create a union that has two members:the datatype in

DevX

Dynamic Type Versus Static Type

The type of the most derived object to which an expression refers is said to be the dynamic type of that expression. For example, if p is declared as a

DevX

The replace() Algorithm

Another useful STL algorithm is replace(), which is defined in the standard header and has the following prototype: void replace (ForwardIterator start, ForwardIterator end, const T & old_value, const T

DevX

Bool Type Conversions

A value of type bool can be converted implicitly to a value of type int, with false becoming zero, and true becoming one. For example: bool b = false; int

DevX

The Future of long

On 32-bit platforms, int and long usually occupy the same size. Programmers use these types interchangeably when they need a 32-bit integer. However, on 64-bit architectures, long is often represented

DevX

Merging Two Lists

Merging two lists isn’t only a popular homework assignment; rather, this task is sometimes needed in real world programming as well. Fortunately, you don’t have to reinvent the wheel anymore.

DevX

Automatic Sorting After Inserting

Question: I have a datawindow with a few columns. I have written a menu through which I can sort the existing data alphabetically or by value. Whenever a new row

DevX

Finding a SQL Builder Component

Question: I’m looking for an “SQL builder” component that I can plug into a VB application that is end-user-friendly. Essentially, I would like the component to allow users to use

DevX

Printing One Page of a Report

Question: How can I give the user the option to print only one page in a Visual FoxPro report? Answer: The REPORT FORM command has a RANGE parameter. Here is

DevX

How to Load Data from TXT Files

Question: How do I pick up useful data from a TXT file and insert it into a database? Answer: You can tackle this problem two ways. If your data follows

DevX

Running an Image Viewer in a Window

Question: How can I run an image viewer in a window portion of a form in Visual FoxPro alongside a scrolling list box? Answer: Here is how to create a

DevX

Allocating Multidimensional Arrays

Question: I have two questions about arrays. I have a 2D array of floats. I want to init everything with 0.0f. There must be a better way than going through

DevX

Menus Using Virtual Functions

Question: What is giving me a redefinition of CMenuItems class error in this code? //cmenu.hclass CMenuItem { public: char title[81]; virtual void Do_Command(void)=0;};//*********************//CMDS.CPP Defines and initializes menu commands.#include #include #include

DevX

The MBListEx ActiveX control

This extended ListBox control adds many features that are missing in the standard VB control, such as support for bitmaps, control on the height, forecolor, backcolor, and font of individual

DevX

Convert a color value to a gray scale

When you have a 32-bit color value, you can convert it to a grey-scale – that is, you can determine how it would appear on a monochromatic display (more or

DevX

Quickly create a copy of an ADO Recordset

When you want to process the data in a Recordset without affecting the actual values in the database, often the Clone method isn’t what you need. For example, if you

DevX

Extract Red,Green,Blue components of a color

If you have a 32-bit color value in RGB format, you can extract its Red, Green and Blue components using the following routines: Function GetRed(ByVal lColor As Long) As Long

DevX

Provide Default Values for Applet Parameters

You can customize your applets by providing parameters at runtime in . But it is a good practice to always provide default values, when specific values for parameters are not