Page 3 of 11
Re: PureBasic 6.40 alpha 1 is ready, surprise inside !
Posted: Sat Jan 24, 2026 12:25 pm
by User_Russian
It might be better to do it this way.
Code: Select all
cap$=Space(999) : GetWindowText_(hWnd,cap$,999) : Len(cap$, #PB_String_UpdateLength) : Debug cap$
Function Len() with a flag #PB_String_UpdateLength will count the number of characters up to the zero byte.
Re: PureBasic 6.40 alpha 1 is ready, surprise inside !
Posted: Sat Jan 24, 2026 1:38 pm
by Rinzwind
Code: Select all
Sounds great and welcome improvement. Now is a good time to combine it with """multiline
string
literals"""
f"combined with $StringInterpolation/formatting" (or at least a buildin procedure eq enhanced printf)
Because XML/HTML/JSON/POSTGET/SQLITE/ text blocks are quite common and concatenating is painful and a source of errors/bugs.
Re: PureBasic 6.40 alpha 1 is ready, surprise inside !
Posted: Sat Jan 24, 2026 5:06 pm
by MGD
Rinzwind wrote: Sat Jan 24, 2026 1:38 pm
Code: Select all
Now is a good time to combine it with """multiline
string
literals"""
+1
Re: PureBasic 6.40 alpha 1 is ready, surprise inside !
Posted: Sat Jan 24, 2026 7:38 pm
by netmaestro
Fred, you're stringing us along...
Re: PureBasic 6.40 alpha 1 is ready, surprise inside !
Posted: Sat Jan 24, 2026 8:15 pm
by User_Russian
For Windows is now minimum file size executable 265 KB...
Re: PureBasic 6.40 alpha 1 is ready, surprise inside !
Posted: Sat Jan 24, 2026 10:31 pm
by le_magn
User_Russian wrote: Sat Jan 24, 2026 8:15 pm
For Windows is now minimum file size executable 265 KB...
What is the minimum size for the 6.30?
Re: PureBasic 6.40 alpha 1 is ready, surprise inside !
Posted: Sat Jan 24, 2026 11:40 pm
by User_Russian
144 КБ.
Re: PureBasic 6.40 alpha 1 is ready, surprise inside !
Posted: Sun Jan 25, 2026 4:43 am
by BarryG
User_Russian wrote: Sat Jan 24, 2026 8:15 pmFor Windows is now minimum file size executable 265 KB
Based on what? Just a MessageRequester()? An empty source file?
Re: PureBasic 6.40 alpha 1 is ready, surprise inside !
Posted: Sun Jan 25, 2026 4:47 am
by BarryG
freak wrote: Sat Jan 24, 2026 12:06 pmCode: Select all
cap$=Space(999) : GetWindowText_(hWnd,cap$,999) : cap$ = PeekS(cap$)
Dang. I've got a lot of API calls like that (and not just GetWindowText either).

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !
Posted: Sun Jan 25, 2026 11:11 am
by ❤x1
User_Russian wrote: Sat Jan 24, 2026 8:15 pm
For Windows is now minimum file size executable 265 KB...
That's a terrible day for every people distributing their software on floppy.
Re: PureBasic 6.40 alpha 1 is ready, surprise inside !
Posted: Sun Jan 25, 2026 1:08 pm
by pjay
Impessive update

- Thanks Fred.
❤x1 wrote: Sun Jan 25, 2026 11:11 am
That's a terrible day for every people distributing their software on floppy.

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !
Posted: Mon Jan 26, 2026 11:28 am
by User_Russian
BarryG wrote: Sun Jan 25, 2026 4:43 am
User_Russian wrote: Sat Jan 24, 2026 8:15 pmFor Windows is now minimum file size executable 265 KB
Based on what? Just a MessageRequester()? An empty source file?
MessageRequester() - 267 KB.
Empty source file - 265 KB.
Re: PureBasic 6.40 alpha 1 is ready, surprise inside !
Posted: Mon Jan 26, 2026 12:07 pm
by mk-soft
PB v6.30:
Compiled Empty Executable: 144kb
Compiled Empty Executable Use shared UCRT: 23kb

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !
Posted: Mon Jan 26, 2026 12:17 pm
by miso
mk-soft wrote: Mon Jan 26, 2026 12:07 pm
PB v6.30:
Compiled Empty Executable: 144kb
Compiled Empty Executable Use shared UCRT: 23kb
I'm glad, that shared UCRT is optional, and not a must.
Re: PureBasic 6.40 alpha 1 is ready, surprise inside !
Posted: Mon Jan 26, 2026 12:50 pm
by BarryG
User_Russian wrote: Mon Jan 26, 2026 11:28 amMessageRequester() - 267 KB.
Empty source file - 265 KB.
Let's compare that with PureBasic 5.73:
MessageRequester() - 4.50 KB.
Empty source file - 2 KB.
That's why I still use 5.73 for my private projects.

The old PureBasics were so lean and clean.