Search found 141 matches

by endo
Fri Jun 13, 2025 11:12 pm
Forum: Announcement
Topic: PureBasic 6.21 is out !
Replies: 169
Views: 30400

Re: PureBasic 6.21 is out !

Thank you for the update and the bug fixes!! 🙏 Keep up the great work!
by endo
Tue Oct 24, 2023 4:38 pm
Forum: Announcement
Topic: PureBasic 6.02 LTS is out !
Replies: 89
Views: 31338

Re: PureBasic 6.02 LTS is out !

This issue is not fixed yet on 6.03 LTS :cry:
I'm stuck using 6.02 Beta because it is the only version that support non-admin installation mode, and my company don't allow to install any app that requires admin rights. I know.. it sucks, but it is what it is.
by endo
Fri Jun 23, 2023 5:39 pm
Forum: Announcement
Topic: PureBasic 6.02 LTS is out !
Replies: 89
Views: 31338

Re: PureBasic 6.02 beta 1 is out !


It install in program files if you choose 'Install for all users' as you need admin rights. If you choose to install only for you, it install in your private appdata folder. To use the C backend, you need to add it in the compilers (in IDE preferences -> Compilers -> add)


So, clearly there is ...
by endo
Tue Jun 06, 2023 8:40 pm
Forum: Announcement
Topic: PureBasic 6.02 LTS is out !
Replies: 89
Views: 31338

Re: PureBasic 6.02 LTS is out !


I would be rather surprised if a setup can be installed without requiring admin rights.


I install most applications for my user only, if they support. They installed into C:\Users\<username>\AppData\Local\Programs\<folder>
And it was supported in PB 6.02 Beta 2 setup.
I'm also sure that I read ...
by endo
Tue Jun 06, 2023 4:48 pm
Forum: Announcement
Topic: PureBasic 6.02 LTS is out !
Replies: 89
Views: 31338

Re: PureBasic 6.02 LTS is out !

Great news!
Note that, I was able to install "PureBasic 6.02 beta 2" onto current user by a command line switch to setup, no admin rights were necessary. But with PureBasic 6.02 LTS, it requires admin rights even with /CURRENTUSER argument.
by endo
Sun Mar 08, 2020 9:07 pm
Forum: Coding Questions
Topic: How to print newline in graphical console
Replies: 4
Views: 1504

Re: How to print newline in graphical console

Thanks for the replies, both methods are useful.
Is it a bug of PureBasic or a known issue of Windows?
by endo
Sat Mar 07, 2020 11:51 am
Forum: Coding Questions
Topic: How to print newline in graphical console
Replies: 4
Views: 1504

How to print newline in graphical console

How can I print a line (or a content read from a file etc.) that includes newline (10, 13 or 0x0D0A) in graphical console?


EnableGraphicalConsole(1)
PrintN("hello" + #CRLF$ + "world")


This prints out hello☐☐world on the console. If I remove EnableGraphicalConsole then it works as expected.
I ...
by endo
Thu Feb 09, 2017 12:13 pm
Forum: Feature Requests and Wishlists
Topic: [Implemented] ReceiveHTTPMemory() needs user-agent setting
Replies: 15
Views: 11192

Re: ReceiveHTTPMemory() needs user-agent setting

We should be able to set any HTTP header for the request.
I need to request for an http://api.example.com but it requires me to set a custom header X-AUTH-KEY which is not possible with PB yet without going to direct network stuff.
by endo
Mon Jan 25, 2016 2:13 pm
Forum: Coding Questions
Topic: ParseJSON Unexpected end of input error (4K limit)
Replies: 7
Views: 2383

Re: ParseJSON Unexpected end of input error (4K limit)

@freak: Got it! Thank you. It solved my problem.

Here is my Pretty Print Json dos command source code, very useful to test web services that returns json


#maxSize = 64 ;64KB

If OpenConsole()
If CountProgramParameters() > 0
val.s = ProgramParameter()
Else
pos = 0
*Buffer = AllocateMemory ...
by endo
Sun Jan 24, 2016 5:35 pm
Forum: Coding Questions
Topic: ParseJSON Unexpected end of input error (4K limit)
Replies: 7
Views: 2383

Re: ParseJSON Unexpected end of input error (4K limit)

Here is my whole application code,
It reads from console data or program arguments, decode the json string and pretty-print it to console output.

I use it like:

more myfile.json | json.exe
or
json.exe < myfile.json
or
json.exe <some-json>
or
curl myurl | json.exe


All the above works if the ...
by endo
Fri Jan 22, 2016 7:02 pm
Forum: Coding Questions
Topic: ParseJSON Unexpected end of input error (4K limit)
Replies: 7
Views: 2383

ParseJSON Unexpected end of input error (4K limit)

ParseJSON fails with "Unexpected end of input error" message if the given string is longer than 4096 byte.
Is there any chance to increase this limit?
by endo
Wed Oct 21, 2015 1:12 pm
Forum: Announcement
Topic: PureBasic 5.40 LTS final is out !
Replies: 52
Views: 26633

Re: PureBasic 5.40 LTS final is out !

Very cool improvements! Great work as always!
by endo
Wed Dec 11, 2013 3:07 pm
Forum: Coding Questions
Topic: InitEngine3D problem on AsusEeePC 1024x600 XP/Home
Replies: 16
Views: 3245

Re: InitEngine3D problem on AsusEeePC 1024x600 XP/Home

I just tested on my work PC, same result! So the problem is not about the PC or there is no problem at all.
ClearScreen doesn't behave as *expected* if InitEngine3D is used.

Edit: I just realized that when InitEngine3D is used drawing directly onto screen is (may?) not working:

InitEngine3D ...
by endo
Wed Dec 11, 2013 1:18 pm
Forum: Coding Questions
Topic: InitEngine3D problem on AsusEeePC 1024x600 XP/Home
Replies: 16
Views: 3245

Re: InitEngine3D problem on AsusEeePC 1024x600 XP/Home

Thank you for all, I'll try your suggestions at home.
by endo
Wed Dec 11, 2013 1:33 am
Forum: Coding Questions
Topic: InitEngine3D problem on AsusEeePC 1024x600 XP/Home
Replies: 16
Views: 3245

Re: InitEngine3D problem on AsusEeePC 1024x600 XP/Home

I've tried your code, no success unfortunately.
I tried all combinations of the order of FlipBuffer(), RenderWorld(), ClearScreen(), no change.
On 1024x600 I see a flickering screen (complete black and my desktop image), if I change it to 800x600 then black screen only.