
Changing a DOS Program to a Win32 App
Question: I’ve writen a program that simulates a heat circulation, and one of its functions performs an optimization processwhich uses a lot of dynamic memory. Myquestion is, can I use

Question: I’ve writen a program that simulates a heat circulation, and one of its functions performs an optimization processwhich uses a lot of dynamic memory. Myquestion is, can I use

Question: Is there an equivalent of the CallByName function that returns a list of proprety and method names for an object? Answer: No, there isn’t. If you need that, you

Question: What is a concrete class? Answer: A class that is neither derived from another class nor is meant to serve as the base for other classes is a concrete

Question: Do you know of a tool that helps to either eliminate or identify dead code? Answer: You don’t need a special tool to detect dead code. Every decent compiler

RuleZero 1.2, the easiest and fastest add-on tool for creating database-driven Web pages in Visual InterDev 6 is now free. You can get a copy from Vertigo Software’s site, www.vertigosoftware.com.

Several member functions of std::string might throw exceptions. For example, if you use a very large number to specify the initial storage size, string’s constructor will throw an exception: string

Suppose you define a the following list object and you need the address of one of its elements: std::list li; std::list ::iterator iter = li.begin(); In many contexts, iter functions

It’s perfectly legal to call a member function?virtual or not?from a destructor. However, you should avoid calling a member function that accesses data members that have already been destroyed. For

On exit from a scope, destructors are called for all local automatic objects that are declared in that scope, in the reverse order of their declaration. For example: void f()

Consider the following program: int func(); main() { int n = 0; int arr [2] = { func(), n}; /* ok in C++, not in C */ } A C

A POD (plain old data) type is a union, struct or class with no user-declared constructors, no private or protected non-static data members, no base classes, and no virtual functions.

To zero-initialize an object of type T means that the memory storage occupied by the object is set to binary zeros. More precisely, if T is a built-in data type,

Consider the following class: class A // lacks default constructor { public: A(int x, int y); }; Class A doesn’t have a default constructor. Therefore, the following array declaration will

The standard <math.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

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

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,

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

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

Question: I am developing an application in VB which requires Reminders. On the basis of dates input, if the current date goes past the date in the database it should

Question: A common practice in C is to do something like this to initialize an array of structs: typedef struct {float x,y,z;} Vector3;Vector3 VecList[] = {{1,0,0},{0,1,0},{0,0,1}};// Now VecList[0] = {1,0,0};//

Question: I created a class such as this: class foo { int a; int b; char *atext; float anum; int c;public : void set_a(int newa); int get_a(); void set_b(int newb);

Question: I am just beginning to learn C++ and I’ve stumble on an error that I cannot figure out despite all my efforts. Here is the code where I’m having

Question: I’ve created a console C program that has parameters input on thecommand line and would like to create a Java application that selectsthe parameters and calls the C program

Question: I have an Access database in which I would like to place a tree menu in a form. In this tree menu you would be able to make a

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 = “”

Question: How do I overload the ++ operator to work with an enum variable? For example, I defined SuitType to be {Heat, Club, Diamond, Spade}. I want to use s++

Question: I’m a team leader, I’d like to disable new and delete, so others can’t call these functions, is there a good way to do it? Answer: You can’t really

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

Question: As a developer new to C (I’m using Borland C/C++ version 5), I am trying to understand the method of linking *.c and *.h files within an application. First

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: