Search found 3457 matches

by MrSwiss
Jul 02, 2020 16:31
Forum: General
Topic: 20 decimal to 20 H
Replies: 2
Views: 68

Re: 20 decimal to 20 H

More on BCD encoding is found in: Section: Tips & Tricks Titled: Union as 'own' data-type URL: https://www.freebasic.net/forum/viewtopic.php?f=7&t=27450 This just to give an idea of, how to deal with it ... (it just does one UByte at the time) You might have to extend it for your specific ne...
by MrSwiss
Jul 02, 2020 14:27
Forum: General
Topic: 20 decimal to 20 H
Replies: 2
Views: 68

Re: 20 decimal to 20 H

@Dinosaur, seems to me, that you've misunderstood what's written in the Docs, of the device. The encoding isn't, as you assumed in HEX, but in BCD (binary coded decimal). 5.2 Real Time Clock Registers [00h to 06h] These RTC (Realtimeclock) registers are stored as binary-coded decimal BCD format. Sec...
by MrSwiss
Jul 01, 2020 15:13
Forum: Community Discussion
Topic: Windows 10 May 2020 Update
Replies: 16
Views: 327

Re: Windows 10 May 2020 Update

Nothing new under the sun:
M$ is still (always did it) using its userbase, as beta testers ...

Btw: those that haven't taken control of their OS themselfs by now,
by wresting it forcefully back from M$, can only be pityed.
by MrSwiss
Jun 29, 2020 16:22
Forum: Tips and Tricks
Topic: The Ultimate FB HashMap
Replies: 10
Views: 1935

Re: The Ultimate FB HashMap

Which clashes with other header definitions (the Windows headers, no less). Nope, nothing to do with headers (the TRUE/FALSE issue) it is FBC related. It's a change in FBC itself: OK, up to and including version: 1.03.0 From version: 1.04.0 (introduction of Boolean type into FBC) it must be removed...
by MrSwiss
Jun 28, 2020 18:25
Forum: Community Discussion
Topic: Mac OS X Support
Replies: 23
Views: 497

Re: Mac OS X Support

srvaldez wrote:I don't know what's going on, no binaries, maybe this will work

Maybe just your virus-scanner interfering ...
(try with it switched OFF, for the test)
by MrSwiss
Jun 28, 2020 16:12
Forum: Beginners
Topic: help using fbsound-1.1 for playing multiple wav files
Replies: 8
Views: 159

Re: help using fbsound-1.1 for playing multiple wav files

I'd suggest to use FBC 64 bit, whenever you are on a 64 bit operating system. The advantage is: the 32 bit emulator (WoW on WIN) isn't needed, at all. Typically: consumes more RAM and possibly, slows down execution speed. From my point of view, the 32 bit version, is only good for legacy 32 bit OS's...
by MrSwiss
Jun 28, 2020 15:55
Forum: General
Topic: Embedding a Spreadsheet
Replies: 29
Views: 723

Re: Embedding a Spreadsheet

I don't know LUA. LUA is a script interpreter, made by the same people that did IUP. Because of that, they integrate very well with each other (both by: PUC-RIO). Is parsing B1 to a value from the table something that LUA simply knows how to do, or is that something I would have to code? Yes, you'l...
by MrSwiss
Jun 23, 2020 22:40
Forum: Libraries
Topic: Need Help With SDL and Allegro5 Libraries
Replies: 9
Views: 327

Re: Need Help With SDL and Allegro5 Libraries

[edit]as requested by Moderator: @badidea, infringing on copyright is against forum rules and therefore, discouraged. See: Forum/Beginners/Welcome to the forum, by counting_pine especially this section: In addition, we expect you to follow all the rules set out by our host, phatcode.net, including: ...
by MrSwiss
Jun 23, 2020 22:11
Forum: Libraries
Topic: Need Help With SDL and Allegro5 Libraries
Replies: 9
Views: 327

Re: Need Help With SDL and Allegro5 Libraries

Sorry, don't understand the question (the library name itself, is the same for both versions).
by MrSwiss
Jun 23, 2020 20:57
Forum: Libraries
Topic: Need Help With SDL and Allegro5 Libraries
Replies: 9
Views: 327

Re: Need Help With SDL and Allegro5 Libraries

ld: skipping incompatible /usr/lib/x86_64-linux-gnu/liballeg.so when searching for -lalleg ld: cannot find -lalleg First message: liballeg.so is found but, the bitness of it is wrong for the used compiler. Second message: simply states, "the right library" was not found (other bitness). S...
by MrSwiss
Jun 23, 2020 12:24
Forum: General
Topic: program crashes after many ide's in development :(
Replies: 11
Views: 347

Re: program crashes after many ide's in development :(

You have written, that you're using multiple .wav files ...

Maybe it's just a matter of releasing the already used one propperly,
while loading the second one (thereby releasing the used memory).
And so on, and so forth ...
by MrSwiss
Jun 22, 2020 15:44
Forum: General
Topic: program crashes after many ide's in development :(
Replies: 11
Views: 347

Re: program crashes after many ide's in development :(

This seems to me, to be one of those "blame the tools" rants. If a application crashes it's always a "blame the programmer" issue. (The tools are NOT EVER responsible, for the code the programmer writes!) The formatting issues caused by the use of different IDE's are only relevan...
by MrSwiss
Jun 20, 2020 22:24
Forum: Beginners
Topic: Any suggestions on the best way to set up a linked list?
Replies: 24
Views: 701

Re: Any suggestions on the best way to set up a linked list?

olympic sIeeper wrote: didn't know pointers existed in FreeBASIC, are they implemented the same way as C or are there any differences I need to watch for?

Not that I'm aware off, except declaration is a bit different:
in C:

Code: Select all

int *any_name
whereas, in FB:

Code: Select all

Dim As Long Ptr any_name
by MrSwiss
Jun 20, 2020 21:58
Forum: Beginners
Topic: Is FreeBasic A Decent Alternative To VisualBasic 6?
Replies: 12
Views: 350

Re: Is FreeBasic A Decent Alternative To VisualBasic 6?

A Gui library that looks 'native' on Win/Lin (and, should run on Mac too) is IUP, for Win = WinApi backend, for UNIXy OS's = GTK backend. The exposed programming interface is always the same, OS independant. It links easily to FB, because it's native C (not C++ which requires wrappers). Both static ...
by MrSwiss
Jun 19, 2020 19:37
Forum: Beginners
Topic: Is FreeBasic A Decent Alternative To VisualBasic 6?
Replies: 12
Views: 350

Re: Is FreeBasic A Decent Alternative To VisualBasic 6?

@dodicat, since when is WinApi compatible with Mac-OS? (without emulators, that is)
OP clearly wrote:... can be run on Windows and Mac OS.

Go to advanced search