devxlogo

Tip Bank

FTP Directory Listing

Question: How can I dynamically create a web page from an FTP directory listing of files with a particular extension? Answer: While there are sophisticated components (.DLLs) that you could

When dynamic_cast<> Fails

The dynamic_cast operator may convert an object to another related (derived or a base) object at run-time. When it fails to convert a pointer to the target pointer, it returns

A Mutable Object Member

When a data member is declared mutable, then it is legal to assign a value to it from a const member function. The following example may demonstrate when it is

Use derivation instead of type-fields

Whenever your class uses a type-field, as in the following case: class Internl { //internationalization aid Lang lg; //type field FontResource fonts public: enum Lang {English, Hebrew, Danish} Internl(Lang lang)

Load a Grid From a SQL Statement

Here is useful code for a generic routine to load a grid from anSQL statement. The example shown is for RDO and Sheridan’s grid,but works with minor modification for any

Roll Your Own

If you are rolling your own controls in VB5 to support applications dealing with databases, consider putting a “Valid” property, “Validation” event, and a “Required” property on your controls. The

Chart Creation

Question: How can I simply turn a monotonous 2-D table into a 2-D chart representation using JavaScript language? Or do I have to use Java for this purpose? Answer: Sorry.

Migrating from Powertool to PFC

Question: We have an application that uses Powertool as a class library. We want to move to PFC. Do you have any suggestions on how to accomplish this task? Is