With this kind of simple example, the following which uses the default bit wise copy constructor works fine.
The simple class looks like
class Bclass {
public:
int iValue;
};
And the code to use the copy constructor looks like:
Bclass *pObject = new Bclass;
pObject->iValue = 10;
Bclass *pObject2 = new Bclass (*pObject);
Using Microsoft Visual Studio 2005, the above works fine.
See also Implementing a Copy Constructor.
See also Copy constructor for pointers to objects.