Hi, experts, I am having a trouble when I am trying to use a COM dll in Visual Studio 2005 .net environment. I have tried to "Add Reference" after I have added the dll in the Bin. However, the following error message pops up.
“A reference to bv7api.dll could not be added. No type libraries were found in the component.”
I have also tried to use regsrv32 to register it, but it still doesn't work.
Then i thinkit might be because the DLL doesn’t have a type library. Therefore, i did try to use the Windows SDK function, TLBIMP and try to create a type library for the API. But unfortunately, when i run that, the following error comes out.
C:\>tlbimp aaaapi.dll /out:abc.dll
Microsoft (R) .NET Framework Type Library to Assembly Converter 2.0.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
TlbImp : error TI0000 : The input file 'C:\aaaapi.dll' is not a valid type library.
or I need to run MIDL.exe to get an IDL file first? i am so lost here....and Visual Studio 2005 doesn't have MIDL.EXE =T
So, I am stuck here. I can't start on my project until I am able to register the dll. Since i am working on a client server application, so i cannot just hardcode the path of the dll.
I am so frustrated now...I have kept trying to register that for 2 days already =T I think I really do need a hand from an expert~~ Thanks.