Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

Thread: thinBasic interface under Microsoft visual C/C++ language

  1. #21

    Re: thinBasic interface under Microsoft visual C/C++ language

    Kryton,

    actually I use both MS Visual C++ and GCC, and until now I didn't found problems running on different hardware platform but until now I didn't write program to use specific hardware.
    In the past I used heavy the Borland Turbo C.

    Never written programs for linux but only console programs on UNIX System V.

    Ciao,
    Roberto

    http://www.thinbasic.com

  2. #22
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: thinBasic interface under Microsoft visual C/C++ language

    I guess I am wanting that one perfect combination to do it all and it doesn't exist, except for maybe Java. But I am not ready to give up yet.
    Delphi is really close to being that all perfect combo. But the challenge of c++ is there and I hate walking away from challenges, so I will struggle with it some more.
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  3. #23

    Re: thinBasic interface under Microsoft visual C/C++ language

    Updated today.

    See http://community.thinbasic.com/index...sg8264#msg8264 for details.

    Roberto.
    http://www.thinbasic.com

  4. #24

    Re: thinBasic interface under Microsoft visual C/C++ language

    seams to be the function decoration in current MSC SDK is wrong.

    the precompiled MSC example DLL export his entrys with an underscores
    but thinBasic modules does not have an underscore in front of the exported names.

    Joshy
    (Sorry about my bad English.)

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

    Re: thinBasic interface under Microsoft visual C/C++ language

    To keep Core engine compatible with PowerBasic/FreeBasic and C at the same time, some functions have "_" in front of the interface name.
    Those with "_" in front of the name are specific for C.
    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. #26

    Re: thinBasic interface under Microsoft visual C/C++ language

    hello Eros
    i know but will thinBasic look for both declares ?

    all thinBasic lib's dosn't have an undersore but
    the example shipped with the MSVC SDK have one.

    Joshy
    (Sorry about my bad English.)

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

    Re: thinBasic interface under Microsoft visual C/C++ language

    Yes.

    thinBasic first check if module exports "LoadLocalSymbols"
    If found, it is marked an "*Basic"

    If not found, thinBasic checks for "_LoadLocalSymbols"
    If found, module is marked as "C"

    On module unload, "UnLoadLocalSymbols" or "_UnLoadLocalSymbols" is automatically invoked depending on what was found during load.

    Whenever possible I've always tried to automate interfaces in order to leave very few to the users.
    To add a new module it is just needed to put into \Lib\ directory and use it in script without any worry about library and fall into the so called "dll hell"

    Ciao
    Eros
    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

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Replies: 8
    Last Post: 05-08-2008, 19:12

Members who have read this thread: 1

Posting Permissions

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