Search found 125 matches

by robert
Nov 24, 2020 2:03
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 393
Views: 43196

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

Thank you SARG and srvaldez. Exactly what I wanted to know.
by robert
Nov 23, 2020 22:17
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 393
Views: 43196

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

Hi all, A new version with a lot of internal changes. Don't forget to set the option -gen gas64 when using fbc The file contains the exes for WDS 1.07 / 1.08 and only the modifications for 1.07 not yet in github. http://users.freebasic-portal.de/sarg/fbc64_gas64_W.zip For 1.08 the sources (github f...
by robert
Oct 30, 2020 0:15
Forum: Linux
Topic: Installing FB on Linux Mint 20 (64 bit machine) (SOLVED)
Replies: 6
Views: 357

Re: Installing FB on Linux Mint 20 (64 bit machine)

I’d like to install FB on my old 64 bit machine (Dell GX620), under Linux Mint 20 w/ Cinnamom. Could you please tell me if that would be possible? From what I read in the forum, this seemed non impossible but, so far, I'm still confused and all my attempts went wrong. I downloaded and installed Fre...
by robert
Oct 05, 2020 2:31
Forum: Beginners
Topic: LCase UCase ANSI Characters
Replies: 14
Views: 538

Re: LCase UCase ANSI Characters

jj2007 wrote:
srvaldez wrote:bottom line is that the source code needs to be in Unicode
It needs to be in Utf-8, and there needs to be a BOM.


Yes!

I dropped the BOM on it and it worked.

Thank you all, for your help.
by robert
Oct 04, 2020 21:46
Forum: Beginners
Topic: LCase UCase ANSI Characters
Replies: 14
Views: 538

Re: LCase UCase ANSI Characters

Alternatively you can translate the string into the OEM format (Windows only): #Include "windows.bi" Dim As String L = LCase("ÀÁÂÃÄÅ"), U = UCase("àáâãäå") CharToOem(L,L) Print L CharToOem(U,U) Print U Sleep Hi Grindstone: I'm going to try to get this to work on anothe...
by robert
Oct 04, 2020 21:38
Forum: Beginners
Topic: LCase UCase ANSI Characters
Replies: 14
Views: 538

Re: LCase UCase ANSI Characters

This works OK fbide or straight console. Win 10 UK keyboard. shell "MODE CON CP /STATUS" shell "MODE CON CP SELECT=1252" Print LCase("ÀÁÂÃÄÅ") Print UCase("àáâãäå") sleep Result here: Status for device CON: ---------------------- Code page: 850 Status for dev...
by robert
Oct 04, 2020 9:17
Forum: Beginners
Topic: LCase UCase ANSI Characters
Replies: 14
Views: 538

Re: LCase UCase ANSI Characters

Print LCase("ÀÁÂÃÄÅ") Print UCase("àáâãäå") Print LCase(Wstr("ÀÁÂÃÄÅ")) Print UCase(Wstr("àáâãäå")) FreeBASIC 1.0.8 Windows 10 x64 Console Codepage 65001 Lucida Console font Command line compile and execute I:\dev\FreeBASICode>fbc snip.bas I:\dev\FreeBASICode...
by robert
Oct 04, 2020 5:26
Forum: Beginners
Topic: LCase UCase ANSI Characters
Replies: 14
Views: 538

Re: LCase UCase ANSI Characters

Hi jj2007 Just to be clear, I'm not talking about seeing the program in the editor. I'm outputting to the Windows command console not an editor or editors command console. CHCP 65001 gives me square boxes even with a Unicode font. Does it work for you? On Linux I get ANSI output ÀÁÂÃÄÅ àáâãäå but as...
by robert
Oct 04, 2020 3:12
Forum: Beginners
Topic: LCase UCase ANSI Characters
Replies: 14
Views: 538

LCase UCase ANSI Characters

Windows 10 x64
ANSI Codepage 1252

Code: Select all


Print LCase("ÀÁÂÃÄÅ")
Print UCase("àáâãäå")



Result:

Code: Select all


ã€ãã‚ãƒã„ã…
àáâãäå



What do I have to do to get

Code: Select all


àáâãäå
ÀÁÂÃÄÅ

by robert
Sep 21, 2020 0:09
Forum: Beginners
Topic: Preliminary Update to FBeginner EBook
Replies: 21
Views: 1057

Re: Preliminary Update to FBeginner EBook

The passed function pointer must be of type: FUNCTION CDECL(AS ANY PTR, AS ANY PTR) AS LONG To elaborate on fxm's statement, specifically, in the case of qsort.bas, because the prototype for the qsort function contained in crt/stdlib.bi is Declare Sub qsort (ByVal As Any Ptr, ByVal As size_...
by robert
Sep 20, 2020 19:37
Forum: Beginners
Topic: Preliminary Update to FBeginner EBook
Replies: 21
Views: 1057

Re: Preliminary Update to FBeginner EBook

All the code examples in the zip file folders have been fixed to run correctly, qsort.bas, in FBeginner\chap09, does not compile cleanly. fbc -w all "qsort.bas" (in directory: C:\dev\FB\FBeginner\chap09) qsort.bas(31) warning 3(2): Passing different pointer types, at parameter 4 of QSORT(...
by robert
Sep 20, 2020 4:22
Forum: Beginners
Topic: Preliminary Update to FBeginner EBook
Replies: 21
Views: 1057

Re: Preliminary Update to FBeginner EBook

Hi RDC: FBeginner.pdf, page 75 Creating a Callback Function, needs updating of qsort example. See FreeBASIC Documentation The Pointer Data Type section for updated example. FBeginner.odt and Fbeginner.pdf are very different. Which one is the new updated one? I hope it's the .pdf ... that's what I ha...
by robert
Sep 20, 2020 3:23
Forum: Beginners
Topic: Preliminary Update to FBeginner EBook
Replies: 21
Views: 1057

Re: Preliminary Update to FBeginner EBook

FBeginner.pdf page 54, in line 31 > 5 should be > 3 page 55, in line 4 of Listing 5.7 > 5 should be > 3 In the chap07 directory, in eqv.bas, line 29 Print "Statement myInt1 > 5 eqv myInt2 < 1 "; should be Print "Statement myInt1 > 3 eqv myInt2 < 1 ";
by robert
Sep 19, 2020 21:56
Forum: Beginners
Topic: Preliminary Update to FBeginner EBook
Replies: 21
Views: 1057

Re: Preliminary Update to FBeginner EBook

Here is a preliminary update to my ebook FBeginner, A Beginners Guide to Freebasic. This is my original manuscript and I have updated all the programs to run correctly with the current version of FreeBasic. I have made some preliminary updates to the book, taking out Option Explicit, for example, h...
by robert
Sep 12, 2020 8:25
Forum: Documentation
Topic: $Updates
Replies: 1
Views: 152

$Updates

Hi fxm:

Did the INPUT$ page not require updating?

The $ suffix status of INPUT for fblite is not specified.

Thank you very much for the really excellent work you have done on the FreeBASIC Documentation. !!!

Go to advanced search