Search found 1334 matches

by caseih
Oct 18, 2019 2:08
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

Are you sure a BASIC dialect needs a C/C++ feature that is unknown to Google? Funny! Are you sure you googled for "asynchronous primitives?" By "intrinsic" I mean a fundamental part of the language. They've been a part of C# for quite a while. https://docs.microsoft.com/en-us/do...
by caseih
Oct 18, 2019 0:11
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

Anyway, OOP is a feature that surely adds a lot to BASIC: after all, not only FreeBasic, but also RapidQ and Visual Basic used a lot of features borrowed from C++. What about other modern features like coroutines, closures or lambda expressions, or intrinsic asynchrous primitives? Well, if it can c...
by caseih
Oct 18, 2019 0:05
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

Many a project has died, or at least got seriously sidetracked (I'm looking at you, Gnome Desktop), trying to cater to mythical new users. My opinion isn't worth much, and I don't actually use FB for anything other than porting some of my old QB and PB programs to Linux for shear nostalgia. But as l...
by caseih
Oct 16, 2019 14:10
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

Real FORs only evaluate the bounds once to calculate a number of iterations I know you weren't referring to floating point numbers with "real" there, but that reminds me, the earliest BASIC I used was BASICA or GWBASIC, and the default variable type was floating point (single if I recall)...
by caseih
Oct 16, 2019 13:56
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 76
Views: 2275

Re: FreeBASIC 1.08 Development

Alternatively, the direct equivalent to the original non-working for loop code that Dinosaur posted would be something like this: dim i as integer ... for i=1 to MyUDT.Limit ... next MyUDT.index = i 'note that i is MyUDT.Limit+1 But if it's important to keep MyUDT.Index updated, it's much clearer to...
by caseih
Oct 08, 2019 23:24
Forum: General
Topic: ASLR
Replies: 63
Views: 1113

Re: ASLR

Anyway, this thread is about ASLR, or not as it turned out and focusing on Encrypternet or positive aspects of gcc isn't gong to change that. Fair enough. I get the feeling there's very little understanding of what ASLR is, so it probably is worth describing what it can and can't do as a security f...
by caseih
Oct 08, 2019 23:09
Forum: General
Topic: ASLR
Replies: 63
Views: 1113

Re: ASLR

You want me to give reasons, you have just given me two. I am not prepared to risk other people's data. Microsoft recommends keeping the life of plaintext passwords down to a minimum. I use a random binary key and I got its plaintext life down to 0.72ms on encryption and 0.0038ms on decryption. Par...
by caseih
Oct 08, 2019 20:06
Forum: General
Topic: ASLR
Replies: 63
Views: 1113

Re: ASLR

Of course, it isn't gcc's fault - gcc is a project using mingw-w64. There seems to be a lot of confusion as to what is the relationship between MingW-W64 and GCC. I don't know much about mingw, but I think you've got it backwards. MingW-W64 is a windows port of the Gnu Compiler Collection and the a...
by caseih
Oct 02, 2019 15:53
Forum: Linux
Topic: HowTo use PostgreSQL in FB
Replies: 7
Views: 215

Re: HowTo use PostgreSQL in FB

What issues are you having? If you have the proper postgresql devel rpm installed, I believe the postgresql bi file included in FreeBASIC should work without issue.
by caseih
Sep 29, 2019 20:20
Forum: General
Topic: Squares
Replies: 7013
Views: 423525

Re: Squares

The terms of the zlib license are very simple: https://en.wikipedia.org/wiki/Zlib_License . You are free to link to zlib dll and ship it with your proprietary binary, especially if you're using it unmodified. Many commercial applications include zlib.
by caseih
Sep 17, 2019 14:36
Forum: Projects
Topic: Full RGB image to DOS CGA and EGA
Replies: 9
Views: 399

Re: Full RGB image to DOS CGA and EGA

Yes that's what I said a few posts back. Commander-X16 is a completely different thing. It's a hardware prototype of an 8-bit computer they he plans to sell to 8-bit enthusiasts. It's like an Apple II or Commodore 64, but without some of the quirks these old designs had. Will have BASIC built into t...
by caseih
Sep 17, 2019 2:37
Forum: Projects
Topic: Full RGB image to DOS CGA and EGA
Replies: 9
Views: 399

Re: Full RGB image to DOS CGA and EGA

Yes I remember being dazzled by 256-color VGA graphics too! I'm still amazed at what was done on limited hardware like CGA, though. I guess at the time we never quite saw it's full potential. The Commander-X16 looks really interesting too! I might have to buy one when it is made into a product event...
by caseih
Sep 16, 2019 1:50
Forum: Projects
Topic: Full RGB image to DOS CGA and EGA
Replies: 9
Views: 399

Re: Full RGB image to DOS CGA and EGA

All nice, but CGA and EGA, that is a quite long ago. 25 years? The retrocomputing scene is a live and well they use and love all those old video modes and old computerse. The 8-Bit Guy recently released a game that has pretty good graphics for CGA as seen in the screenshot below. Although few games...
by caseih
Sep 07, 2019 16:46
Forum: Beginners
Topic: NULL equivalent in freeBASIC
Replies: 11
Views: 1698

Re: NULL equivalent in freeBASIC

I think I'd prefer it the other way around. NULL would be a pointer, and nil would be a zero value.
by caseih
Aug 30, 2019 4:21
Forum: General
Topic: [solved] I need your help for a C to FreeBASIC translation !
Replies: 5
Views: 1925

Re: I need your help for a C to FreeBASIC translation !

Bear in mind this is a declaration for a function that returns a function pointer. In other words you are meant to call the return value as a function.

It would look something like this:

Code: Select all

Type __GLXextFuncPtr as Sub ()

Declare Function glXGetProcAddressARB (zstring ptr) as __GLXextFuncPtr

Go to advanced search