Solved

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

Posted on 2012-03-12
2
1,289 Views
Last Modified: 2012-04-14
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
0
Comment
Question by:thehow11
2 Comments
 
LVL 46

Accepted Solution

by:
Martin Liss earned 500 total points
ID: 37712441
I doubt very much that you can do that since VB needs to be in control in order to do the debugging. Can you create a VB container that simulates what the 3rd party container does? BTW, what is the 3rd party container?
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question