-
Aug 2nd, 2022, 02:25 PM
#1121
Re: TwinBasic programming
Originally Posted by Niya
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.
-
Aug 2nd, 2022, 03:07 PM
#1122
Re: TwinBasic programming
Originally Posted by WaynePhillipsEA
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?
-
Aug 2nd, 2022, 03:19 PM
#1123
Re: TwinBasic programming
Originally Posted by Niya
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.
-
Aug 2nd, 2022, 05:26 PM
#1124
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.
-
Aug 3rd, 2022, 06:36 AM
#1125
Re: TwinBasic
Originally Posted by WaynePhillipsEA
It works just like static lib files, but yes they are internal inside the compiler EXE.
K. That makes sense.
Originally Posted by fafalone
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....
-
Aug 3rd, 2022, 07:53 AM
#1126
Re: TwinBasic
Originally Posted by Niya
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>
-
Aug 3rd, 2022, 09:06 AM
#1127
Re: TwinBasic
Originally Posted by wqweto
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.
-
Aug 3rd, 2022, 10:58 AM
#1128
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.
-
Aug 3rd, 2022, 11:30 AM
#1129
Re: TwinBasic
Originally Posted by yereverluvinuncleber
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.
-
Aug 5th, 2022, 03:08 PM
#1130
Re: TwinBasic programming
How To's and other articles about the twinBASIC language...
https://nolongerset.com/tag/twinbasic/
-
Aug 7th, 2022, 08:39 AM
#1131
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/
-
Aug 12th, 2022, 05:46 PM
#1132
Re: TwinBasic programming IDE
HOW TO: Install twinBASIC
The latest step-by-step instructions for installing twinBASIC
https://nolongerset.com/how-to-install-twinbasic/
-
Aug 14th, 2022, 06:05 PM
#1133
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/
-
Aug 15th, 2022, 03:55 AM
#1134
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/
-
Aug 16th, 2022, 09:33 AM
#1135
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/
-
Aug 17th, 2022, 03:08 AM
#1136
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/
-
Aug 18th, 2022, 07:18 AM
#1137
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/
-
Aug 19th, 2022, 04:39 AM
#1138
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/
-
Aug 20th, 2022, 10:10 AM
#1139
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/
-
Aug 22nd, 2022, 03:49 AM
#1140
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/
-
Aug 23rd, 2022, 06:53 AM
#1141
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/
-
Aug 24th, 2022, 04:22 AM
#1142
Addicted Member
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.
-
Aug 24th, 2022, 07:36 AM
#1143
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!
-
Aug 24th, 2022, 08:31 AM
#1144
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.
-
Aug 24th, 2022, 09:01 AM
#1145
Re: TwinBasic
Originally Posted by WaynePhillipsEA
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
-
Aug 24th, 2022, 09:03 AM
#1146
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/
-
Aug 24th, 2022, 09:09 AM
#1147
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/
-
Aug 24th, 2022, 11:00 AM
#1148
Addicted Member
Re: TwinBasic
Originally Posted by WaynePhillipsEA
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.
-
Aug 25th, 2022, 02:12 AM
#1149
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/
-
Aug 26th, 2022, 05:51 AM
#1150
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/
-
Aug 27th, 2022, 05:06 AM
#1151
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/
-
Aug 28th, 2022, 06:31 PM
#1152
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/
-
Aug 29th, 2022, 07:42 AM
#1153
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/
-
Aug 30th, 2022, 03:53 AM
#1154
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/
-
Aug 31st, 2022, 05:11 AM
#1155
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/
-
Sep 1st, 2022, 03:49 AM
#1156
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/
-
Sep 2nd, 2022, 05:33 AM
#1157
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/
-
Sep 3rd, 2022, 02:15 AM
#1158
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/
-
Sep 4th, 2022, 07:59 AM
#1159
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?
-
Sep 4th, 2022, 10:15 AM
#1160
Re: TwinBasic
Originally Posted by dee-u
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|