do you have to delete the programs

This is a discussion on do you have to delete the programs within the C++ Programming forums, part of the General Programming Boards category; a little off topic but i would be willing to pay money if someone can tell me how to clean ...

  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    25
    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.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    Too far off topic - mr hijacker
    do you have to delete the programs
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,066
    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Ž

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C Delete opened file
    By gidion in forum C Programming
    Replies: 25
    Last Post: 12-04-2008, 09:35 AM
  2. Delete Function in Doubly Linked List
    By Dampecram in forum C Programming
    Replies: 5
    Last Post: 11-15-2008, 03:30 PM
  3. can we debug into delete
    By George2 in forum C++ Programming
    Replies: 3
    Last Post: 11-20-2007, 04:45 AM
  4. do you have to delete the programs
    By roaddoggwwe in forum C++ Programming
    Replies: 2
    Last Post: 03-22-2006, 09:48 AM
  5. Problem need help
    By Srpurdy in forum C++ Programming
    Replies: 1
    Last Post: 07-24-2002, 12:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21