Community
cancel
Showing results for 
Search instead for 
Did you mean: 
mfinnis
Beginner
49 Views

OLE Dispatch Exceptions

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
Beginner
34 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.