ErosOlmi
10-09-2007, 11:51
I've started a new forum where to talk about COM module made by Roberto.
This module can have great importance for the many possible future implementations and interfaces with the many COM objects Windows (and other software developers) give to the users.
You should have already some few COM example under \thinBasic\SampleScripts\COM\ directory.
But here I would like to show something new. A way to add support for ATL in thinBasic scripts and interfacing loaded object with thinBasic COM module.
For the momont it is all quite at initial level but I can see many possible implementations if we will be able to interface with COM objects loaded inside ATL container.
As a starter, see attached example where an ATL container is used to host a Flash component. Than COM module is used to change Flash COM server property "Movie" to load a SWF file from internet. You need to be connected to internet for this example to work. Flash games are loaded from www.CodingMonkeys.com arcade page (http://www.codingmonkeys.com/index.php?action=arcade) (hope they will excuse us) and other web sites. Very easily you can add your own: just add a new command, link it to a menu and manage its url in window message pump.
Have fun and tell us what you think.
More examples will come.
Eros
Attention: some Memory_leak or in some cases GPF can happen but ATL should work on any Win2K or above OS.
In my tests nothing went wrong so far but I just tested under WinXP Sp2.
_________________________________________________
For reference about ATL:
Active_Template_Library
http://msdn2.microsoft.com/en-us/library/t9adwcde(vs.80).aspx
This module can have great importance for the many possible future implementations and interfaces with the many COM objects Windows (and other software developers) give to the users.
You should have already some few COM example under \thinBasic\SampleScripts\COM\ directory.
But here I would like to show something new. A way to add support for ATL in thinBasic scripts and interfacing loaded object with thinBasic COM module.
For the momont it is all quite at initial level but I can see many possible implementations if we will be able to interface with COM objects loaded inside ATL container.
As a starter, see attached example where an ATL container is used to host a Flash component. Than COM module is used to change Flash COM server property "Movie" to load a SWF file from internet. You need to be connected to internet for this example to work. Flash games are loaded from www.CodingMonkeys.com arcade page (http://www.codingmonkeys.com/index.php?action=arcade) (hope they will excuse us) and other web sites. Very easily you can add your own: just add a new command, link it to a menu and manage its url in window message pump.
Have fun and tell us what you think.
More examples will come.
Eros
Attention: some Memory_leak or in some cases GPF can happen but ATL should work on any Win2K or above OS.
In my tests nothing went wrong so far but I just tested under WinXP Sp2.
_________________________________________________
For reference about ATL:
Active_Template_Library
http://msdn2.microsoft.com/en-us/library/t9adwcde(vs.80).aspx