a little off topic but i would be willing to pay money if someone can tell me how to clean up the function "LoadFromFile", from the VCL library.
Printable View
a little off topic but i would be willing to pay money if someone can tell me how to clean up the function "LoadFromFile", from the VCL library.
Too far off topic - mr hijacker
http://cboard.cprogramming.com/cplusplus-programming/77227-do-you-have-delete-programs.html
Anyway, like anything else, you just delete the pointer you called the function on.Code:Graphics::TBitmap *bitmap1;
bitmap1 = new Graphics::TBitmap;
bitmap1->LoadFromFile("C:\\BcbFoundResources\\Bitmaps\\Titles.bmp");
delete bitmap1;