C
c.verma
I am stuck on one silly thing.It is just about calling unmanaged code
in the C# win/web application. This is what I did:
1) Created a VB dll xyz.dll.
2) Since this is unmanaged dll, I used tlbimp.exe file to create a
managed dll that I am using in my reference of C# project.
tlbimp d:\xyz.dll /out:\abc.dll
3) I inculde abc.dll in my C# project and used the following code to
access the methods of this dll.
abc.clsTest myObj = new abc.clsTest();
4) as soon as the above line is hit, I get the following error:
COM object with CLSID {....} is either not valid or not registered
So I registered xyz.dll using regsvr32 utility. But I still get this
error.
I am not able to find any relevant help on this. You have any idea?
I am pretty sure I am missing a very small thing somewhere :-(
Please help me out!
in the C# win/web application. This is what I did:
1) Created a VB dll xyz.dll.
2) Since this is unmanaged dll, I used tlbimp.exe file to create a
managed dll that I am using in my reference of C# project.
tlbimp d:\xyz.dll /out:\abc.dll
3) I inculde abc.dll in my C# project and used the following code to
access the methods of this dll.
abc.clsTest myObj = new abc.clsTest();
4) as soon as the above line is hit, I get the following error:
COM object with CLSID {....} is either not valid or not registered
So I registered xyz.dll using regsvr32 utility. But I still get this
error.
I am not able to find any relevant help on this. You have any idea?
I am pretty sure I am missing a very small thing somewhere :-(
Please help me out!