QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: SMcNeill on July 21, 2018, 02:24:05 pm
-
I updated the version of the 64-bit windows copy of QB64 so recent changes, alterations, and additions will work for those who want/need to program in a 64-bit environment with Windows. Download can be found over here: http://qb64.freeforums.net/thread/100/qb64-x64-07-21-2018
One note to Luke and Felippe, which still requires a manual edit of libqb.cpp before a 64-bit version will build properly:
int32 func__handle(){
#ifdef QB64_GUI
#ifdef QB64_WINDOWS
#endif
#endif
}
The above will error and crap out on compilation for us, and the reason is simple -- you can't return a 64-bit window handle to a 32-bit integer. At least, not if you want it to work right at all. ;)
Change is simple and doesn't affect the 32-bit version at all -- simply return an integer based on the pointersize, as below:
int32 func__handle(){
#ifdef QB64_GUI
#ifdef QB64_WINDOWS
return (ptrszint
)window_handle;
#endif
#endif
}
If one of you could make and push the simple change into the repo with your next edit, all that's needed from this point forward is to swap out the 32-bit c-compiler for a 64-bit c-compiler and then run setup_win.bat, to build the 64-bit version whenever someone wants/needs to update it in the future. ;)
-
Thanks Steve!
Everything seems to working fine so far in QB64 X 64 folder, including InForm stuff.
-
Glad to hear it's all working as expected. Every so often, the 64-bit version seems to find new and unusual ways to glitch out on us. Last time, it was using LINE and BF (box fill) which died on us, so I'm always half expecting somebody to report a weird new bug every time I do a new 64-bit version, so it's nice when it appears to work properly the first time around.
If it ever does glitch with the x64 version for you, in a manner inconsistent to how it behaves in the x32 version, let me know and I'll try and sort out the issue ASAP for everyone.
-
I updated the version of the 64-bit windows copy of QB64 so recent changes, alterations, and additions will work for those who want/need to program in a 64-bit environment with Windows. Download can be found over here: http://qb64.freeforums.net/thread/100/qb64-x64-07-21-2018
One note to Luke and Felippe, which still requires a manual edit of libqb.cpp before a 64-bit version will build properly:
int32 func__handle(){
#ifdef QB64_GUI
#ifdef QB64_WINDOWS
#endif
#endif
}
The above will error and crap out on compilation for us, and the reason is simple -- you can't return a 64-bit window handle to a 32-bit integer. At least, not if you want it to work right at all. ;)
Change is simple and doesn't affect the 32-bit version at all -- simply return an integer based on the pointersize, as below:
int32 func__handle(){
#ifdef QB64_GUI
#ifdef QB64_WINDOWS
return (ptrszint
)window_handle;
#endif
#endif
}
If one of you could make and push the simple change into the repo with your next edit, all that's needed from this point forward is to swap out the 32-bit c-compiler for a 64-bit c-compiler and then run setup_win.bat, to build the 64-bit version whenever someone wants/needs to update it in the future. ;)
Thank you SMcNeill, this is great. :)
-
Yeah, nice work Steve!
-
Updated the 64-bit version for 10-17-2018, to bring us up to date with all the changes, enhancements, and bug fixes that have taken place in the last 3 months or so of development. Grab it from here: http://qb64.freeforums.net/thread/100/qb64-x64-10-17-2018