Debug OCX / DLL Without Using Project Group (with MATLAB)

I have an ActiveX OCX, which is merely a wrapper for an ActiveX DLL, that I want to debug. I am instantiating it in a MATLAB environment. If I fire up the compiled OCX, all works well. However, how do I get to debug in the OCX (I cannot make it a part of a VB project group because the MATLAB is a separate EXE environment). When I try it, when the MATLAB tries to fire up the OCX, it generates an error that the OCX could not be created.
LVL 9
GivenRandyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
Can't you load your OCX project source code into VB6 IDE, add breakpoints, and press F5 to start it ?
0
Éric MoreauSenior .Net ConsultantCommented:
Then you start MatlLab.
0
GivenRandyAuthor Commented:
Yes, but when MATLAB tries to start an instance, it says that it cannot do it. When it is compiled, it works fine (the compiled component is registered). In other cases, when debugging in VB as a group, it handles using the debug version. However, MATLAB seems to think that the compiled one is not registered and the debug one is non-existant. There is probably something simple in the setup that I am forgetting (I thought that I had done this before).
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

GivenRandyAuthor Commented:
I get this error:

>??? Error using ==> actxcontrol
>Control creation failed.

It should have recognized it (I selected the "Start Component" option).
0
Éric MoreauSenior .Net ConsultantCommented:
Maybe that Matlab may not reference a virtually registered component! Not all application can do it!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
EDDYKTCommented:
have you set binary compability on your OCX?
0
EDDYKTCommented:
and then use project group
0
GivenRandyAuthor Commented:
EDDYKT, it is not part of a group nor can it be added (unless I am missing something). The MATLAB is an outside executable from a third-party.
0
EDDYKTCommented:
Ooops, What is the error anywaqy?
0
AzraSoundCommented:
On the debugging tab, you usually select "Wait for components to be created" in these scenarios (or maybe it only applies to ActiveX DLLs).  Can you run your ActiveX DLL and debug in this manner?
0
GivenRandyAuthor Commented:
I tried that, too. It is not acting "normal" (which is not unusual for MATLAB, from my experience).
0
EDDYKTCommented:

On debugging tab

Can you use start program with  your exe on the box?
0
GivenRandyAuthor Commented:
I tried starting the program with the exe as well, same result.
0
GivenRandyAuthor Commented:
Although I would like to get a solution that worked, it very likely is a MATLAB problem (as mentioned above). I will offer more points as needed.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.