Gareth Lambert
2006-08-08 10:32:42 UTC
Hi,
First of all, I am new to VB.net and programming in general. So my
apologies if I don't explain myself clearly.
I am trying to use a DLL within my code. It is not activeX so I can't
add it as a reference. I believe that I must run it through tlbimp.exe
and then declare it from my code. When I run it through tlbimp using the
line tlbimp MotoCom32.dll /out:Moto32.dll I get an error which is:
Tlbimp error : TI0000 : The input file ~MotoCom32.dll is not a valid
type library.
If I just declare the dll from within the code as per some books I've
looked at, I get a runtime error that the file is not present, even
though it is attached to the project.
This is driving me bonkers so any help will be fantastic.
*** Sent via Developersdex http://www.developersdex.com ***
First of all, I am new to VB.net and programming in general. So my
apologies if I don't explain myself clearly.
I am trying to use a DLL within my code. It is not activeX so I can't
add it as a reference. I believe that I must run it through tlbimp.exe
and then declare it from my code. When I run it through tlbimp using the
line tlbimp MotoCom32.dll /out:Moto32.dll I get an error which is:
Tlbimp error : TI0000 : The input file ~MotoCom32.dll is not a valid
type library.
If I just declare the dll from within the code as per some books I've
looked at, I get a runtime error that the file is not present, even
though it is attached to the project.
This is driving me bonkers so any help will be fantastic.
*** Sent via Developersdex http://www.developersdex.com ***