Hi Michel,
>This is the first time I use images in the menu within an EXE. I just found >that if I have the Picture item having a File value >of "d:\main\images\new.gif" in my development environment that it won't be >able to find that file within an EXE. When I run the EXE, it gives me an >error that the file or path is not found. How should I manage that so it >will run ok within an EXE?
>For example, I have that value in my menu for Picture, File:
>d:\main\images\new.gif
>The Menu MPR file gives this:
>DEFINE BAR 1 OF gcfile PROMPT "&gcNew" ;
> SKIP FOR NOT oApp.oToolBar.cmdNew.Enabled ;
> PICTURE "..\..\main\images\new.gif"
>So, it tries to make it relative but within an EXE, this doesn't work.
I'm using also images on my Menus and I dont have problem even I modified them.
The Trick is, you have to recompile Project and tick compile all files..
when you check your menu=>Options=>picture, it will show you that the image file is under the resource option button. The path like below.....
..\..\graphics\sql_server.bmp
Hope it will help you!!
God Bless!
Best Regards,
Jojo R. dela Cuesta
Dalplus Technologies
http://www.dalplus.com