IDL for type library

Is there a way in Delphi 7 to generate tlb from idl? Or even from a class / interface definition?

+2


source to share


2 answers


you can use a batch file IDL2PAS.bat

(check in this location C: \ Program Files \ Borland \ Delphi7 \ Bin) or MIDL.exe

.



+2


source


In Delphi 7, one of the easiest ways is to copy / paste the IDL into the source window of the type library editor. NOT the original * _TLB.pas block 'behind' the type library, but the type library editor itself.



I don't have D7 right now, but iirc you might have to set the Type Library Language option in the IDE settings for IDL, not Pascal. And I also remind you that this method may be sensitive to "exotic" IDLs (ie. Doesn't always work), but if the IDL in question is relatively simple, it might work for you.

+1


source







All Articles