Search found 1021 matches

by caseih
Dec 12, 2017 4:22
Forum: Projects
Topic: RAD for Linux (in development)
Replies: 90
Views: 1802

Re: RAD for Linux (in development)

OOP design lends itself fairly well to UI toolkit design, but you really don't need to use OOP in your own program to take advantage of UI toolkits. In fact the "is composed of" paradigm is far more useful for using GUIs than the "is a" paradigm. My GUIs contain widgets more ofte...
by caseih
Dec 09, 2017 19:52
Forum: Windows
Topic: Does anyone know what algo XP -> full screen DOS?
Replies: 41
Views: 512

Re: Does anyone know what algo XP -> full screen DOS?

Depends on whether you mean graphics mode or text mode. Vga text mode is actually 640x400. And actually sometimes it's 720x400 and the graphics card would duplicate the last column of the character cell's pixels, which made those special fill characters look funny. Btw, Ega graphics mode was 640x350...
by caseih
Dec 09, 2017 3:33
Forum: Windows
Topic: Does anyone know what algo XP -> full screen DOS?
Replies: 41
Views: 512

Re: Does anyone know what algo XP -> full screen DOS?

CGAMan wrote:Exactly my point, to get a 640x480 full screen in Windows XP, the image has to be upscaled.

Not quite. In Windows XP, the upscaling was done by the LCD monitor, not by Windows.

Anyway, you've found a workable solution, so that's good.
by caseih
Dec 09, 2017 1:47
Forum: General
Topic: (Z)String UTF8 Aware
Replies: 35
Views: 514

Re: (Z)String UTF8 Aware

Right. ASCII is valid utf-8 and for code points under 128, utf-8 bytes are the same as ASCII. The same cannot be said for utf-16.
by caseih
Dec 08, 2017 15:09
Forum: General
Topic: methods of accessing bytes by pointer
Replies: 140
Views: 1199

Re: methods of accessing bytes by pointer

Somehow C and C++ have a different definition of const than FB appears to have. In C, const pointer types refer to the constant nature of the data pointed to, not the pointer itself. Furthermore const pointers in C do not have to be initialized on declaration. You are free to assign to a const point...
by caseih
Dec 07, 2017 4:14
Forum: Windows
Topic: Does anyone know what algo XP -> full screen DOS?
Replies: 41
Views: 512

Re: Does anyone know what algo XP -> full screen DOS?

Windows XP doesn't use any algorithm if I remember correctly. When viewing a full-screen DOS window, it actually uses the VGA's actual mode. Which, by the way looks awfully blurry on my LCD monitor because the monitor itself will do the upscaling. It is possible to ask Windows to change the resoluti...
by caseih
Dec 06, 2017 15:59
Forum: General
Topic: (Z)String UTF8 Aware
Replies: 35
Views: 514

Re: (Z)String UTF8 Aware

As far as I know, UTF-8 existed in the 90s. But I'm not sure when it was adopted into the unicode standard. I agree most languages fall within the BMP, but my understanding is that there are chinese characters that fall outside the BMP. One increasingly popular use of unicode that is well outside th...
by caseih
Dec 06, 2017 15:31
Forum: General
Topic: (Z)String UTF8 Aware
Replies: 35
Views: 514

Re: (Z)String UTF8 Aware

Yes that's correct about the reasons UTF-8's adoption--iASCII and UTF-8 overlap up to byte 0x7f. The common character set I used to use back in DOS, which Windows calls cp437, with it's line drawing bytes above byte 0x7f, does *not* map to UTF-8. t's far more than the "free" OSs that have ...
by caseih
Dec 06, 2017 4:03
Forum: General
Topic: (Z)String UTF8 Aware
Replies: 35
Views: 514

Re: (Z)String UTF8 Aware

Gotcha. I'm very surprised that anyone would argue for the old, deprecated, native (overlapping) character sets. 90% of the time I use ASCII for text, but that's okay because it's a subset of UTF-8. Anyway, I'm reminded of this very old article: https://www.joelonsoftware.com/2003/10/08/the-absolute...
by caseih
Dec 06, 2017 1:10
Forum: General
Topic: (Z)String UTF8 Aware
Replies: 35
Views: 514

Re: (Z)String UTF8 Aware

jj2007, in your examples, the strings are just bytes. Period. The meaning of the bytes within the quotes is entirely dependent on the encoding of the _source code_ file. In the one example that worked, that's because your .bas file must have been in cp 1252. If the .bas file was UTF-8, you'd get moj...
by caseih
Dec 05, 2017 4:48
Forum: General
Topic: (Z)String UTF8 Aware
Replies: 35
Views: 514

Re: ZSTRING UTF8 AWARE

UTF-8 is simply a way of encoding unicode using bytes. So yes you can easily store UTF-8 strings in ZSTRINGs, and arrays of ubytes. This is why UTF-8 is used so commonly. As well, UTF-8 is defined such that a null terminator still works. Of course using MID() or LEN() in FB on a UTF-8 encoded string...
by caseih
Dec 04, 2017 5:11
Forum: Linux
Topic: Console
Replies: 4
Views: 124

Re: Console

Under wine, console output from a windows program just goes to the same terminal where you launched Wine from. If you ran it from the GUI, then there won't be any console output at all. You need to launch your program with wine from a terminal. However WINE itself prints a lot of debugging output to...
by caseih
Dec 03, 2017 5:42
Forum: Community Discussion
Topic: time to say goodbye
Replies: 43
Views: 1492

Re: time to say goodbye

The main reason I have dropped FB for the moment is I don't need access to assembly language for a number of planned projects. What does this mean? Do you mean you don't want compiled executables since you need to target different platforms? I also don't understand what you mean about forking FB. I...
by caseih
Dec 01, 2017 18:29
Forum: Community Discussion
Topic: time to say goodbye
Replies: 43
Views: 1492

Re: time to say goodbye

See for example this discussion: https://www.freebasic.net/forum/viewtopic.php?f=17&t=26153 It's true that trolls often drive people away from community discussion forums such as this, but it bothers me when people feel the need to make a public statement before going off in a huff, and especia...
by caseih
Nov 30, 2017 23:56
Forum: Linux
Topic: GUI builder for Linux?
Replies: 15
Views: 245

Re: GUI builder for Linux?

Thats right. The problem is, you have to figure out which signals to connect with which callbacks and therefore always switch between Geany and Glade. Later the problem arises how to set the start value for every widget. Fortunately the signal names are fairly consistent so after a while you mostly...

Go to advanced search