[DUG] TMtsAutoObject

Leigh Wanstead leighw at Softtech.co.nz
Tue Jul 20 10:42:05 NZST 2010


Good morning,

I got a project A which has a class inherited from TMtsAutoObject. The code is inside  a dll. I also develop a exe file to use the call CreateOleObject to instantiate the TMtsAutoObject.

The problem now is that I maintain multiple versions of the same project TMtsAutoObject and exe project and running different version of exe and I will expect the right version of TMtsAutoObject. Exe and dll sitting in the same folder.

 Inside windows, only one version of activex control can be registered at one time. I am thinking inside project a to expose a library function call to say loadDllSomething, the exe project first find the right dll and call loadDllSomething. By load dll myself in the exe file, I know which version of dll I want to use. Is this the right way to do that? Any other better way?

TIA

Have a nice day

Regards
Leigh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20100720/82ac6637/attachment.html 


More information about the Delphi mailing list