LoadFromFile

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SpookyDescendant
    New Member
    • Sep 2006
    • 6

    LoadFromFile

    I try to open BMP file using this line of the code:
    Form1->Image2->Picture->LoadFromFile(" files/run.bmp");
    But a messgae "Couldn't open file files/run.bmp" appears.Despite all a few days ago it worked. What did happen? I already don't know how to fix it...

    Please help me...
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    Originally posted by SpookyDescendan t
    I try to open BMP file using this line of the code:
    Form1->Image2->Picture->LoadFromFile(" files/run.bmp");
    But a messgae "Couldn't open file files/run.bmp" appears.Despite all a few days ago it worked. What did happen? I already don't know how to fix it...

    Please help me...
    The first thing I would check is if the file was still in the same place (to make sure the path was valid), and if the user that the compiler is running as has the proper permissions to the file and directory, etc...

    Comment

    Working...