Could someone help me with problem of running very simple debugging case
with VB6 described below?
My OS: WinXP Proffesional Version 2002 Service Pack 3
I have VB6 ActiveX DLL project "Project1" containing "Class1" with only
"get" property "MyName" returning static data.
With no problem, I instantiate this class and read it's property "MyName"
when it's *not* run under VB6 debugger in any way. E.g. from another VB6
project debugged in different VB6 instance, or from ran or debugged VC++ 6.0
code.
But,
A big problem comes when I try to debug my primitive ActiveX DLL in VB6
using "Wait for component to be created" or "Run executable" options!
On attempt to instantiate Project1.Class1 which is running under debugger
I'm getting errors:
- from caller in another VB6 instance - "430 - Class doesn't support
Automation or does not support expected interface"
- from VC++ caller - CoCreateInstance on Project1.Class1 succeeds, but
further QueryInterface for _Class1 returns 0x80004002 (E_NO_INTERFACE),
, though when Project1.Class1 is *not* under VB6 debugger everything passes
OK.
If I further add Class_Initialize and Class_Terminate handlers to
Project1.Class1, I can see that in VB6 debugging failure cases the class is
instantiated, but gets terminated imediately.
Can someone give me ideas on how to fix that?
Regards,
Andrei Suvorov.
Regards,
Andrei Suvorov.
"Andrei Suvorov" <andrei...@gmail.com> wrote in message
news:erhRF97Z...@TK2MSFTNGP02.phx.gbl...