English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
0

I can show bitmaps in my programs but only bitmaps in the same folder as the code is can only be found.If the bitmap is in a subfolder it is still not found.How can I fix this problem without having all the bitmaps in the same folder.

2006-07-01 20:42:06 · 6 answers · asked by DukeInstinct 2 in Computers & Internet Programming & Design

6 answers

SORRY CAN'T HELP YA

I HAVE M++ PROBLEM

2006-07-01 20:46:42 · answer #1 · answered by Anonymous · 0 0

create a path for that folder in the autoexec.bat
or
in your program when to open that file, write the path for that folder with the file name

2006-07-02 03:59:01 · answer #2 · answered by iyiogrenci 6 · 0 0

OK, I have a guess here.

I am assuming that you have tried putting the path to the other files in the "open" function call and it didn't work. REMEMBER that the backslash, even when in a path name HAS to be doubled in C/C++ to work.

In other words:

OpenBMP ("Subdirectory\Bitmap.bmp");

will not work, but

OpenBMP ("Subdirectory\\Bitmap.bmp");

will.

Hope this helps.

2006-07-02 11:21:16 · answer #3 · answered by brunt 4 · 0 0

hello!
create a batch file as what iyiogrenci say. it would create the path for your folders.

2006-07-02 04:55:15 · answer #4 · answered by simply_mica 3 · 0 0

i hate c++ in this and future century

2006-07-15 23:51:17 · answer #5 · answered by rajesh_j_it 2 · 0 0

use \\ or // in set address .

2006-07-03 03:05:04 · answer #6 · answered by Spitrabergâ?¢ 4 · 0 0

fedest.com, questions and answers