devxlogo

Tip Bank

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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)

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

Insert row drop-down datawindow

Question: How do I insert a row in a drop-down datawindow in PowerBuilder? Answer: You need to use a function of the datawindow control called GetChild. This function returns a