Results 1 to 2 of 2

Thread: COM: new forum for COM scripts

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10

    COM: new forum for COM scripts

    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 (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 [wiki=Memory_leak]Memory_leak[/wiki] or in some cases [wiki=GPF]GPF[/wiki] 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:
    [wiki=Active_Template_Library]Active_Template_Library[/wiki]
    http://msdn2.microsoft.com/en-us/library/t9adwcde(vs.80).aspx
    Attached Files Attached Files
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Similar Threads

  1. Scripts: new forum area
    By ErosOlmi in forum Announcements
    Replies: 11
    Last Post: 12-12-2008, 21:55

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •