AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein GUI-Design mit VCL / FireMonkey / Common Controls Delphi bitte um Hilfe: Erstellung eines Komponenten-Wrappers
Thema durchsuchen
Ansicht
Themen-Optionen

bitte um Hilfe: Erstellung eines Komponenten-Wrappers

Ein Thema von Marco Steinebach · begonnen am 13. Mai 2009 · letzter Beitrag vom 13. Mai 2009
Antwort Antwort
Marco Steinebach

Registriert seit: 4. Aug 2006
491 Beiträge
 
Delphi 5 Enterprise
 
#1

bitte um Hilfe: Erstellung eines Komponenten-Wrappers

  Alt 13. Mai 2009, 09:49
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
Angehängte Dateien
Dateityp: zip frengine_200.zip (87,8 KB, 13x aufgerufen)
Marco Steinebach
  Mit Zitat antworten Zitat
Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.755 Beiträge
 
Delphi 10.4 Sydney
 
#2

Re: bitte um Hilfe: Erstellung eines Komponenten-Wrappers

  Alt 13. Mai 2009, 09:59
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
Angehängte Dateien
Dateityp: zip frengine_tlb_184.zip (42,3 KB, 16x aufgerufen)
Klaus
  Mit Zitat antworten Zitat
mkinzler
(Moderator)

Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.851 Beiträge
 
Delphi 11 Alexandria
 
#3

Re: bitte um Hilfe: Erstellung eines Komponenten-Wrappers

  Alt 13. Mai 2009, 10:14
Habe mal eine Wrapper-Unit erzeugen lassen, allerdings mit D2009. Es könnte also sein, das etwas Anpassungsarbeit notwendig ist
Angehängte Dateien
Dateityp: pas frengine_tlb_205.pas (535,6 KB, 8x aufgerufen)
Markus Kinzler
  Mit Zitat antworten Zitat
Marco Steinebach

Registriert seit: 4. Aug 2006
491 Beiträge
 
Delphi 5 Enterprise
 
#4

Re: bitte um Hilfe: Erstellung eines Komponenten-Wrappers

  Alt 13. Mai 2009, 10:17
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
Marco Steinebach
  Mit Zitat antworten Zitat
Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.755 Beiträge
 
Delphi 10.4 Sydney
 
#5

Re: bitte um Hilfe: Erstellung eines Komponenten-Wrappers

  Alt 13. Mai 2009, 10:26
Hallo Marco,

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

Grüße
Klaus
Angehängte Dateien
Dateityp: zip frengine_tlb_144.zip (42,3 KB, 6x aufgerufen)
Klaus
  Mit Zitat antworten Zitat
Marco Steinebach

Registriert seit: 4. Aug 2006
491 Beiträge
 
Delphi 5 Enterprise
 
#6

Re: bitte um Hilfe: Erstellung eines Komponenten-Wrappers

  Alt 13. Mai 2009, 10:28
Hallo Klaus01,
Ganz herzlichen Dank nochmal!
Na dann, auf geht's!
Grüße
Marco
Marco Steinebach
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 19:58 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz