Donate Now Goal amount for this month: 100 USD, Received: 0 USD (0%)
Donate to support this site and ThinBASIC project development

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
    Clearwater, Florida, USA
    Posts
    3,802
    Rep Power
    388

    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.

  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
    47
    Posts
    7,612
    Blog Entries
    2
    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/ | psch.thinbasic.com
    Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  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
    47
    Posts
    7,612
    Blog Entries
    2
    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/ | psch.thinbasic.com
    Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

Page 3 of 3 FirstFirst 123

Similar Threads

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

Bookmarks

Posting Permissions

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