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

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

  1. #21
    Senior Member
    Join Date
    Sep 2004
    Posts
    725
    vBActivity - Stats
    Points
    7
    Level
    1
    vBActivity - Bars
    Lv. Percent
    0%
    Weekly Activity
    1.89%
    Rep Power
    81

    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,769
    vBActivity - Stats
    Points
    7
    Level
    1
    vBActivity - Bars
    Lv. Percent
    0%
    Weekly Activity
    1.89%
    Rep Power
    383

    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
    Senior Member
    Join Date
    Sep 2004
    Posts
    725
    vBActivity - Stats
    Points
    7
    Level
    1
    vBActivity - Bars
    Lv. Percent
    0%
    Weekly Activity
    1.89%
    Rep Power
    81

    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
    Member D.J.Peters's Avatar
    Join Date
    Feb 2010
    Age
    48
    Posts
    113
    vBActivity - Stats
    Points
    71
    Level
    2
    vBActivity - Bars
    Lv. Percent
    84.83%
    Weekly Activity
    121.42%
    Rep Power
    15

    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
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	underscore.png 
Views:	49 
Size:	36.9 KB 
ID:	6561  
    (Sorry about my bad English.)

  5. #25
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    46
    Posts
    7,344
    Blog Entries
    2
    vBActivity - Stats
    Points
    219
    Level
    5
    vBActivity - Bars
    Lv. Percent
    46.83%
    Weekly Activity
    36.49%
    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
    Member D.J.Peters's Avatar
    Join Date
    Feb 2010
    Age
    48
    Posts
    113
    vBActivity - Stats
    Points
    71
    Level
    2
    vBActivity - Bars
    Lv. Percent
    84.83%
    Weekly Activity
    121.42%
    Rep Power
    15

    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
    46
    Posts
    7,344
    Blog Entries
    2
    vBActivity - Stats
    Points
    219
    Level
    5
    vBActivity - Bars
    Lv. Percent
    46.83%
    Weekly Activity
    36.49%
    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
  •