C# calling COM obj

C

Chuck Bowling

I have a COM object that I'm trying to use in a C# app. I registered the obj
and added a reference in my C# project. However, when i tried to instantate
a new instance of the object I got this Exception. Anybody have a clue as to
what I'm doing wrong? I wouldn't doubt if it was something very simple. I'm
fairly new to C# and very new to Interop and COM.

Thanks.
 
C

Chuck Bowling

Chuck Bowling said:
I have a COM object that I'm trying to use in a C# app. I registered the obj
and added a reference in my C# project. However, when i tried to instantate
a new instance of the object I got this Exception. Anybody have a clue as to
what I'm doing wrong? I wouldn't doubt if it was something very simple. I'm
fairly new to C# and very new to Interop and COM.

Thanks.

Whoops... Guess it would help if I added the Exception message... :p

An unhandled exception of type 'System.TypeLoadException' occurred in
CSound.exe

Additional information: Could not load type CSoundTypeLib.ComCsoundClass
from assembly CSoundTypeLib, Version=1.0.1705.23796, Culture=neutral,
PublicKeyToken=null.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top