Question: Catching errors from a VB ActiveX control in Visual C++ using MFC 
Author Message
 Question: Catching errors from a VB ActiveX control in Visual C++ using MFC

G'day peoples. I'm using an ActiveX control written in VB from a MFC
application (using VC 5.0). The documentation I have for the control says
that it uses "standard VB error handling techniques". The problem is that
the handling of any errors I'm getting doesn't suit my purposes and I'd
like to be able to catch it and handle it differently. The problem is, I
don't know how to catch "Standard VB errors".  I've done some fiddling with
try and catch but the error seems to avoid my catch statement and ends up
at a lower level.

Could some suggest how I could catch this error? The VB code being used to
raise the error is using the err object. One such line is like this:

            Err.Description = "Device not Found on " & m_Port
            Err.Raise vbObjectError + 7

Any hints on how to catch this from VC++ would be much appreciated.

Thanks,

Ian Rowlands

(remove the .nospam off the e-mail address if replying by mail)



Fri, 12 Jan 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Key/tab problems using VB ActiveX controls in MFC CView and derived classes or PropertyPage

2. MFC Control Events Caught in VB Program - Weird Behaviour

3. ActiveX interface magic requested (advanced ActiveX/VB/MFC question)

4. Visual C++/MFC vs. Visual Basic

5. Pls help: Calling C++ DLL using MFC from VB

6. Easy Q? MFC ActiveX / VB ActiveX control

7. accessing objects in a c++ DLL from a c++ activeX control placed in a VB application

8. Problems with loading ActiveX control made in VC++ 6.0 using MFC

9. VB4.0->Visual C++(MFC) Converter

10. Using VB5 COM objs in C++ w/out MFC ?s

11. VB ActiveX Control on a MFC VC++ Dialog.

 

 
Powered by phpBB® Forum Software