hello all
i am trying to figure out how to detect if loading a file in the object fails?
i am using the activeX object to handle the files . i Read about "GFL_ERROR" , but cant seem to find out how to use on an activex object?
e.g. $rc = $imgObject.LoadBitmap ($file);
but here the $rc doesnt return anything
greetings
$imgObject = ObjCreate("GflAx.GflAx")
If $imgObject <> 0 Then
$rc = $imgObject.LoadBitmap ($file);
ConsoleWrite("load " & $rc & @CRLF)
; if loading fails??
$widthOrig = $imgObject.Width ()
$heightOrig = $imgObject.Height ()
$widthTh = Int($widthOrig / 4) ; 1/4 of original
$heightTh = Int($heightOrig / 4)
how can i find error / return codes?
Discussions on GFL SDK, the graphic library for reading and writing graphic files
Moderator: xnview
Jump to
- General
- ↳ Info & Forum
- ↳ XnView - FAQ
- ↳ Miscellaneous
- XnView MP
- ↳ MP - Announcements
- ↳ MP - General Support
- ↳ MP - Bug reports
- ↳ New
- ↳ Reproduced - TODO
- ↳ Fixed in next version
- ↳ Retest
- ↳ Postponed
- ↳ Closed/Resolved
- ↳ MP - Suggestions
- ↳ MP - General [Français]
- XnView Classic
- ↳ Classic - General Support
- ↳ Classic - Bug Reports
- ↳ Classic - Suggestions
- ↳ Classic - General [Français]
- XnView Family
- ↳ XnConvert
- ↳ XnResize
- ↳ XnRetro, XnSketch, ...
- ↳ NConvert
- ↳ XnView Shell Extension
- ↳ Android & iOS: XnPhotoFx, XnRetro, XnSketch, ...
- ↳ XnView Pocket
- ↳ GFL SDK
- Contribution
- ↳ Customization
- ↳ Documentation
- ↳ XnView MP - Translation
- ↳ XnView Classic - Translation
- ↳ Testing - Closed/Solved
- ↳ 1.96 Testing - Feedback
- Archive
- ↳ XnView Un*x
- ↳ XnView Mac OS X
- ↳ Classic - Resolved Bugs & Requests
- ↳ MP - Resolved Bugs & Requests
- ↳ MP – Beta Testing
- ↳ New