Search found 358 matches

by Cherry
Oct 22, 2023 15:48
Forum: Windows
Topic: Winows11 22H2 console applications
Replies: 27
Views: 4217

Re: Winows11 22H2 console applications

Excuse my ignorance but what does listening to Internet radio have to do with somebody's default terminal application...?! I'm super confused. I also googled "amigaremix cmd" but nothing useful came up.
by Cherry
Oct 19, 2023 13:45
Forum: Community Discussion
Topic: FreeBASIC IDEs/Editors
Replies: 44
Views: 34923

Re: FreeBASIC IDEs/Editors

I don't actively maintain it (the last version has worked fine enough for me for years) but yeah sure go ahead ^^
by Cherry
Oct 19, 2023 8:05
Forum: Projects
Topic: FbEdit, new IDE for FreeBASIC written in FreeBASIC
Replies: 964
Views: 240980

Re: FbEdit, new IDE for FreeBASIC written in FreeBASIC

I made a fork of a fork a while back, and I posted the link somewhere here... but I realized only now that the upload for the release binaries has failed in GitHub! So, while the sources were available, the binaries were not. I fixed this now. You can find both the sources and the binaries for FBEdi...
by Cherry
Oct 19, 2023 8:02
Forum: Community Discussion
Topic: FreeBASIC IDEs/Editors
Replies: 44
Views: 34923

Re: FreeBASIC IDEs/Editors

I believe the link is the "Cherry" fork. You have to compile it using the Make file. You will also need to modify Make.ini for your own computer's configuration. It's a pity that there is not pre-owned compiled version. I'm confused - I did provide a prebuilt download... Check the release...
by Cherry
Oct 19, 2023 7:58
Forum: Sources, Examples, Tips and Tricks
Topic: [Win32] Exception handling using Try/Catch/Finally
Replies: 21
Views: 12837

Re: [Win32] Exception handling using Try/Catch/Finally

@stephaneweg It's cool but please be aware that this doesn't actually catch exceptions, only those custom things you throw in a custom way. Try accessing bad memory for example, or on Windows call `RaiseException`, and your program will still crash. It won't catch system exceptions.
by Cherry
Sep 07, 2023 19:21
Forum: Windows
Topic: Odd behavior: Command() is different from GetCommandLine() if an objman path with \?? to an existing file is in cmdline
Replies: 3
Views: 1459

Re: Odd behavior: Command() is different from GetCommandLine() if an objman path with \?? to an existing file is in cmdl

Ah. I see. OK this has nothing to do with real globbing, I'd say, as the result makes no sense. But I guess "backslashes in arguments can cause problems" is broad enough to apply. Thanks, this solved the issue!
by Cherry
Sep 07, 2023 14:24
Forum: Windows
Topic: Odd behavior: Command() is different from GetCommandLine() if an objman path with \?? to an existing file is in cmdline
Replies: 3
Views: 1459

Odd behavior: Command() is different from GetCommandLine() if an objman path with \?? to an existing file is in cmdline

I ran into this super weird issue right now. I wrote a tool to update some links in the object manager namespace in Windows. This is when I noticed that if I pass an object manager path that starts with \?? and points to an existing file - and only then! - the command line argument as seen with Comm...
by Cherry
Jul 01, 2017 7:51
Forum: Game Dev
Topic: create program to create bitmap
Replies: 329
Views: 78161

Re: create program to create bitmap

@leopardpm : oh, you are right, I was the fool here. I misunderstood your sentence.
by Cherry
Jun 30, 2017 21:31
Forum: Game Dev
Topic: create program to create bitmap
Replies: 329
Views: 78161

Re: create program to create bitmap

Libraries: Ah I see. I was talking about a in-browser solution though (bookmarklets et al.) where any beginner would just need to copy and paste something into their address bar or bookmark bar (and it would include the "library" in the code blob already), so that shouldn't be an issue. Ba...
by Cherry
Jun 30, 2017 21:09
Forum: Game Dev
Topic: create program to create bitmap
Replies: 329
Views: 78161

Re: create program to create bitmap

@MrSwiss: What is the problem with an external library (and how exactly do you define "external"), if I may ask? lz-string is open source and WTFPL so there are no licensing or maintanence issues whatsoever. But if no compression is required, the encoding itself is simple to write from scr...
by Cherry
Jun 30, 2017 20:09
Forum: Game Dev
Topic: create program to create bitmap
Replies: 329
Views: 78161

Re: create program to create bitmap

@leopardpm: To make sure we talk about the same things, the forum counts characters and not bytes and while a byte is 8 bits wide and therefore can have only 256 values, a (Unicode) character can have more than that. So I meant you could effectively use 15 bits per character , which means storing so...
by Cherry
Jun 30, 2017 19:38
Forum: Game Dev
Topic: create program to create bitmap
Replies: 329
Views: 78161

Re: create program to create bitmap

Why out of scope? Not everybody interested in FreeBasic has always access to a FB compiler when reading a forum. As I said, simplest example: your phone. And don't forget that the "Game Dev" section has content which is also interesting for people not related to FB at all, same for the &qu...
by Cherry
Jun 30, 2017 19:09
Forum: Game Dev
Topic: create program to create bitmap
Replies: 329
Views: 78161

Re: create program to create bitmap

OK in that case your current algorithm has an expansion factor of ~122%. That means that base64 (at 133% expansion) produces output which is around 10% larger than yours. (Which I think is minor, though.)
by Cherry
Jun 30, 2017 18:58
Forum: Game Dev
Topic: create program to create bitmap
Replies: 329
Views: 78161

Re: create program to create bitmap

@leopardpm: No, it's true that base64 by definition reduces the efficency because it requires more storage than unencoded data by a factor of 133%, i.e. a 3000 bytes file would need 4000 characters to encode (plus a few "header" bytes). @MrSwiss: If I read how this thread started, I believ...
by Cherry
Jun 30, 2017 18:27
Forum: Game Dev
Topic: create program to create bitmap
Replies: 329
Views: 78161

Re: create program to create bitmap

@leopardpm: No I'm not hosting it, the forum is hosting it. It is just sent to this service and returned as regular HTTP response body in order to work around the forum issue I mentioned, whenever the browser displays it. (It is true that I or whoever runs such a service could therefore know everyth...