
PureBasic 5.40 LTS beta 10 is out !
Re: PureBasic 5.40 LTS beta 2 is out !
Thanks, Fred and team 

- majikeyric
- Enthusiast
- Posts: 187
- Joined: Mon Oct 21, 2013 5:21 pm
- Location: France
- Contact:
Re: PureBasic 5.40 LTS beta 2 is out !
Many thanks for all the great work you do on this fabulous product 

- Fangbeast
- PureBasic Protozoa
- Posts: 4789
- Joined: Fri Apr 25, 2003 3:08 pm
- Location: Not Sydney!!! (Bad water, no goats)
Re: PureBasic 5.40 LTS beta 2 is out !
Yeah, thanks Fred. The latest updates have allowed me to visit some old projects. Now I will be less bored:):)
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Re: PureBasic 5.40 LTS beta 2 is out !
Got this error with COMatePLUS.pbi after updating to 5.40 Beta:
hResult = CLSIDFromProgID_(progID, @clsid);
Bad parameter a string is expected.
this become error too
GetCurrentDirectory_(#MAX_PATH, CurrentPath$)
Bad parameter type, number expected instead of string
hResult = CLSIDFromProgID_(progID, @clsid);
Bad parameter a string is expected.
this become error too
GetCurrentDirectory_(#MAX_PATH, CurrentPath$)
Bad parameter type, number expected instead of string
Re: PureBasic 5.40 LTS beta 2 is out !
Liqu wrote:Got this error with COMatePLUS.pbi after updating to 5.40 Beta:
hResult = CLSIDFromProgID_(progID, @clsid);
Bad parameter a string is expected.
this become error too
GetCurrentDirectory_(#MAX_PATH, CurrentPath$)
Bad parameter type, number expected instead of string
Code: Select all
Global CurPath.s = Space(#MAX_PATH)
GetCurrentDirectory_(#MAX_PATH, @CurPath)
Debug CurPath
Current configurations:
Ubuntu 20.04/64 bit - Window 10 64 bit
Intel 6800K, GeForce Gtx 1060, 32 gb ram.
Amd Ryzen 9 5950X, GeForce 3070, 128 gb ram.
Ubuntu 20.04/64 bit - Window 10 64 bit
Intel 6800K, GeForce Gtx 1060, 32 gb ram.
Amd Ryzen 9 5950X, GeForce 3070, 128 gb ram.
Re: PureBasic 5.40 LTS beta 2 is out !
DK_PETER wrote:Liqu wrote:Got this error with COMatePLUS.pbi after updating to 5.40 Beta:
hResult = CLSIDFromProgID_(progID, @clsid);
Bad parameter a string is expected.
this become error too
GetCurrentDirectory_(#MAX_PATH, CurrentPath$)
Bad parameter type, number expected instead of stringCode: Select all
Global CurPath.s = Space(#MAX_PATH) GetCurrentDirectory_(#MAX_PATH, @CurPath) Debug CurPath
Thank you DK_PETER,
it just a lot of codes with winapi that i have been collected become broken and need to be fixed,
even though it's was coded wrong in the first place but it works on previous version. Is auto convert function has been disabled?
Re: PureBasic 5.40 LTS beta 2 is out !
Vector drawing, nice ! Great update !
[*] You should write somewhere (or do a check in checkinstall.sh) that libgtk-3-dev is now required.
[*] The toolbar is now buggy on Linux. It appears at the bottom, and there's still no vertical bar with ToolBarSeparator(), just a space : (Linux Mint 17.2 - Mint-X Controls theme, the toolbar appears at the bottom in ALL themes however)
[*] You should write somewhere (or do a check in checkinstall.sh) that libgtk-3-dev is now required.
[*] The toolbar is now buggy on Linux. It appears at the bottom, and there's still no vertical bar with ToolBarSeparator(), just a space : (Linux Mint 17.2 - Mint-X Controls theme, the toolbar appears at the bottom in ALL themes however)
Code: Select all
If OpenWindow(0, 0, 0, 150, 25, "ToolBar", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If CreateToolBar(0, WindowID(0))
ToolBarStandardButton(0, #PB_ToolBarIcon_New)
ToolBarStandardButton(1, #PB_ToolBarIcon_Open)
ToolBarSeparator()
ToolBarStandardButton(2, #PB_ToolBarIcon_Save)
EndIf
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_Menu
Debug "ToolBar ID: "+Str(EventMenu())
EndIf
Until Event = #PB_Event_CloseWindow
EndIf
Re: PureBasic 5.40 LTS beta 3 is out !
Beta 3 is out !
Re: PureBasic 5.40 LTS beta 3 is out !

Re: PureBasic 5.40 LTS beta 3 is out !
Interesting, but it's not mentioned in the help file. Does it automatically call WriteStringFormat() when using CreateFile()? I would also suggest a similar new option for an "intuitive read mode" that reads/writes the default string format automatically...Fred wrote:Code: Select all
- Added: #PB_Ascii, #PB_UTF8 and #PB_Unicode support to Create/Open/ReadFile() to set the default write/read mode
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Re: PureBasic 5.40 LTS beta 3 is out !
No, it doesn't call WriteStringFormat() automatically, but all WriteString/WriteStringN() without any flags with uses the specified format
Re: PureBasic 5.40 LTS beta 3 is out !
Thanks for Beta 3! The UTF-8 support is getting better and more convenient with every update 

Re: PureBasic 5.40 LTS beta 3 is out !
I really think this would be a neat little feature so I created a request over here: Automatically Read/Write Format for Read/Open/CreateFile()Fred wrote:No, it doesn't call WriteStringFormat() automatically [...]
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
- stefanpape
- User
- Posts: 14
- Joined: Sun Aug 04, 2013 11:12 am
Re: PureBasic 5.40 LTS beta 3 is out !
First of all: Thank you for your excellent work!
But I have to say, that I'm a little bit disappointed, because I hoped, that now you will update the PrinterLib. For my project, with PureBasic I can find cross-platform solutions for all problems, but for one, I have no idea: If I want to print a document to a specific, pre-defined printer (not the standard printer, and without the printer requester), it's only possible with a Windows-User-Lib. But a cross-platform-solution on Mac and Windows is impossible. I hope really, that the PrinterLib gets an update soon, at least with this feature. It should be possible, to read all the installed printers and select one of this printers for the PrinterOutput().
Once more: I have big respect for your work, PureBasic is great.
Or is it possible and I cannot find the way?
Perhaps somebody who reads this, has an idea, how I can realize a cross platform printing solution on specified printers.
But I have to say, that I'm a little bit disappointed, because I hoped, that now you will update the PrinterLib. For my project, with PureBasic I can find cross-platform solutions for all problems, but for one, I have no idea: If I want to print a document to a specific, pre-defined printer (not the standard printer, and without the printer requester), it's only possible with a Windows-User-Lib. But a cross-platform-solution on Mac and Windows is impossible. I hope really, that the PrinterLib gets an update soon, at least with this feature. It should be possible, to read all the installed printers and select one of this printers for the PrinterOutput().
Once more: I have big respect for your work, PureBasic is great.
Or is it possible and I cannot find the way?
Perhaps somebody who reads this, has an idea, how I can realize a cross platform printing solution on specified printers.