Tip Bank

DevX - Software Development Resource

The std::unexpected() Function

The Standard Library defines a function called std::unexpected() which is invoked when a function throws an exception not listed in its exception specification. std::unexpected invokes a user-defined function that was

DevX - Software Development Resource

Registering a Function with std::set_unexpected

set_unexpected() takes a pointer to a user-defined function of the following type: typedef void (*handler)(); Use set_unexpected() to register a user-defined routine that will be invoked when a function throws

DevX - Software Development Resource

Include Templates

Unlike ordinary classes and functions, which you declare in a header file and define in a separate .cpp file, a template

DevX - Software Development Resource

Limit Users Typing in Combo Box

The standard textbox has a MaxChars property that lets you limit the number of characters a user can type into it. The drop-down combo does not, but you can emulate

DevX - Software Development Resource

Design Extended Multiselect Listboxes

When you design a database in Access 2000, the most intuitive way or your users to look at the data they want might be to let them use xtended multiselect

DevX - Software Development Resource

Trim the Contents of HTML Form Elements

To use this tip, the HTML form element which is required for Null Check should assign the title property some value concatenated with “C.” For example: On the submit tag,