Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, June 2007
Re: What does “-activex” use for?


Message 1 in thread

"Lingfa Yang" <lingfa@xxxxxxx> wrote in message 
news:465F220B.6050406@xxxxxxxxxx
> What does ?-activex? use for?
>
> After I registered an out-of-process server, I saw in register table:
> ?LocalServer32? has Value Data ??. exe ?-activex?
> I wish to insert this object to PowerPoint, but never succeeded, which 
> seems the Qt?s out-of-process server is not insertable at all.
>
> If it is not insertable, what are the purpose to develop such a server 
> rather then an ordinary application?
>
> I have this expectation because I saw, for example, origin50 is 
> insertable as an out-of-process server.
>
> Thanks in advance,
> Lingfa

ActiveQt registers the server executable for out-of-process servers with 
the "-activex" parameter, i.e. 
"c:\qt\4.2.3\examples\activeqt\simple\simpleax.exe -activex". If the 
executable is launched by COM, then it will be started with the -activex 
parameter, and will fire up the COM server before calling main() (which by 
default just starts the event loop). QAxFactory::isServer will return true 
in your control code.


If the executable is started by the user (ie. without -activex), then 
main() will be called without the server started; the default main() 
function will still start the server, but if you write your own then you 
can decide if you want to start the server, or just start a regular 
application, or do both.


Volker


--
 [ signature omitted ]