devxlogo

Tip Bank

Rounding a Number Up and Down

The standard &ltmath.h> header declares the function ceil() and floor(). These function round the fractional part of a floating point number. ceil() returns the smallest integer that is no less

Declaring a Volatile Member Function

You’re probably familiar with const member functions such as: class A { public: int get_x() const; // can’t change A’s state }; C++ also supports volatile member functions. You declare

The this Pointer

In the body of a non-static member function, the keyword this is a non-lvalue expression whose value is the address of the object for which the function is called. However,

Pure Virtual Destructors

Question: I heard someone saying that C++ standardization does not allow pure virtual destructors not to have a definition. As far as I know, this is not true. Could you

Databases and Large Amounts of Data

Question: I wrote a VB program that uses MS-Access (MDB) type data base using DAO . The application gathers a huge amount of information (25meg a week) and accesses the

Find Constant Name

Question: Instead of trapping an Error by its value (If err.number=429 then…) I would prefer to use a VB defined Constant Name.I can’t seem to find a way to locate

Standalone Executable

Question: How can I compile a Java application’s class files into a standaloneexecutable file without using a commercial native code compiler and atthe same time keep it platform independent? Answer:

Additem Method Syntax

Question: I am trying to use additem to make an addition during a dragdrop event into a list from a textbox. I tried the code: ListName.AddItem = TextName.TextTextName.Text = “”