Search found 937 matches

by paul doe
Dec 11, 2019 1:05
Forum: Projects
Topic: FreeBasic Framework
Replies: 3
Views: 411

Re: FreeBasic Framework

Small update. Revamped almost the entire framework, and added more examples. Lots of stuff are still a WIP, but the foundational code is unlikely to see a rework. Working on the Windowing framework ATM.
by paul doe
Dec 10, 2019 11:09
Forum: Community Discussion
Topic: Suddenly FB executables are detected as Trojans
Replies: 29
Views: 684

Re: Suddenly FB executables are detected as Trojans

badidea wrote:Don't complain, the future will be worse:
...

Sounds pretty dystopian to me, unless you're joking of course ;)
by paul doe
Dec 06, 2019 22:18
Forum: General
Topic: Preprocessor question
Replies: 17
Views: 385

Re: Preprocessor question

You could simply define your path as the folder without the end quote. and put the end quote at the end of #include. That indeed works and is the most simply solution. The only problem is that it looks ugly. Especially because met editor highlighter gets confused. Paul doe's version works as well, ...
by paul doe
Dec 06, 2019 16:06
Forum: Projects
Topic: Iceroyds!
Replies: 41
Views: 6767

Re: Iceroyds!

Landeel wrote:...
was this made with FreeBasic?

[pride]Yes![/pride]

Indeed, I'm pretty happy for you. This also marks a milestone for FreeBasic, hey! The first published FreeBasic game on Steam (AFAIK), so there's plenty to celebrate! =D
by paul doe
Dec 06, 2019 16:03
Forum: General
Topic: Preprocessor question
Replies: 17
Views: 385

Re: Preprocessor question

You can also try with something like this: '' We need this to force the preprocessor to evaluate the expressions #define __str__( a ) _ #a #define __conc__( a, b ) _ ##a##b #define __inc__( p, f ) _ __str__( __conc__( p, f ) ) #macro __include__( p, f ) _ #include once __inc__( p, f ) #endmacro /' N...
by paul doe
Dec 05, 2019 21:30
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 117
Views: 5969

Re: FreeBASIC 1.08 Development

On the other hand, the work might not be worth the trouble, since some OSses don't allow you to process events on another thread, just on the main one. Doing this differently may wreak havoc in those cases so perhaps it's best just to stick to the traditional update() pattern. Thanks for con...
by paul doe
Dec 02, 2019 19:31
Forum: Community Discussion
Topic: [DUPLICATED] Namespaces bug (or feature?)
Replies: 5
Views: 205

Re: Namespaces bug (or feature?)

Already reported: - see from https://www.freebasic.net/forum/viewtopic.php?p=176593#p176593 - see from https://www.freebasic.net/forum/viewtopic.php?p=187509#p187509 - see Namespaces (note) Ah, I see (quite old!). Thanks fxm. I wasn't around at the time; got fed up with Fb around ~2009 and only rec...
by paul doe
Dec 02, 2019 15:53
Forum: Community Discussion
Topic: [DUPLICATED] Namespaces bug (or feature?)
Replies: 5
Views: 205

[DUPLICATED] Namespaces bug (or feature?)

Since I use namespaces heavily, I was bound to stumble upon an interesting 'feature' of FreeBasic: anonymous namespaces. namespace '' WTF!? type _ Foo _ extends Object declare constructor() declare destructor() end type constructor _ Foo() end constructor destructor _ Foo() end destructor end namesp...
by paul doe
Dec 02, 2019 4:34
Forum: Beginners
Topic: String Processing
Replies: 10
Views: 378

Re: String Processing

Or, if you're running the code on Linux, check the casing of the file names. File names in *nix are case sensitive, and this also caused me some minor annoyances in the past...
by paul doe
Nov 30, 2019 20:17
Forum: Tips and Tricks
Topic: Brownian motion.
Replies: 36
Views: 1329

Re: Brownian motion.

... I do not think that Mr Swiss is any sort of offender, he just says it as he sees it. ... I also don't have a problem with that (I'm also an autist , after all). The problem starts when you intentionally start to mess with other people, on a personal level . ... I would rather have Mr Swiss's re...
by paul doe
Nov 30, 2019 16:01
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 77
Views: 12769

Re: Audio library for FreeBasic - Features

For what is worth, I abstracted the SDL2 mixer like this, when I was coding my entry for Lachies' compo: #include once "engine/engine.bi" namespace SDL2 /' Music sample resource '/ class _ MusicSample _ implements Engine.IResource public: declare constructor( _ byref as const Engine.Identi...
by paul doe
Nov 30, 2019 15:19
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 117
Views: 5969

Re: FreeBASIC 1.08 Development

... Internally, gfx lib locks the event list when adding or consuming events from the event list. After reading the number of events in the queue, potentially, more events could be added between the time the number of events queued are read and the operation that uses that count value. Not sure wha...
by paul doe
Nov 30, 2019 2:40
Forum: Windows
Topic: How to get the message time from message structure ?
Replies: 8
Views: 427

Re: How to get the message time from message structure ?

Works flawlessly now. Nice.
by paul doe
Nov 30, 2019 1:58
Forum: Windows
Topic: How to get the message time from message structure ?
Replies: 8
Views: 427

Re: How to get the message time from message structure ?

Doesn't work with #lang "Fb", Pierre. Either use a different dialect or remove all the suffixes from the format() calls...
by paul doe
Nov 29, 2019 1:40
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 808

Re: [updated topic] member function ptr

If that's the case, wouldn't it be better to simply code it as a function and pass it the appropriate context? Why do you need a 'class' for that?

Go to advanced search