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

images in borland C++

P: n/a
Hi

I am using borland c++. I am loading images into my program. However
when I remove the exe from the root directory when i try and open the
exe it says it is missing the bmp. It is obviously getting a link to
the file rather than loading it completely. How can I load it
completely

Thanks
Richard
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Rich" <ri*******@hotmail.com> wrote in message
news:fe**************************@posting.google.c om...
I am using borland c++. I am loading images into my program. However
when I remove the exe from the root directory when i try and open the
exe it says it is missing the bmp. It is obviously getting a link to
the file rather than loading it completely. How can I load it
completely


File access path are a platform-specific thing.

But when you try to open a file, the OS typically searches for the
file relative to a current/working directory -- which at program
startup typically is the path where the application resides.

Make sure the .bmp is moved/copied along your .exe file, or
consider using an absolute path or some other technique.

A NG with 'windows' or 'borland' in its name is probably a better
place to get an answer to your questions.
hth,
Ivan
--
http://www.post1.com/~ivec

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.