Solved

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

Posted on 2012-03-12
2
1,279 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now