Page 2 of 15
Re: PureBasic 5.40 LTS beta 1 is out !
Posted: Mon Aug 31, 2015 6:17 pm
by User_Russian
Fred wrote:This version introduce a new "import" resident file format, which uses an Import/EndImport block and create a file from it. It replaces the old ".pbl" format which is no more supported, and allow imported function arguments to be typed with pseudotype and more.
Please, make small example.
Thank you.
Re: PureBasic 5.40 LTS beta 1 is out !
Posted: Mon Aug 31, 2015 6:23 pm
by Shield
Sounds like great additions.
Code: Select all
- Added Literal string escape support with the '~' operator (ex: a$ = ~"Hello\nWorld\n")
Well geez, freaking finally...
Re: PureBasic 5.40 LTS beta 1 is out !
Posted: Mon Aug 31, 2015 6:29 pm
by Fred
User_Russian wrote:Fred wrote:This version introduce a new "import" resident file format, which uses an Import/EndImport block and create a file from it. It replaces the old ".pbl" format which is no more supported, and allow imported function arguments to be typed with pseudotype and more.
Please, make small example.
Thank you.
Just do an import block:
Code: Select all
Import "test.lib"
yourfunction_() as "yourfunction"
EndImport
And then use the command line compiler:
Code: Select all
pbcompiler test.pb --import "purebasichome/purelibraries/windows/yourfile.imp"
It should now be available as native imported function.
Re: PureBasic 5.40 LTS beta 1 is out !
Posted: Mon Aug 31, 2015 6:42 pm
by User_Russian
How to create from pbi-file, lib and imp file? Or something I have misunderstood?
Re: PureBasic 5.40 LTS beta 1 is out !
Posted: Mon Aug 31, 2015 6:45 pm
by supercdfr
A little error in the help file, on the "migration from 5.30 to 5.40", section CRC32FileFingerprint(): code change .
There was indicate :
; New
UseCR32FingerPrint()
Instead of :
; New
UseCRC32FingerPrint()
Re: PureBasic 5.40 LTS beta 1 is out !
Posted: Mon Aug 31, 2015 7:36 pm
by freak
User_Russian wrote:Thank you for release.
Why need function UnescapeString() if without it working?
Code: Select all
Debug UnescapeString(~"Test=\"Hello\".")
Debug ~"Test=\"Hello\"."
You don't need it for literals. The ~"" already handles the unescaping as you noted.
The function is for doing your own escaping/unescaping if you want. For example:
Code: Select all
; Lets say this comes from an EditorGadget() or similar, so it can contain newline and such
Something$ = ...
; Add escape sequences to make it a single-line string. Then store it in preferences
WritePreferenceString(Key$, EscapeString(Something$))
; Later read it back and remove escapes
Something$ = UnescapeString(ReadPreferenceString(Key$, ""))
Re: PureBasic 5.40 LTS beta 1 is out !
Posted: Mon Aug 31, 2015 8:00 pm
by c4s
Awesome list of new features... thank you very much!

Re: PureBasic 5.40 LTS beta 1 is out !
Posted: Mon Aug 31, 2015 8:12 pm
by Trond
freak wrote:You don't need it for literals. The ~"" already handles the unescaping as you noted.
The example in the help file is misleading.
Code: Select all
Debug UnescapeString(~"Test=\"Hello\".") ; misleading
Debug UnescapeString("Test=\" + #DOUBLEQUOTE$ + "Hello\" + #DOUBLEQUOTE$ +".") ; correct
Re: PureBasic 5.40 LTS beta 1 is out !
Posted: Mon Aug 31, 2015 8:17 pm
by Captn. Jinguji
Thank you, PB Team, for making this new version.
Did I miss something, or what was the reason to remove RemovePackFile() without replacement ?
(And, if may Point that out: it is still being listed in the English help file)
Best regards & Keep up the good work!
Re: PureBasic 5.40 LTS beta 1 is out !
Posted: Mon Aug 31, 2015 8:48 pm
by Flype
Hi team,
Very good features list. I'm particularly looking at HTTP new functions.
Some other stuff is very welcomed also. Thank you.
However, i found some problems
I'm not sure if it's a bug or faulty host on my side
Linux x64 version / XUbuntu
when calling GetURLPart() ; works well with PB5.31, not PB5.4x
or when calling ReceiveHTTPMemory("")
Code: Select all
/usr/bin/ld: can't find -lcurl
collect2: error: ld returned 1 exit status
Re: PureBasic 5.40 LTS beta 1 is out !
Posted: Mon Aug 31, 2015 9:03 pm
by the.weavster
netmaestro wrote:Stunning update!!!
+1
I'm particularly chuffed with the new CGI commands and the database enhancements.
Now I'm looking forward to seeing what's going to be in the next SpiderBasic update because the two are now genuinely complementary.
Re: PureBasic 5.40 LTS beta 1 is out !
Posted: Mon Aug 31, 2015 9:21 pm
by mback2k
Thanks for the new release. Would you mind sharing some details about the HTTPS/TLS implementation? I guess it is very important to understand if PureBasic performs server certificate validation, e.g. using the system certificate store, etc. and which cipher suites are used. Does PureBasic use the Windows SChannel library for TLS (for SMTPS)? And does it use WinHTTP for HTTPS? The post above mentions curl, I guess that one is used on Linux/Mac OS X? Thanks in advance!
Re: PureBasic 5.40 LTS beta 1 is out !
Posted: Mon Aug 31, 2015 9:39 pm
by Polo
Nice, thanks!!!

Re: PureBasic 5.40 LTS beta 1 is out !
Posted: Mon Aug 31, 2015 10:28 pm
by minimy
Yeaaaah!! You´re the boss! Thanks for a lot of news in our veteran friend.. Old, but not obsolete!
PB forever!

Re: PureBasic 5.40 LTS beta 1 is out !
Posted: Tue Sep 01, 2015 12:16 am
by box_80
Seeing a lot of cool features, thanks.