Posted by: David Lein
Hello all,
If I use the following lines of code to read a picture bitmap into a window
and the embedded format of the sBMPPhoto is not truly a bitmap the
SalPicSetFile will lock the file until the application exits. Is there a
way to check what the embedded file type is (example: jpeg, bmp, exe ... )
beforehand so I don't read in an incorrect file type? I've tried using
SalPicGetDescription but have had no success other than a null string
returned.
Code: Select all
If (SalStrRightX(SalStrLowerX(sBMPPhoto), 4) = '.bmp')
Call SalPicSetFile(hWndPhoto, sBMPPhoto)
Call SalUpdateWindow(hWndPhoto)
Call VisFileDelete(sBMPPhoto)
Dave