>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