devxlogo

Tip Bank

Current Directory

Question: I made a project that resides in a subdirectory under Microsoft Visual Basic 4. Example: C:/Program Files/Microsoft Visual Basic// When I run the program, I want it to get

To have or to hold?

Ownership in its OO sense relates to the responsibility for the creation and the destruction of an object. An object (in its broader sense) is an owner of some other

The do’s and don’ts of typedefs

Typedefs can be used to enhance portability by hiding the underlying type of an more abstract entity. For instance, when maximal precision of a floating point is required, one type

New cast operators

C++ still supports C-style type casting in the form of ‘(T) e’ as in: int i = (int) 7.333; Nonetheless, this casting notation is not recommended. What is amiss with

Exception handlers hierarchy

It’s handy to catch potential exceptions in a bottom-down hierarchy: specific exceptions are handled first, then groups of exceptions and finally, a catch-all handler: #include //std::except is the base class

Dynamic Crystal Groups

Often, when adding Crystal reports to your system, you’ll find that userswant the same basic report grouped different ways, like sales reports bycustomer state or salesman or region, and so

Descending index on SQL

Question: How can I create an index in descending order? How can I order data in descending order with “Order By”? I’m using MS SQL Server 6.5. Answer: When you

Arithmetic functions in SQL

Question: How do you create or access arithmetic functions like INT, MOD, or SQRT for use in Microsoft SQL Server? Answer: SQL Server supports math functions including SQRT, CEIL, FLOOR,