Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: New to COM / thinbasic

  1. #1

    New to COM / thinbasic

    Hello,

    As this is my first post let me introduce myself, I am Kirk a 28 year old software engineer from the UK. I have a degree in computer science and mathematics and have a passion for computer graphics. I currently work at a big firm which creates software to support the development and data capture of clinical trials around the world. I enjoy messing around with different dialects of BASIC and tried thinbasic many years ago, so I am glad to see development has continued. I am also part of the Facebook group so you may have seen my name knocking around.

    I have no experience with COM, unfortunately my knowledge is as in-depth as the short msdn article I found. While the examples made it clear you need to setup a reference to a interface, it left me wondering what the ServerName parameter of COM_CREATEOBJECT() actually is. As I understand COM interface can be a DLL but where does this function try locate the interface?

    Apologies in advance if I have got this function misunderstood, but the docs are very sparse here.

    Kirk

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    Ciao Kirk,

    and welcome to community forum.
    Yes thinBasic is still maintained, there is a little gab in releasing new versions because I'm finishing a big new release full of new functionalities.
    I added too much new options and I went long in releasing them all. I will never do such big changes all together, too complex.

    I'm sorry but COM module has been actually deprecated even if still distributed: https://www.thinbasic.com/public/pro...x.html?com.htm
    In future thinBasic versions iDispatch functionality will substitute it.

    In any case "ServerName" or "ClassName" or "progId" is the string that identify an automation object present in your computer.
    Giving that ProgramId (Program Identifier) to COM_CreateObject should be able to create an instance of that object and work with it,
    There are some applications around you can use to see what automation objects are present in your computer, attached the one I use created by José Rocha: https://forum.powerbasic.com/forum/j...ypelib-browser

    I found some reference quite useful:


    Let me know.
    Ciao
    Eros
    Attached Files Attached Files
    Last edited by ErosOlmi; 02-10-2018 at 15:38.
    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

  3. #3
    Hello Eros,

    Thanks for the warm welcome.

    Sounds good, I am looking forward to see what new features the next update brings! I have just looked up iDispatch and it looks interesting, is this something coming in the next update or is it something in the Beta version? I only have the current stable release.

    Although I haven't managed to read through the entire content of the links provided, they seem extremely well detailed and good resources to have, I will continue to read through the first introduction to broaden my understanding. Also the link to the PB application is very useful as it's a nightmare to locate this information in regedit.

    Thanks
    Kirk

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    Quote Originally Posted by Kirk Friend View Post
    Sounds good, I am looking forward to see what new features the next update brings! I have just looked up iDispatch and it looks interesting, is this something coming in the next update or is it something in the Beta version? I only have the current stable release.
    Better to get version 1.10.4 update a while ago but started to introduced many new aspect including iDispatch or 1.10.5 that I update every week or so but it can contains some important bug or debug messages.
    For iDispatch after installation check under \thinBasic\SampleScripts\iDispatch\ directory for some ongoing examples

    Here link to the post I use to update forum: https://www.thinbasic.com/community/...inBasic-1-10-x
    Here direct download links:
    https://www.thinbasic.biz/projects/t...c_1.10.4.0.zip
    https://www.thinbasic.biz/projects/t...c_1.10.5.0.zip


    Quote Originally Posted by Kirk Friend View Post
    Although I haven't managed to read through the entire content of the links provided, they seem extremely well detailed and good resources to have, I will continue to read through the first introduction to broaden my understanding. Also the link to the PB application is very useful as it's a nightmare to locate this information in regedit.
    Yes, COM is quite vast and complex at first but if you start getting it ... it will open a great new world. It takes some time.
    With iDispatch variables I will try to make COM Automation as easy as I can.
    Last edited by ErosOlmi; 03-10-2018 at 11:53.
    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

  5. #5
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    Quote Originally Posted by Kirk Friend View Post
    I currently work at a big firm which creates software to support the development and data capture of clinical trials around the world.
    I too worked many years ago in a similar company, not big, only 40 people. It was my first job.
    We organized clinical trials for pharmaceutical industry (mainly for companies from Switzerland ), creating paper and software for data collection, made stats.
    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

  6. #6
    The first resource is an excellent resource and was extremely helpful.

    Quote Originally Posted by ErosOlmi View Post
    I too worked many years ago in a similar company, not big, only 40 people. It was my first job.
    We organized clinical trials for pharmaceutical industry (mainly for companies from Switzerland ), creating paper and software for data collection, made stats.
    Sounds very similar to what we are doing, although my company has branched out to various phases of clinical trials we do EDC, ePRO and medical imaging. However, our main line of business is ePRO, we develop Android and iOS applications to assist subjects in completing these diaries and provide reporting services to our clients such as those Swiss powerhouses, Novartis, Roche, Merck and GSK.

    Thanks
    Kirk

  7. #7
    Eros,

    That is outstanding news!

    And I thought you just ignored my VB6 OCX DLL Forms project I have going on at AllBASIC.info.
    ScriptBasic Project Manager
    Project Site
    support@scriptbasic.org

  8. #8
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    Quote Originally Posted by John Spikowski View Post
    That is outstanding news!
    Which one?
    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

  9. #9
    thinBasic COM/OLE automation support.

    See the comment to Rene in the HTTPS thread.

    Here is the All BASIC link again.

    VB6 OCX Forms
    Last edited by John Spikowski; 03-10-2018 at 17:27.
    ScriptBasic Project Manager
    Project Site
    support@scriptbasic.org

  10. #10
    Eros,

    I understand you're busy with UDT stuff but what I'm proposing using VB6 OCXs as intelligent form objects of any interest to you?
    ScriptBasic Project Manager
    Project Site
    support@scriptbasic.org

Page 1 of 2 12 LastLast

Members who have read this thread: 2

Posting Permissions

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