Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi bitte um Hilfe: Erstellung eines Komponenten-Wrappers (https://www.delphipraxis.net/133980-bitte-um-hilfe-erstellung-eines-komponenten-wrappers.html)

Marco Steinebach 13. Mai 2009 09:49


bitte um Hilfe: Erstellung eines Komponenten-Wrappers
 
Liste der Anhänge anzeigen (Anzahl: 1)
Hallo Zusammen,
ich habe hier eine .TLB, aus der ich mittels tlibimp eine Unit erstellen müßte.
Problem: mein D5 Standard hat diese TLIBIMP.EXE nicht, und ich kann sie nirgends finden.
Versuche ich die Unit mittels Projekt | Typbibliothek importieren, zu erstellen, kriege ich einen Fehler.
Könnte mir vielleicht jemand, der die TLIBIMP drauf hat, und vielleicht sogar noch D5, ;-), diese Unit erstellen?
Ich häng hier absolut fest!
Die Installationsanweisung sagt:
tlibimp -O- -E- -C- -P+ -T+ FREngine.tlb
Das wäre super-riesig-nett!!!!
Einen freundlichen Gruß
Marco

Klaus01 13. Mai 2009 09:59

Re: bitte um Hilfe: Erstellung eines Komponenten-Wrappers
 
Liste der Anhänge anzeigen (Anzahl: 1)
Hallo Marco,

habe es mal versucht:
Ergebnis:

D:\development\Delphi6\Bin>tlibimp -O- -E- -P+ -T+ d:\FREngine.tlb
Borland TLIBIMP Version 6.0
Copyright (c) 1997, 2001 Borland Software Corporation
Invalid option -E-
Please run 'tlibimp -?' for help with options (or contact a stockbroker)

Code:
D:\development\Delphi6\Bin>tlibimp -?
Borland TLIBIMP Version 6.0
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
Allerdings mit Delphi6.


Ergänzung:

so geht es - aber ob es für Dich so o.k. ist weiß ich nicht.

D:\development\Delphi6\Bin>tlibimp -O- -P+ d:\FREngine.tlb
Borland TLIBIMP Version 6.0
Copyright (c) 1997, 2001 Borland Software Corporation
Type library loaded ....
Created D:\development\Delphi6\Bin\FREngine_TLB.dcr
Created D:\development\Delphi6\Bin\FREngine_TLB.pas

Die Files habe ich angehängt.

Grüße
Klaus

mkinzler 13. Mai 2009 10:14

Re: bitte um Hilfe: Erstellung eines Komponenten-Wrappers
 
Liste der Anhänge anzeigen (Anzahl: 1)
Habe mal eine Wrapper-Unit erzeugen lassen, allerdings mit D2009. Es könnte also sein, das etwas Anpassungsarbeit notwendig ist

Marco Steinebach 13. Mai 2009 10:17

Re: bitte um Hilfe: Erstellung eines Komponenten-Wrappers
 
Hallo Klaus01 und Markus,
Erstmal ganz herzlichen Dank für die unglaublich schnelle Antwort und die Mühe.
Für Delphi6/7, steht hier, heißt die Kommandozeile:
tlibimp -O- -Cd- -C- -P+ -Pt+ FREngine.tlb
Würdest du das nochmal probieren?
Hoffe, das ding läßt sich dann auch in meinem D5 verwenden.
Ich schau mir die beiden Teile jetzt mal an!
Viele Grüße und nochmal Danke!
Marco

Klaus01 13. Mai 2009 10:26

Re: bitte um Hilfe: Erstellung eines Komponenten-Wrappers
 
Liste der Anhänge anzeigen (Anzahl: 1)
Hallo Marco,

anbei das File erstellt mit diesen Parametern:
tlibimp -O- -Cd- -C- -P+ -Pt+ FREngine.tlb

Grüße
Klaus

Marco Steinebach 13. Mai 2009 10:28

Re: bitte um Hilfe: Erstellung eines Komponenten-Wrappers
 
Hallo Klaus01,
Ganz herzlichen Dank nochmal!
Na dann, auf geht's! ;-)
Grüße
Marco


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:38 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz