Search found 2955 matches

by marcov
Aug 19, 2020 10:23
Forum: Community Discussion
Topic: The FreeBasic Forum and Tor
Replies: 3
Views: 335

Re: The FreeBasic Forum and Tor

Captchas are mostly to avoid automated mass login attempts and account registrations on the forum.
by marcov
Aug 17, 2020 14:47
Forum: Beginners
Topic: #Define vs Const
Replies: 8
Views: 540

Re: #Define vs Const

Note a possible difference might also be the point where the type is fixated: For const this can be by the parser at declaration (the whole const line), for untyped constants when just the literal is parsed. Either way, one declaration is usually the same for all. #defines however depends on the con...
by marcov
Aug 16, 2020 21:42
Forum: Beginners
Topic: changing code pages
Replies: 28
Views: 1181

Re: changing code pages

Anyway, it's a can of worms. Print "This is Russian: Добро пожаловать" used to work fine, now it doesn't, and I don't have the faintest idea why it stopped working. Works fine here. What is the encoding of your .bas file? String literals must be either utf-8 or utf-16 if I recall correctl...
by marcov
Aug 15, 2020 12:47
Forum: Beginners
Topic: changing code pages
Replies: 28
Views: 1181

Re: changing code pages

I saved it as russian.txt and compiled and ran (through my own quick run ide/editor, which is basically command line via a little gui). fbide doesn't handle these characters. Notepad on this machine also curupts the characters. Win 10. Notepad probably scans for bom. Emit a BOM if you want to let i...
by marcov
Aug 15, 2020 10:43
Forum: Beginners
Topic: changing code pages
Replies: 28
Views: 1181

Re: changing code pages

IIRC for some locales you had to start your command box with "cmd /w" In Free Pascal I use the following API call to set the font to consolas, since it is mostly API calls, it should be easily translatable. Or just google them in MSDN unit setdefaultcodepages; interface uses Windows; imple...
by marcov
Aug 10, 2020 15:00
Forum: Beginners
Topic: [solved] GET and PUT ( graphics ) commands slow down my program[solved]
Replies: 64
Views: 1384

Re: GET and PUT ( graphics ) commands slow down my program

I studied electronics and assembler language at a time when PCs and high-level languages did not exist. I learned on my own with QB and I never needed to excel in PC computer languages because it wasn't necessary in my job to design electronic devices with microcontrollers, it may seem unthinkable ...
by marcov
Aug 09, 2020 11:55
Forum: Beginners
Topic: MKDIR Question
Replies: 6
Views: 342

Re: MKDIR Question

I do think that having a function for multi level dir creation is useful. The Delphi name for the function is "ForceDirectories". Recursive directory deletion doesn't have to be dangerous, if like rmdir it only removes empty dirs, and returns an error on non empty. So rmdir, not rm -rf :-)
by marcov
Jul 29, 2020 8:45
Forum: General
Topic: Embedding a Spreadsheet
Replies: 35
Views: 2201

Re: Embedding a Spreadsheet

Note that Free Pascal has multiple RPN expression engines. Another one is written by me and called the "symbolic" package (fpc/packages/symbolic). You are welcome to convert/use that code as you wish.
by marcov
Jul 29, 2020 8:37
Forum: Community Discussion
Topic: Forum search has stopped working.
Replies: 15
Views: 1229

Re: Forum search has stopped working.

I occasionally search for (recent) mentions of FPC and Lazarus to comment on. I just did, and I only get results from 2005. Seems the search is working, but just got its database restored to the very beginnings ;-) Ah, I started a rebuild, but apparently if I close the page the rebuild stops. Perha...
by marcov
Jul 28, 2020 12:29
Forum: Beginners
Topic: Assembly
Replies: 4
Views: 3621

Re:

FreePascal has a switch to choose between Intel and ATT syntax in in-line assembly. Since it uses AS, too, this could also be possible in FB. (A slightly late reply because it bubbled up due to searchengine problems, but no. FPC parses both Intel and AT&T fully, and then always generates AT&...
by marcov
Jul 28, 2020 12:24
Forum: Community Discussion
Topic: Forum search has stopped working.
Replies: 15
Views: 1229

Re: Forum search has stopped working.

I occasionally search for (recent) mentions of FPC and Lazarus to comment on. I just did, and I only get results from 2005. Seems the search is working, but just got its database restored to the very beginnings ;-) It does bring up pearls like V1ctor saying he can't do without Freepascal: https://ww...
by marcov
Jul 27, 2020 7:57
Forum: Projects
Topic: Standalone use of new GAS64 assembler as backend for a different Parser
Replies: 8
Views: 543

Re: Standalone use of new GAS64 assembler as backend for a different Parser

There are about 1503 instructions nowadays. The Intel doc documents them all, so best to download the Intel datasheets.
by marcov
Jul 14, 2020 8:37
Forum: Libraries
Topic: GoVCL, a cross-platform GUI lib
Replies: 3
Views: 594

Re: GoVCL, a cross-platform GUI lib

(Probably need update, Lazarus and Free Pascal both released in the last 3-4 weeks)
by marcov
Jul 11, 2020 17:46
Forum: Beginners
Topic: Odd pause when sometimes starting programme
Replies: 3
Views: 318

Re: Odd pause when sometimes starting programme

And Windows Smartscreen.
by marcov
Jul 06, 2020 13:38
Forum: Hardware Interfaces / Communication
Topic: BCD Conversion #Define(s)
Replies: 9
Views: 736

Re: BCD Conversion #Define(s)

Actually, BCD is a digit per byte/word. Digit per nibble is "packed BCD". Afaik forms of EAN 128 barcodes still use it.

Go to advanced search