qb64 | BASIC for the modern era | Game Engine library
kandi X-RAY | qb64 Summary
kandi X-RAY | qb64 Summary
QB64 is a modern extended BASIC+OpenGL language that retains QB4.5/QBasic compatibility and compiles native binaries for Windows (XP and up), Linux and macOS.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of qb64
qb64 Key Features
qb64 Examples and Code Snippets
Community Discussions
Trending Discussions on qb64
QUESTION
I am programming in QB64, which is a programming language that allows for QBASIC-like syntax, and is translated into C++ code and compiled.
If we want to use a struct
in our code, then we have to declare it and create it manually. In 32-bit, no problem, as it matches the WinAPI MSDN pages and will almost always work. For 64-bit, however, structures have different byte packing and I cannot figure out the correct packing for the STARTUPINFO struct
.
Below is my declaration of the struct
as it works in 32-bit. I know that the struct
needs to be 104 bytes and I am currently 8 bytes short; I have made sure that all my variables match the 64-bit sizing but I'm missing 8 bytes of padding somewhere in my struct. Can someone who knows about byte packing and about WinAPI structs help me solve this?
ANSWER
Answered 2021-Feb-11 at 15:29The field sizes and positions for the STARTUPINFOW
structure in 32-bit and 64-bit builds are summarized below. (Note that these sizes and offsets are the same for the equivalent STARTUPINFOA
version of the structure, used for non-Unicode builds.)
32-bit Windows (note that no padding is required – almost certainly by design):
QUESTION
2 Print "What is your name"
input nameperson$
Print "What is your Dad's name"
input ageperson$
Print "Your Name is ";nameperson$;" ";ageperson$
GOTO 2
...ANSWER
Answered 2020-Dec-27 at 20:26It's been years since last time I programmed in BASIC, but I remembered that there were different flavors of the language (it was the same with C, Pascal, and others).
I googled a bit of both QB64 and Basic 256: The short answer is that the BASIC flavor of QB64 supported line numbers, but Basic 256 implemented a newer flavor of BASIC that didn't support line numbers.
In order to use GOTO
in BASIC 256, you must use labels (any identifier followed by a colon ":")
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install qb64
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page