tlbimp problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




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 ***
.



Relevant Pages

  • How Do I Create an Entry Point for a DLL?
    ... A VB.NET application will reference the DLL by using a Declare ... Declare Function F Lib "Foo.dll" As Double ... When I write the DLL and test it, however, I get a runtime error. ... Unable to find an entry point named 'F' in DLL 'Foo.dll'. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Unsigned 32 bit
    ... This helper dll has the base adress 0x02400000. ... Its equivalent VB declare is ... Dim MyVar As Long, AdressOfMyVar1 As Long, AdressOfMyVar2 As Long ... Both project internal adresses are inside the jump table VB has build. ...
    (microsoft.public.vb.general.discussion)
  • Re: Unsigned 32 bit
    ... > For this helper dll I wrote a typelib in IDL called ukVBHLB.tlb. ... Its equivalent VB declare is ... > Both project internal adresses are inside the jump table VB has build. ...
    (microsoft.public.vb.general.discussion)
  • Re: Converting VB6 Structures to .NET
    ... This dll was written by a third party ... I will try ByRef. ... I am using a number of "Declare Function" statments to access the functions ... Public Structure zFuheader ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Why doesnt VB6 find yDecLib.dll on second and subsequent runs in IDE?
    ... The first time the app is run in the IDE, ... The dll is in the application folder. ... a full path for the Declare Statement. ...
    (microsoft.public.vb.general.discussion)