Hi, everybody,
I'm now stuck in the debugging of an application. I hope someone
will help me out. The problem is as follows.
I built a DLL component named "Comp". It contains a class module
named "Mod". My client EXE application includes a class module
named "Client". In "Client", I have the following code:
Public myMod as New Comp.Mod
...........
...........
Public Function Proc (Parameter goes here)
Set myMod=New Comp.Mod (Problem occurs in this line.)
..........
..........
End Function
Each time it runs to the Set statement, it gives me an error
message saying "Class does not support automation or does
not support expected init".
I set the reference to Comp.dll in the EXE application. I run the
EXE application after I start the Comp.dll (It's in a separate project.). I tried to unregister Comp.dll and then register it
again. It still doesn't work. Appreciate any possible solutions.
Thanks.
Mike
![]()
![]()




Reply With Quote