Link to home
Start Free TrialLog in
Avatar of iphone
iphone

asked on

How to copy object in Visual C++ 6.0

I'm using Visual C++ 6.0 with GDIPlus and need to copy Image object. Is it possible to copy an object?
If that is not possible, is there any solution to create global object (accessible from all functions in the class) for Image object
e.g:
this code give me error when i put it in outside winmain:

Image myImage(L"picture.bmp");
ASKER CERTIFIED SOLUTION
Avatar of jhance
jhance

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of iphone
iphone

ASKER

wow many thanks,
may i know how to destroy an object?

thanks
delete myImageCopy;