If I use a type library (.tlb) in a VB6 project, do I need to distribute it using .exe?

If I use a type library in a VB6 project, do I need to distribute the .tlb file (and maybe even register it?) With the compiled exe on the target computer?

+5
source share
4 answers

No, usually this is only necessary if you are actually invoking code that is trying to use types from the type library. I found some exceptions related to using types from the type library and dimension variables. I think it was something like this ...

, A, ​​. , - .

Sub testSub1(ByRef mybadarray() As A)

Sub testSub2()
  Dim ok As A ' OK provided you never actually Call testSub2 at runtime '
+1

, . .

0

, ActiveX EXE in-proc CoMarshalInterThreadInterfaceInStream ..

0

, .TLB .EXE, , , " " 429: ActiveX ".

0

All Articles