devxlogo

Tip Bank

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

Include Templates

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

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

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

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,