Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LoadPicture
Message
From
28/12/1998 17:09:49
 
 
To
28/12/1998 14:21:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00170890
Message ID:
00170956
Views:
18
>I’m experiencing problems when trying to execute the LoadPicture() function. My program works OK at the development computer. However, after distribution, the .EXE file displays the error message # 1111, “File descriptor is not valid”.
>
>The file to be loaded is a .BMP file, the file is included in the project and is also copied to the working directory of the application.
>
>
>Thanks in advance for any tips.
>
>
>Oscar Corte

Hi Oscar!

LoadPicture only works with standalone picture files. So it should be available at run time in the app dir:
LoadPicture(lcAppDir+"whatever.bmp")
If you donnot qualify the bitmap name with fullpath, VFP uses the included bitmap from your app exe, which is not loadable by loadpicure.

BB
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform