devxlogo

Tip Bank

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:

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:

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

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

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

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

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,