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.
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/showthread.php?t=77227
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
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;
Sent from my iPadŽ