The Latest

DevX - Software Development Resource

DragControl – Drag any control using the mouse

Private Type POINTAPI X As Long Y As LongEnd TypePrivate Type RECT Left As Long Top As Long Right As Long Bottom As LongEnd TypePrivate Declare Function ClipCursor Lib “user32”

DevX - Software Development Resource

Repositioning a File Pointer

The fseek() function provides random file access. It’s declared in as follows: int fseek(FILE *fstream, int offset, int whence); The function sets the file pointer associated with fstream to a

DevX - Software Development Resource

Invoking Overloaded Operators Explicitly

The overloaded operator mechanism is “syntactic sugar” for ordinary function calls. You can always use the explicit name of an overloaded operator function to resolve ambiguities or document your intention.

DevX - Software Development Resource

Getting the Current File Position

The standard function ftell() reports the current file pointer position. The file pointer is a numeric value that represents the current position in the file in the form of offset

DevX - Software Development Resource

Rewinding a File

Instead of using the following form to rewind a file: fseek (fstream, 0, SEEK_SET); You can use the standard function rewind() as a shorthand. rewind() is declared in as follows:

DevX - Software Development Resource

Rewind a File

Instead of using the following form to rewind a file: fseek (fstream, 0, SEEK_SET); You can use the standard function rewind() as a shorthand. rewind() is declared in as follows:

DevX - Software Development Resource

Wireless Special Report: Marching Toward Mobility

Building Weapons of Mass Communication As wireless devices invade the enterprise they present opportunities to empower workers and improve productivity via mobile applications. But they also threaten enterprise security and

DevX - Software Development Resource

Vectors Containing Arrays

Question: I’ve got a struct which is declared as having two fields: int position;char tile-id[6]; When I use this in a vector, I can use the [] notation to initialise

DevX - Software Development Resource

Informix Configuration on NT

Question: How do I program Informix to insert newline characters into CHAR(500) fields? Answer: A char field is defined as ending with a newline, so I don’t think you can

DevX - Software Development Resource

Hyphen Or No Hyphen When Accessing DBACCESS

Question: When accessing DBACCESS from a script, what are the consequences of leaving out the hyphen? What should we adopt as a standard, hyphen or no hyphen? Example: dbaccess mystores

DevX - Software Development Resource

Exchange and .PST Files

Question: How do I import my user’s .PST files directly into Exchange without having to log in as the user and import the files via Outlook? Answer: You might be

DevX - Software Development Resource

Build an XML Document for a Recordset on the Fly

(Note: This tip assumes that you have an ActiveConnectionsetup to your DSN.) This function creates an XML document from an ADO Recordset, programmatically. Public Function CreateXML(strRoot As String,strSQLStatement As String,

DevX - Software Development Resource

Default Script Error Handling on Your Web Pages

The unhandled or unexpected script error is a real issue these days. Script errors can be seen even on many of the professionally designed Web sites and Web-based customer applications.

DevX - Software Development Resource

How to Convert ADO RecordSet into the HTML Table

The following code converts an ADO recordset into an HTML table by using the GetString function of the recordset. This method does not involve the looping or MoveNext method; it

DevX - Software Development Resource

Export HTML Table to Excel

Here is a simple way to export an HTML table to Excel with a single line of code. For the technique to work, you must have Excel installed on the

DevX - Software Development Resource

Don’t Buffer Your ASPs

Using the Buffer propertyof the Response object to buffer Active Server Pages (ASPs) generally isn’t a very good idea.When you buffer an ASP, none of thepage is outputted until the

DevX - Software Development Resource

Choose Appropriate Image Format

A major problem with using images on Web sites is thatimages take much longer to load than text. So you haveto choose your image formats carefully. Two image formats are

DevX - Software Development Resource

Using Web Dialogs in IE

Opening a new browser window is a handy but sometimes misused feature. Eventually, your user ends up with tons of open browser windows they just forget about. Sometimes a Web

DevX - Software Development Resource

Differences in Execution Flow

Question: Why would a program not yield any errors, and yet not run on one system, while resulting in a perfect run (unchanged) on another system? Specifically, a switch statement

DevX - Software Development Resource

Exporting Informix

Question: I need to migrate Informix data to an Oracle database. The current application front end imports with CSV files. Can Informix export to a CSV file? Answer: There is

DevX - Software Development Resource

ODBC drivers for Informix IDS 9.2

Question: We are trying to get our application to work with Informix using ODBC, and we are having repeated failures. We cannot seem to access “memo” (large text) fields of

DevX - Software Development Resource

Using Ports with Informix

Question: From a Windows system I am trying to connect to an Informix database running on a Sun Solarix box, which was just moved behind a firewall. The Windows machine