Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2012-03-12
2
Medium Priority
?
1,388 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 49

Accepted Solution

by:
Martin Liss earned 1000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses

609 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