Page 29 of 46 FirstFirst ... 192627282930313239 ... LastLast
Results 1,121 to 1,160 of 1810

Thread: TwinBasic

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

    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
    8,598

    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
    203

    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
    5,647

    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).
    Last edited by fafalone; Aug 2nd, 2022 at 05:32 PM.

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

    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
    Location
    Sofia, Bulgaria
    Posts
    5,120

    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
    8,598

    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
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    2,235

    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?
    https://github.com/yereverluvinunclebert

    Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.

    By the power invested in me, all the threads I start are battle 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
    8,598

    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
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: TwinBasic programming

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

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

  11. #1131
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    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
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    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
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    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
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    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/

  15. #1135
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: TwinBasic programming IDE - download and install

    twinBASIC IDE BETA 92 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/

  16. #1136
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: TwinBasic

    twinBASIC IDE BETA 93 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/

  17. #1137
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: TwinBasic

    twinBASIC IDE BETA 94 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/

  18. #1138
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: TwinBasic programming IDE - download and install

    twinBASIC IDE BETA 95 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/

  19. #1139
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: TwinBasic programming IDE - download and install

    twinBASIC IDE BETA 96 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/

  20. #1140
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: TwinBasic

    twinBASIC status update

    twinBASIC Update: August 21, 2022

    Highlights include IDE improvements, support for Excel events in COM addins, and a kernel-mode driver written in twinBASIC (yes, really).

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

  21. #1141
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: TwinBasic programming IDE - download and install

    twinBASIC IDE BETA 97 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/

  22. #1142
    Addicted Member
    Join Date
    Aug 2013
    Posts
    236

    Re: TwinBasic programming IDE - download and install

    I know that there is a lot done and being done and that there are reasons why this is so but it feels a little disappointing that it is still not possible to import even the simplest imaginable vb6 form based project into tb.

  23. #1143
    Addicted Member
    Join Date
    Dec 2020
    Posts
    203

    Re: TwinBasic

    vbrad,

    This month I'm only tackling things that can realistically be achieved in an hour or two at a time, since my kids are off school and work time is in short supply, so I don't want to be starting something too deep. But rest assured, the UI stuff is top priority for September, and there will be a big push to get that work done (including the migration of forms).

    I know it's frustrating, but please bear with me!

  24. #1144
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    2,235

    Re: TwinBasic

    Goodness me. VBRad you are easily disappointed.
    https://github.com/yereverluvinunclebert

    Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.

    By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.

  25. #1145
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: TwinBasic

    Quote Originally Posted by WaynePhillipsEA View Post
    But rest assured, the UI stuff is top priority for September, and there will be a big push to get that work done (including the migration of forms).
    We are all waiting eagerly

  26. #1146
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: TwinBasic programming IDE - download and install

    twinBASIC IDE BETA 98 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/

  27. #1147
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: TwinBasic programming

    HOW TO: Handle Excel Events in a twinBASIC COM Addin

    You can now use twinBASIC to create a COM add-in for Excel that handles Excel Application events like NewWorkbook and WorkbookOpen.

    https://nolongerset.com/handle-excel...-in-twinbasic/

  28. #1148
    Addicted Member
    Join Date
    Aug 2013
    Posts
    236

    Re: TwinBasic

    Quote Originally Posted by WaynePhillipsEA View Post
    vbrad,

    This month I'm only tackling things that can realistically be achieved in an hour or two at a time, since my kids are off school and work time is in short supply, so I don't want to be starting something too deep. But rest assured, the UI stuff is top priority for September, and there will be a big push to get that work done (including the migration of forms).

    I know it's frustrating, but please bear with me!
    Great to hear, thanks Wayne.
    What you've achieved so far is nothing short of amazing.
    As someone who works pretty much exclusively in vb6 form based applications, I am so looking forward to creating something simple in vb6 and being able to then open that in tb!
    Thanks very much for your post, it means a lot.

  29. #1149
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: TwinBasic programming IDE - download and install

    twinBASIC IDE BETA 99 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/

  30. #1150
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: TwinBasic programming IDE - download and install

    twinBASIC IDE BETA 100 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/

  31. #1151
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: TwinBasic programming IDE - download and install

    twinBASIC IDE BETA 101 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/

  32. #1152
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: twinBASIC

    twinBASIC status update

    twinBASIC Update: August 28, 2022

    Highlights include improvements to code selector boxes in the IDE, IntelliSense improvements, and better support for "kernel mode" (i.e., device drivers).

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

  33. #1153
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: twinBASIC programming IDE - download and install

    twinBASIC IDE BETA 102 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/

  34. #1154
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: twinBASIC programming IDE - download and install

    twinBASIC IDE BETA 103 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/

  35. #1155
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: twinBASIC programming IDE - download and install

    twinBASIC IDE BETA 104 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/

  36. #1156
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: twinBASIC programming IDE - download and install

    twinBASIC IDE BETA 105 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/

  37. #1157
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: twinBASIC programming IDE - download and install

    twinBASIC IDE BETA 106 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/

  38. #1158
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: twinBASIC programming IDE - download and install

    twinBASIC IDE BETA 107 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/

  39. #1159
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,123

    Re: TwinBasic

    Is there some sort of "import" feature of TB to import VB6 projects? Or is there a guide to "convert" a VB6 project to TB without completely rewriting it?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  40. #1160
    Fanatic Member
    Join Date
    Feb 2015
    Posts
    1,023

    Re: TwinBasic

    Quote Originally Posted by dee-u View Post
    Is there some sort of "import" feature of TB to import VB6 projects? Or is there a guide to "convert" a VB6 project to TB without completely rewriting it?
    There is a VB6 import to twinBASIC but it can't yet import Forms (it can import modules and classes).
    Wayne assures us he will be working on the Forms import and the UI over the next month.

Page 29 of 46 FirstFirst ... 192627282930313239 ... LastLast

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