用CB的implib 和tlib
http://www.delphibbs.com/delphibbs/dispq.asp?lid=876655
标题: Delphi生成的DLL无Lib文件,那么如何在VC中实现隐式调用呢?(即不用LoadLibrary GetProcAddr 之类的函数) (30分)
另外好像在Delphi的bin目录有个工具tlibimp
E:/Program Files/Borland/Delphi6/Bin>tlibimp.exe /?
Borland TLIBIMP Version 6.15
Copyright (c) 1997, 2001 Borland Software Corporation
Usage: TLIBIMP [options] <typelibfile>
Language Options:
-C- Generate C++ Import file
-P+ Generate Pascal Import file
-Ic- Generate CORBA IDL file (-J)
-Ip- Generate Pascal CORBA stubs and skeletons (-K)
Component Options:
-Ha+ Generate IDE component wrappers for controls (-H)
-Hr+ Generate IDE registration for component wrappers (-Q)
-Hs+ Generate IDE component wrappers for servers (-L)
-Cw- Always use dispinterfaces in control wrappers (-@)
Filename options:
-D<path> Set output directory path
-Fe<name> Set TLB file suffix; -Fe- no suffix (-A)
-Ft<name> Set TLB filename (suffix ignored) (-F)
-Ce<name> Set OCX file suffix; -Ce- no suffix (-B)
-Cn<name> Set namespace name (-N)
-Co<name> Set OCX filename (suffix ignored) (-X)
Pascal options:
-Ps+ Map HRESULT to safecall on dual interfaces (-S)
-Pt- Map HRESULT to safecall on all interfaces (-T)
C++ options:
-Cd- Generate wrapper class for dispinterfaces (-E)
-Cs- Use declspec(__selectany) for GUIDs (-5)
-Ct+ Force the use of a _TLB file (-4)
-Cu+ Expose namespace with 'using' (-G)
-Cv+ Generate BCB4 style event wrappers for servers (-V)
Miscellaneous options:
-O+ Generate CoClassCreator wrappers
-R+ Generate files for dependant type libraries
-XM- Use MS-style property getter/setter prefixes
-W+ Place warnings in import files
-Wc+ Place comments in imported files
Ignore options:
-Yc- Ignore [CanCreate] flag
-Yh- Ignore [Hidden] flag
-Yp- Ignore [Predefined] flag
-Yr- Ignore [Restricted] flag
-Ya- Ignore all special flags