Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

OLE Dispatch Exceptions

mfinnis
New Contributor II
438 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 II
423 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