By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,897 Members | 1,969 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,897 IT Pros & Developers. It's quick & easy.

LoadFromFile

P: 6
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...
Nov 7 '06 #1
Share this Question
Share on Google+
1 Reply


sicarie
Expert Mod 2.5K+
P: 4,677
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...
Nov 7 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.