Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

OLE Dispatch Exceptions

mfinnis
New Contributor III
965 Views

I'm using an ActiveX control that 'throws OLE Dispatch Exceptions'. Is there any way of 'catching' these in Fortran? The code examples that come with the control show its use from Visual Basic as simply

On Error GoTo Handle_Errors

where Handle_Errors is a Sub, so I'm hoping it should be possible. I'm guessing that I need something like an IID__  and an event interface that I can use in DlgSetCtrlEventHandler. Anyone know what they are, or am I way off in my thinking?

0 Kudos
1 Reply
mfinnis
New Contributor III
950 Views

In answer to my own question. Just tick the box 'Check for exception retun status' and the module wizard generates the routine that can be edited as required.

0 Kudos
Reply