These two lines are kicking my ass:
g_sImgLoad = vdOpenFileDialog( "Image Files\0*.bmp;*.jpg\0\0" );
dbWriteToClipboard( dbStr( dbFileExist( g_sImgLoad ) ) );
g_sImgLoad is a char* that stores the result of the function vdOpenFilDialog(), which is used to browse Windows for a file.
The second line writes a 1 or a 0 to the clipboard, depending on whether the file exists or not. For some reason, I always get 0 on the clipboard, even though when I paste the filename into Windows, it shows me the image.
What's the problem here?
Thanks.