Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > images in borland C++

Reply
Thread Tools

images in borland C++

 
 
Rich
Guest
Posts: n/a
 
      08-23-2003
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
 
Reply With Quote
 
 
 
 
Ivan Vecerina
Guest
Posts: n/a
 
      08-23-2003
"Rich" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
QUERY: Borland C++ 4.5 vs Borland Turbo C++ 1.01 dhruba.bandopadhyay@hotmail.com C++ 1 10-02-2006 10:57 AM
Borland C++ to Visual Studio =?Utf-8?B?RHJpa3Vz?= ASP .Net 3 08-08-2005 08:36 PM
Conversion MS VS.NET 2003 - Borland C#Builder Piotr Karwatka ASP .Net 1 12-15-2004 10:20 PM
Applet JBuilder(Borland) JDeveloper(Oracle) IE 6.0 Falcon Java 5 05-20-2004 08:13 AM
Borland Togethersoft Roul Ravashimka Java 0 05-05-2004 06:42 PM



Advertisments