The Latest

DevX

The URLLabel Control

This control is a label/picture with hyperlink functionality. All you’ve to do is to place URLLabel on a form, choose the style (Underline, NoUnderline, GotFocus, Graphic), the color or picture

DevX

A guerrilla course on COM(+) security

Introduction Most developers hate to deal with securityissues; that’s why the security-design subject is, most of the time, left out from the “typical developer” MSDN surfing and the application prototypes

DevX

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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