Search found 1372 matches

by Imortis
Nov 15, 2017 19:11
Forum: Projects
Topic: WinFBE FreeBASIC Editor for Windows (Updated September 27, 2017)
Replies: 256
Views: 14497

Re: WinFBE FreeBASIC Editor for Windows (Updated September 27, 2017)

@PaulSquires: I just noticed that WinFBE does properly handle multi-line comments /' Everything in here is a comment '/ It is not a huge deal, but I thought you might like to know. Thanks Imortis, I think of course that you meant to say does not handle multiline comments. I am aware of this as it h...
by Imortis
Nov 15, 2017 16:32
Forum: Projects
Topic: WinFBE FreeBASIC Editor for Windows (Updated September 27, 2017)
Replies: 256
Views: 14497

Re: WinFBE FreeBASIC Editor for Windows (Updated September 27, 2017)

@PaulSquires:
I just noticed that WinFBE does not properly handle multi-line comments

Code: Select all

/' Everything in here is a comment '/


It is not a huge deal, but I thought you might like to know.
by Imortis
Nov 08, 2017 20:03
Forum: Community Discussion
Topic: NOT operator like AndAlso/OrElse?
Replies: 3
Views: 155

Re: NOT operator like AndAlso/OrElse?

dkl wrote:You could say that "= 0" or "= false" is that operator. That's what I ended up doing anyways.

Sure, that is an easy work around. I was just curious if it would be a good idea to have something similar to the short-circuit ops to be consistent.
by Imortis
Nov 08, 2017 19:52
Forum: Community Discussion
Topic: NOT operator like AndAlso/OrElse?
Replies: 3
Views: 155

NOT operator like AndAlso/OrElse?

AndAlso and OrElse are not bitwise like AND and OR. They function like boolean operators, and even return Booleans when used with Boolean values. Should we have something similar for NOT? Not is currently a bitwise compliment. Should we have a not operator that always returns a -1 or 0 (TRUE or FALS...
by Imortis
Nov 08, 2017 19:27
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 103
Views: 3201

Re: Pure FB Runtime Library (in progress)

Module destructor? Hmmm... That could work, but the particular sub should only be called under a particular circumstance, and making a destructor module will make the code ALWAYS run. I am trying not to re-write any code right now, just translate, but that may need a simple re-write to BE translate...
by Imortis
Nov 08, 2017 19:08
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 103
Views: 3201

Re: Pure FB Runtime Library (in progress)

Also, does FB have a way to do something equivilant to C's "atexit"?
by Imortis
Nov 08, 2017 18:22
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 103
Views: 3201

Re: Pure FB Runtime Library (in progress)

Okay. That did not show me the problem, but it did point me down the road to the problem. The KEY_QUIT constant was using a macro on a temporary string. Because of lots of things, that broke and I had to change it to the ASCII code for the character instead of using a temp string.
by Imortis
Nov 08, 2017 16:47
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 103
Views: 3201

Re: Pure FB Runtime Library (in progress)

Okay I am back and getting the following error: \fbrtLib\win32\io_input.bas(320) error 57: Type mismatch, at parameter 1 of FB_STRALLOCTEMPDESCZEX() in 'fb_hConsolePostKey( KEY_QUIT, @rec )' Aborting due to runtime error 12 ("segmentation violation" signal) I have no idea what is going on ...
by Imortis
Nov 07, 2017 17:30
Forum: Beginners
Topic: wxWidgets for FreeBASIC?
Replies: 37
Views: 492

Re: wxWidgets for FreeBASIC?

I don't know if it is a coincidence or not, but there is also this IDE:
wxFBE
It also has a form designer that emits wx-c code.
by Imortis
Nov 07, 2017 16:50
Forum: Beginners
Topic: wxWidgets for FreeBASIC?
Replies: 37
Views: 492

Re: wxWidgets for FreeBASIC?

The 32bit version of FBC comes with headers for wx-c, the C wrapper of wxWidgets. The 64bit version does not have headers yet.
by Imortis
Nov 02, 2017 20:35
Forum: Community Discussion
Topic: How to write tutorials for beginners ?
Replies: 33
Views: 711

Re: How to write tutorials for beginners ?

For me I use readability and understanding first, speed efficiency second. Well said. I think a simple, inefficient block of code is better for learning than a complicated efficient one. I had a programming teacher in college who would always say, "The correct answer to a coding problem is the...
by Imortis
Nov 02, 2017 19:44
Forum: Community Discussion
Topic: How to write tutorials for beginners ?
Replies: 33
Views: 711

Re: How to write tutorials for beginners ?

fxm wrote:(I never use Var because I prefer to control the definition of types rather than trust the compiler with my eyes closed)


You and me both.
by Imortis
Nov 01, 2017 16:04
Forum: Game Dev
Topic: Frame rate independent game loop
Replies: 59
Views: 1070

Re: Frame rate independent game loop

Hi, Imortis. Why don't you look, then? =D ... This looks well done. The complexity of the code is nicely hidden in the objects without becoming cumbersome in it's own way. 5/5 stars! On a note purely of personal preference : I don't care for using defines to replace one keyword for another (type/cl...
by Imortis
Oct 31, 2017 20:20
Forum: Game Dev
Topic: Frame rate independent game loop
Replies: 59
Views: 1070

Re: Frame rate independent game loop

...I can still remember the example given in a teach yourself C++ book called budget.c and budget.cpp where I fully understood the first version but saw no point in the complicated second version which did exactly the same thing. Sadly, most simple OOP examples are pretty useless and overly complic...
by Imortis
Oct 31, 2017 18:10
Forum: Community Discussion
Topic: Making FreeBasic appealing to a wider audience
Replies: 376
Views: 9778

Re: Making FreeBasic appealing to a wider audience

That's not what I was talking about. See this , to get a clue. Can you show me how to do that in FreeBasic ? Mmm? Never mind, then. Would have thought that you'll be the first to like the idea. Some of those may not be do-able in FB just yet, but many should be easy. (I have not looked through all ...

Go to advanced search