Link to home
Start Free TrialLog in
Avatar of thehow11
thehow11Flag for United States of America

asked on

How to debug a VB6 ActiveX Control (OCX) using an External ActiveX Container (3rd party exe)

I've inherited several VB6 ActiveX controls which I need to debug.  I have the source code to the activeX controls.  The ActiveX controls run inside a 3rd party test container which I don't have the source code.  I've tried to setup the VB6 activeX project to 'Create Symbolic Debug Info' and the Version Compaitiblity is set to 'Binary Compatibility' and I have the 'When this project starts' set to 'Start Program: 3rdPartyExternalContainer.exe'

When I run the VB6 in debug mode it launches the 3rd party external container correctly.  I try to insert my activex control into the container but I don't see the appropriate behavior.  I'm expecting my control to show up with all the buttons, etc. but all I see is an outline of the control (black border) which tells me that it isn't working properly.

I noticed that when I lauch the ActiveX control from VB it will change my registry setting for InprocServer32 from my .ocx file to VB6Debug.DLL.  I'm not sure how the External container is suppose to know how to use this file versus my .ocx.

Is it possible to debug a VB6 activex control (.ocx) using a 3rd party executable container from within VB6?

Thanks,

--GSH
ASKER CERTIFIED SOLUTION
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial