Posts: 4,695
Threads: 222
Joined: Apr 2022
Reputation:
322
11-05-2025, 11:53 PM
(This post was last modified: 11-05-2025, 11:54 PM by bplus.)
Doing the things you love IS the best self care!
Except if you love eating ice cream.
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever
Posts: 1,215
Threads: 162
Joined: Apr 2022
Reputation:
34
^^^ TRUTH!
Except if said ice cream is asparagus ice cream?
Posts: 513
Threads: 65
Joined: May 2022
Reputation:
83
I also have these source codes for the inputbox from the old forum. For some unknown reason, they don't work under the QB64PE 4.0.0 32bit IDE. I checked the compatibility with the content on the old forum and it's there. Has anyone tried to compile and run it? The compilation and execution work for me, but after entering text into the inputbox and pressing enter, the program crashes every time, instead of showing the text in the program window. For this reason, I didn't put them here.
Posts: 902
Threads: 38
Joined: Apr 2022
Reputation:
72
(11-06-2025, 05:21 PM)Petr Wrote: I also have these source codes for the inputbox from the old forum. For some unknown reason, they don't work under the QB64PE 4.0.0 32bit IDE. I checked the compatibility with the content on the old forum and it's there. Has anyone tried to compile and run it? The compilation and execution work for me, but after entering text into the inputbox and pressing enter, the program crashes every time, instead of showing the text in the program window. For this reason, I didn't put them here.
@Petr, please send them my way and I'll troubleshoot.
The noticing will continue
Posts: 902
Threads: 38
Joined: Apr 2022
Reputation:
72
mpgcan's code scares me. I'm surprised it worked at all.
The noticing will continue
Posts: 513
Threads: 65
Joined: May 2022
Reputation:
83
11-06-2025, 07:54 PM
(This post was last modified: 11-06-2025, 07:59 PM by Petr.)
Yes. The code is really very complex. It crashes in this loop:
(bm file)
While GetMessageA(_Offset(msg), 0, 0, 0) > 0 ' gets a message from our application's message queue.
dummyL = TranslateMessage(_Offset(msg)) ' performs some additional processing on keyboard events
dummyO = DispatchMessageA(_Offset(msg)) ' sends the message out to the window that the message was sent to
Wend
Good news. In version QB64PE 32 bit 3.12.0 works as expected.
Posts: 902
Threads: 38
Joined: Apr 2022
Reputation:
72
Well, that's just the main loop of the Win32 GUI. So, it's just crashing somewhere in the logic he wrote for the windows themselves. Probably something to do with struct sizes or strings that aren't terminated with null characters.
The noticing will continue