devxlogo

Tip Bank

Read and Write UDL files

Universal Data link files are handy for select data sources but there isn’t a way to create/edit this files. This little class shows how to read/write a UDL file. ‘———————–‘

Count number of words with the RegExp object

A Visual Basic function that counts the number of words in a sentence or text file can become quickly very complex, and usually doesn’t execute fast enough for most purposes.

Extract words with the RegExp object

The following routine extracts all the words from a source string and returns a collection. Optionally, the result contains only unique words.This code is remarkably simpler than an equivalent “pure”

Class Template auto_ptr and Arrays

The std::auto_ptr class template handles only a pointer to a single object. This is because it uses scalar delete, never delete[], to destroy the owned object. Therefore, binding auto_ptr to

The std::pointer_to_unary_function Template

The Standard Library defines several template adaptors for function pointers. The std::pointer_to_unary_function class template encapsulates a pointer to a single argument function. std::pointer_to_unary_function overloads the () operators so that you