RE: ActiveX Control question

"Ivan-Assen Ivanov" <[email protected]> Tue, 11 Jan 2005 20:28:42 +0200
Newsgroups gmane.games.devel.windows
Message-ID <[email protected]>
> I also have a specific question:  is there a proper way to implement a
> control that is completely passive, i.e. accepts no input and just
> does something.  Imagine an application that allows you to download an
> OCX to perform a bunch of calculations and then upload the results
> (kind of like SETI at home, but as an explicit Web page control, not
> as an explicit downloadable).

Assuming you get the COM threading models right, I believe the "proper" way
would the to launch a separate thread in the OnLoad event. Have you tried that?
The main thread of a "proper" Windows application with a user interface 
(including an ActiveX control) should ideally do nothing but react to events.



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555