April 23, 2002

DevX - Software Development Resource

Defining a Template Member Function

You can define a template member function in an ordinary class as follows: class C{public: template int func(T* p);};template int C::func(T* p){ return 0;} Note that Visual C++ doesn

DevX - Software Development Resource

Duplicate the Join Function for VB4 and VB5

The native VB6 Split and Join functions have highlighted a number of useful techniques, and VB5 and VB4 programmers can use this extended facility as well. This code emulates the

DevX - Software Development Resource

Retrieve Additional File Properties

Several new properties associated with files were not available when the original VB file I/O statements and functions were designed. To easily access these new properties

DevX - Software Development Resource

Store Primary Key in ItemData

Loading a combo/listbox is pretty easy, and determining what the combo/listbox Text property selects is even easier. But if you load a table that contains duplicate values, you might run