In C/C++, one can declare a variable as a WinAPI custom variable by doing something like this:
It automatically declares si as a STARTUPINFO struct/
TYPE from the included header file that defines STARTUPINFO. I did not need to include the original header file as QB64 already includes it when it compiles. Since we already include this header as well as many other headers even without using
DECLARE LIBRARY, it would be awesome to do something like this:
TYPE STARTUPINFOA
'or even: TYPE STARTUPINFO ALIAS STARTUPINFOA '...etc
'fill the type
This, I'm sure, will require backend changes. Maybe too many. It would just make things much easier for those of us (
@Dav,
@Petr,
@Juanjogomez, myself, and others) who use WinAPI or other C/C++ libraries to implement maybe many more APIs in QB64 and possibly wouldn't even require to do
$IF blocks to change
TYPE sizes. Just a suggestion. I'm sure it is quite a hefty request.