Page 29 of 29 FirstFirst ... 1926272829
Results 1,121 to 1,134 of 1134

Thread: TwinBasic

  1. #1121
    Addicted Member
    Join Date
    Dec 2020
    Posts
    180

    Re: TwinBasic programming

    Quote Originally Posted by Niya View Post
    I was just reading this page, and I realized something I didn't even think of before. I've known from the start TwinBASIC didn't have a runtime like VB6 but I never really thought about what that meant until now. Where does TwinBASIC get functions like Len/LenB, AscW, VarPtr etc from? I cannot believe I have never thought to ask that until now.
    Our implementations of the runtime functions get linked in as necessary. So if you make a call to MsgBox for example, your compiled EXE will include our implementation of MsgBox linked in to it just like an ordinary basic Sub/Function.

  2. #1122
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    7,731

    Re: TwinBasic programming

    Quote Originally Posted by WaynePhillipsEA View Post
    Our implementations of the runtime functions get linked in as necessary. So if you make a call to MsgBox for example, your compiled EXE will include our implementation of MsgBox linked in to it just like an ordinary basic Sub/Function.
    Ah ok. Where does it get the implementation from? Does it link from something a lib file like C/C++ would do? Or is it all in the compiler similar to how intrinsics are implemented?
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  3. #1123
    Addicted Member
    Join Date
    Dec 2020
    Posts
    180

    Re: TwinBasic programming

    Quote Originally Posted by Niya View Post
    Ah ok. Where does it get the implementation from? Does it link from something a lib file like C/C++ would do? Or is it all in the compiler similar to how intrinsics are implemented?
    It works just like static lib files, but yes they are internal inside the compiler EXE.

  4. #1124
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    3,387

    Re: TwinBasic

    Len/LenB are intrinsic in VB too; not in the runtime. At least the common one; there's also versions in the VBA dll that you can access with VBA.Len/LenB If you haven't checked it out, The trick's VB6 kernel mode driver shows some of what's built in and some of the limitations. It doesn't use the runtime at all; you have to manually remove it as a dependency.

    But VarPtr is in the runtime. So you needed a workaround even for that (one exists, if you declare the InterlockedExchange API in a certain way, it functions the same as VarPtr).

  5. #1125
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    7,731

    Re: TwinBasic

    Quote Originally Posted by WaynePhillipsEA View Post
    It works just like static lib files, but yes they are internal inside the compiler EXE.
    K. That makes sense.

    Quote Originally Posted by fafalone View Post
    Len/LenB are intrinsic in VB too; not in the runtime. At least the common one; there's also versions in the VBA dll that you can access with VBA.Len/LenB If you haven't checked it out, The trick's VB6 kernel mode driver shows some of what's built in and some of the limitations. It doesn't use the runtime at all; you have to manually remove it as a dependency.

    But VarPtr is in the runtime. So you needed a workaround even for that (one exists, if you declare the InterlockedExchange API in a certain way, it functions the same as VarPtr).
    I see. That's very interesting. With regards to VBA.Len and such, does everything in the VBA namespace work as an intrinsic when not fully qualified? For example stuff like Command$/Command....
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  6. #1126
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Posts
    4,048

    Re: TwinBasic

    Quote Originally Posted by Niya View Post
    With regards to VBA.Len and such, does everything in the VBA namespace work as an intrinsic when not fully qualified? For example stuff like Command$/Command....
    No, not everything.

    Here is a discussion how to figure out which one is implemented as intrinsic and you can even use different color in the Editor for intrinsics.

    cheers,
    </wqw>

  7. #1127
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    7,731

    Re: TwinBasic

    Quote Originally Posted by wqweto View Post
    No, not everything.

    Here is a discussion how to figure out which one is implemented as intrinsic and you can even use different color in the Editor for intrinsics.

    cheers,
    </wqw>
    Ah ok. That's very clever.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  8. #1128
    Frenzied Member
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    1,522

    Re: TwinBasic

    Niya, is TB carefully and gently luring you back into the world of VB6? Can you see yourself coding again in that lovely language that you know so well?
    By the power invested in me, all the threads I start are Niya and Olaf free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.

  9. #1129
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    7,731

    Re: TwinBasic

    Quote Originally Posted by yereverluvinuncleber View Post
    Niya, is TB carefully and gently luring you back into the world of VB6? Can you see yourself coding again in that lovely language that you know so well?
    Probably not. Don't get me wrong, I think TwinBASIC will be great and based on my experience with it, I would definitely recommend it. It is shaping up to be a highly competitive modern language. However, .Net already gives me almost everything I could ever want. There is just no reason for me to leave it.

    There is one thing however, that TwinBASIC offers that .Net cannot, the ability to create dependency-free native code standard DLLs using a flavor of BASIC I'm highly familiar with. C is probably still the best language for writing standard DLLs but for relatively simple or higher level stuff, BASIC is more than adequate and I can get it done a lot faster.

    Most of my coding in the VB6 world would still be mostly stuff on these forums and some stuff for our main POS application which is still written in VB6. But outside of that, most of the code I will be writing in the future will be .Net code. I would probably use TwinBASIC over C/C++ if a need to create standard Windows DLLs comes up in the future.
    Last edited by Niya; Aug 3rd, 2022 at 11:48 AM.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  10. #1130
    Hyperactive Member
    Join Date
    Feb 2015
    Posts
    440

    Re: TwinBasic programming

    How To's and other articles about the twinBASIC language...

    https://nolongerset.com/tag/twinbasic/

  11. #1131
    Hyperactive Member
    Join Date
    Feb 2015
    Posts
    440

    Re: TwinBasic

    twinBASIC status update

    twinBASIC Update: August 7, 2022

    Highlights include a major compiler refactor to help reduce compiler memory usage and proposed support for multiple built-in rounding methods.


    https://nolongerset.com/twinbasic-update-august-7-2022/

  12. #1132
    Hyperactive Member
    Join Date
    Feb 2015
    Posts
    440

    Re: TwinBasic programming IDE

    HOW TO: Install twinBASIC

    The latest step-by-step instructions for installing twinBASIC

    https://nolongerset.com/how-to-install-twinbasic/

  13. #1133
    Hyperactive Member
    Join Date
    Feb 2015
    Posts
    440

    Re: TwinBasic

    twinBASIC status update

    twinBASIC Update: August 14, 2022

    Highlights include IDE memory optimizations, build size reductions, and a discussion about a potential extensibility library for the IDE.

    https://nolongerset.com/twinbasic-up...ugust-14-2022/

  14. #1134
    Hyperactive Member
    Join Date
    Feb 2015
    Posts
    440

    Re: TwinBasic programming IDE - download and install

    twinBASIC IDE BETA 91 is now available.

    Download from here... https://github.com/WaynePhillipsEA/twinbasic/releases
    • Click on "Assets" for the latest release
    • Download and Extract the ZIP file into a local folder
    • Then run the twinBASIC.exe from that local folder.



    How to install https://nolongerset.com/how-to-install-twinbasic/

Page 29 of 29 FirstFirst ... 1926272829

Posting Permissions

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



Click Here to Expand Forum to Full Width