AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Win32/Win64 API (native code) Delphi Dynamically load ActiveX at runtime
Thema durchsuchen
Ansicht
Themen-Optionen

Dynamically load ActiveX at runtime

Ein Thema von WojTec · begonnen am 11. Dez 2009 · letzter Beitrag vom 14. Dez 2009
Antwort Antwort
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#1

Dynamically load ActiveX at runtime

  Alt 11. Dez 2009, 18:37
Hello. I have purchased AX control and I want to protect it before I deploy software to user. So, I want to load this AX dynamically at runtime without registering it in system (and will be the best without storage it as unprotected standalone file). I'm looking for native Delphi solution (or in other languages - I can try to translate it to Delphi, but this maybe to hard for me) for this task. Any help?

PS: I'm not interested in BoxedApp (or other "close" solution) - it's tooooo expensive for me.
  Mit Zitat antworten Zitat
Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#2

Re: Dynamically load ActiveX at runtime

  Alt 11. Dez 2009, 22:01
An ActiveX control musst be registered in the system, because the system manages the objects therefore it has to know the AcitveX control. But where is the Problem? An ActiveX control is a compiled DLL. The only thing you can find out are the open interfaces, but you wont get the code. The only problem might be that administrative privileges are neccessary to register the control.
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#3

Re: Dynamically load ActiveX at runtime

  Alt 13. Dez 2009, 11:13
No, AX mustn't be register, can be load "virtually". Look at ThinApp or BoxedApp or other similar.
  Mit Zitat antworten Zitat
Benutzerbild von sirius
sirius

Registriert seit: 3. Jan 2007
Ort: Dresden
3.443 Beiträge
 
Delphi 7 Enterprise
 
#4

Re: Dynamically load ActiveX at runtime

  Alt 13. Dez 2009, 12:00
Take a look at that topic and at the sample code:
http://forum.delphi-treff.de/showthread.php?t=24902
But you have to use LoadtypeLib or LoadTypeLibEx instead of LoadRegTypelib.
Dieser Beitrag ist für Jugendliche unter 18 Jahren nicht geeignet.
  Mit Zitat antworten Zitat
Astat

Registriert seit: 2. Dez 2009
Ort: München
320 Beiträge
 
Lazarus
 
#5

Re: Dynamically load ActiveX at runtime

  Alt 13. Dez 2009, 23:56
Hello WojTec.
  • WojTec wrote.

Zitat:
No, AX mustn't be register, can be load "virtually". Look at ThinApp or BoxedApp or other similar.
If u use ThinApp or BoxedApp have a loock into your temp folder and registry.
You will find your AxComponets in the temp folder and, registered in the registry.
ThinApp or BoxedApp isn't magic with ActiveX handling!

With best regards

Astat
Lanthan Astat
06810110811210410503210511511603209711003210010110 9032084097103
03211611111604403209711003210010110903210010510103 2108101116122
11610103209010110510810103206711110010103210511003 2068101108112
10410503210310111509910411410510109810111003211910 5114100046
  Mit Zitat antworten Zitat
Benutzerbild von Sherlock
Sherlock

Registriert seit: 10. Jan 2006
Ort: Offenbach
3.764 Beiträge
 
Delphi 11 Alexandria
 
#6

Re: Dynamically load ActiveX at runtime

  Alt 14. Dez 2009, 08:43
Also you might consider looking into manifests for side-by-side installation of ActiveX Libs.
http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx

Though it was intended as a possibility to run different versions of the same AX-Lib it can also be used to use AX without the need to register it.
Using manifests allows you to program as if the AX-Lib where installed on the client system. No need for special calls or routines. It just works. Note however, that WinXP or higher is needed.

Sherlock
Oliver
  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 12:16 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