PureBasic 6.40 alpha 1 is ready, surprise inside !

Developed or developing a new product in PureBasic? Tell the world about it.
User_Russian
Addict
Addict
Posts: 1619
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

Post 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.
Rinzwind
Enthusiast
Enthusiast
Posts: 709
Joined: Wed Mar 11, 2009 4:06 pm
Location: NL

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

Post 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.
MGD
User
User
Posts: 18
Joined: Wed Jul 27, 2022 8:31 pm

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

Post 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
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8453
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

Post by netmaestro »

Fred, you're stringing us along...
BERESHEIT
User_Russian
Addict
Addict
Posts: 1619
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

Post by User_Russian »

For Windows is now minimum file size executable 265 KB...
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 299
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

Post 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?
Image
User_Russian
Addict
Addict
Posts: 1619
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

Post by User_Russian »

144 КБ.
BarryG
Addict
Addict
Posts: 4315
Joined: Thu Apr 18, 2019 8:17 am

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

Post 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?
BarryG
Addict
Addict
Posts: 4315
Joined: Thu Apr 18, 2019 8:17 am

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

Post by BarryG »

freak wrote: Sat Jan 24, 2026 12:06 pm

Code: 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). :(
User avatar
❤x1
User
User
Posts: 54
Joined: Thu Jan 10, 2019 5:56 pm

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

Post 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.
My blog : https://lastlife.net/
My open source PB stuff : Inputify, UITK, SelfHost.
My open source SB stuff : MaterialSB.
pjay
Enthusiast
Enthusiast
Posts: 291
Joined: Thu Mar 30, 2006 11:14 am

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

Post by pjay »

Impessive update 8) - Thanks Fred.

❤x1 wrote: Sun Jan 25, 2026 11:11 am That's a terrible day for every people distributing their software on floppy.
:lol:
User_Russian
Addict
Addict
Posts: 1619
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

Post 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.
User avatar
mk-soft
Always Here
Always Here
Posts: 6514
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

Post by mk-soft »

PB v6.30:

Compiled Empty Executable: 144kb
Compiled Empty Executable Use shared UCRT: 23kb

;)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
miso
Enthusiast
Enthusiast
Posts: 673
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

Post 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.
BarryG
Addict
Addict
Posts: 4315
Joined: Thu Apr 18, 2019 8:17 am

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

Post 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.
Post Reply