We help IT Professionals succeed at work.

Using TLBIMP.exe

Camillia
Camillia asked
on
This is related to the question i asked here:
http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_23105218.html

So, I downloaded VBCorLib.dll  from sourceforge. I couldnt add a reference to it in my ASP.Net app.

I tried using tlpimp from here:http://msdn2.microsoft.com/en-us/library/tt0cf3sx(VS.80).aspx

When I do this: tlbimp VBCorLib.dll /out:enctest.dll

*** I get this error:
TlbImp : warning TI0000 : Type library importer has encountered an interface not
 derived from IUnknown: '_HiddenInterface'.
TlbImp : error TI0000 : System.SystemException - The type library importer encou
ntered an error during type verification. Try importing without class members. :
 System.MissingMethodException - Method not found: 'System.Collections.IEnumerat
or enctest._ICollection.GetEnumerator()'.

What am I doing wrong??
Comment
Watch Question

Sachintana DissanayakeSenior Web Developer
CERTIFIED EXPERT

Commented:
You might need to convert both TLB's to .NET assemblies as below...

tlbimp VBVM6Lib.tlb /out:VBVM6Lib_Assembly.dll
tlbimp vbcortype.tlb /out:vbcortype_Assembly.dll
CERTIFIED EXPERT

Author

Commented:
sorry , but where do I get those "tlb"s from?

http://killian35.proboards30.com/index.cgi?board=general&action=display&thread=1125137950

Not sure if that link is related to tlb or not
Senior Web Developer
CERTIFIED EXPERT
Commented:
You should be able to find them in VCorLib_Src_2_2\Type Libraries folder in the attached file.
Rename the doc file to zip and extract and see, it's the VBCorLib source from sourceforge...
VBCorLib-Src-2-2.doc