Autor Beitrag
jjturbo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 516

Win2000 prof., WinXP prof.
D4 Stand., D5 Prof, D7 Prof, D2007 Prof.
BeitragVerfasst: Do 11.10.07 12:33 
Moin Forum,

ich habe zu einer gekauften ActiveX-Komponente eine Lizenzdatei (*.lic) bekommen, die ich aber nicht mit dem Projekt weitergeben darf.
Wie bindet man die dort enthaltenen Lizenz-informationen ins Projekt ein?

Dank Euch, jjturbo

_________________
Windows XP: Für die einen nur ein Betriebssystem - für die anderen der längste Virus der Welt...
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 12.10.07 10:15 
Um welche ActiveX-Komponente handelt es sich?

Hast Du dazu ne Information vom Hersteller?

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
jjturbo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 516

Win2000 prof., WinXP prof.
D4 Stand., D5 Prof, D7 Prof, D2007 Prof.
BeitragVerfasst: Fr 12.10.07 10:31 
Es handelt sich hier um eine Komponente der Fa. Eckelmann, sie dient zur Ansteuerung einer CNC-Steuerung.

Die einzige Info, die ich bis jetzt habe ist folgendes:

Zitat: "für Delphi 5-Programme ohne Lizenzdatei muß programmiert werden:
Beispiel in C, bitte in Delphi entsprechendes ins Projekt programmieren:"

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
System.Reflection.FieldInfo f = 
         typeof(AxHost).GetField("licenseKey", 
         System.Reflection.BindingFlags.NonPublic | 
         System.Reflection.BindingFlags.Instance); 
  f.SetValue(myControl, "gnvlslnjskvlmlgnnimh");
"gnvlslnjskvlmlgnnimh" soll dabei die Runtime-Lizenz sein. Die steht in der Lizenz-Datei.


Zitat: Dann sollte das Programm ohne Lizenzdatei laufen.

_________________
Windows XP: Für die einen nur ein Betriebssystem - für die anderen der längste Virus der Welt...
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 12.10.07 10:38 
Ohne gewähr auf Korrektheit:

ausblenden Delphi-Quelltext
1:
2:
3:
begin
  AxHost.licenceKey := "LicenceKey";
end;


Delphi liest die Reflection-Infos bei ActiveX normalerweise selbstständig.

BTW: Das war übrigens kein C, sondern mindetens C++. C kennt nämlich keine Klassen.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
jjturbo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 516

Win2000 prof., WinXP prof.
D4 Stand., D5 Prof, D7 Prof, D2007 Prof.
BeitragVerfasst: Fr 12.10.07 11:06 
Na ja, das war der Originaltext aus der Email.

Mit AxHost.LicenceKey kann ich irgendwie nichts anfangen. Ist AxHost der Name der ActiveX-Komponente?

_________________
Windows XP: Für die einen nur ein Betriebssystem - für die anderen der längste Virus der Welt...
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 12.10.07 11:08 
user profile iconjjturbo hat folgendes geschrieben:
Na ja, das war der Originaltext aus der Email.

Mit AxHost.LicenceKey kann ich irgendwie nichts anfangen. Ist AxHost der Name der ActiveX-Komponente?


Ich hab auch nur sinngemäß das Übersetzt, was Du gepostet hast. Wenn das in der Email so war, dann ja ;-)

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
jjturbo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 516

Win2000 prof., WinXP prof.
D4 Stand., D5 Prof, D7 Prof, D2007 Prof.
BeitragVerfasst: Fr 12.10.07 11:11 
Und AxHost? Delphi(5) kennt es nicht...

_________________
Windows XP: Für die einen nur ein Betriebssystem - für die anderen der längste Virus der Welt...