Re:RAD Basic – Compatible with Visual Basic 6 projects
by layer8 on Friday May 06, 2022 @08:13AM
(#31284232)
You could run stuff asynchronously using a hidden window. Basically you could use the full win32 API and use VB procedures as callbacks (e.g. as window procedures for your own window subclass). The book “Hardcore Visual Basic” explained how to do it: https://classicvb.net/hardweb/hardbook.htm
Re:RAD Basic – Compatible with Visual Basic 6 projects
by shireboy on Friday May 06, 2022 @07:02AM
(#31283719)
You’d just pepper Doevents() everywhere and it almost seemed multithreaded.
Re:RAD Basic – Compatible with Visual Basic 6 projects
by ptx on Friday May 06, 2022 @04:15PM
(#31289213)
Since win32 requires customizing the main event loop to handle e.g. non-modal dialogs, doesn't running nested event loops all over the place (which diverts the messages away from the custom main loop) break things like that?
Re:RAD Basic – Compatible with Visual Basic 6 projects
by nedsma on Friday May 06, 2022 @07:21AM
(#31283821)
I have forgotten that trick. Good ol' times. :)
Re:RAD Basic – Compatible with Visual Basic 6 projects
by GekkePrutser on Friday May 06, 2022 @07:26AM
(#31283858)
I did, but many operations would still lock. Database operations in particular.
But yeah DoEvents ftw.
However it severely missed multi threading. You could make things semi -multithreaded by making sure everything was event-based but there were still so many calls that would lock the UI.