devxlogo

April 23, 2002

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

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

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

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