Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

error calling com from .net

0 views
Skip to first unread message

John Doe

unread,
Feb 19, 2004, 11:52:23 AM2/19/04
to
Hello,

I have an idl file written using MS VC++ 6. I used the VS .net midl.exe tool
to generate a type library file (.tlb).
I have tried to use the tlb file in a VB.Net app using each of the
following two methods:

1) Add reference in VS .Net using the COM tab , browse, select etc.
2) Using the tlbimp command line to generate a dll file.

With either method when I try to instantiate the com object from .net I
receive the following error message:

Com object with clsid xxxxx is either not valid or not registered.

Any clues where to start?

Thanks.


John Doe

unread,
Feb 20, 2004, 7:23:58 AM2/20/04
to
* I used Regedit and the coclass was not registered under CLSID.
* I used MIDL.exe from the .net tools using the command line

Was this an inappropriate way to convert the idl file to a type library?

Thanks

I
"DWorthem" <anon...@discussions.microsoft.com> wrote in message
news:B8E35B01-BA49-400E...@microsoft.com...
> Did you check Regedit to see if the Coclass was registered under CLSID?
>
> You mentioned that you used midl.exe, do you mean that you did not use a
VS.NET project but instead manually used midl.exe?


0 new messages