Search found 1352 matches

by caseih
Dec 12, 2014 1:59
Forum: Beginners
Topic: Subroutines in freebasic
Replies: 3
Views: 1640

Re: Subroutines in freebasic

So this is interesting. I had a vague notion in the back of my mind that FreeBASIC was a two-pass compiler. But from my experimenting, it appears to be single-pass. And doing a bit of experimenting, I found some interesting things. the QB64 compiler handles this code just fine: test1 sub test1() pri...
by caseih
Dec 12, 2014 1:23
Forum: Projects
Topic: Love and Letter-bots
Replies: 9
Views: 1831

Re: Love and Letter-bots

Running it on Linux. All I get is a screen full of red chr(176), with yellow X's flashing on in a random pattern, before disappearing behind red chr(176) again.

Anyway, no worries.
by caseih
Dec 11, 2014 17:05
Forum: Projects
Topic: Love and Letter-bots
Replies: 9
Views: 1831

Re: Love and Letter-bots

What is the quantum moth screen supposed to do? I don't see anything except random X's popping up.
by caseih
Dec 07, 2014 1:14
Forum: General
Topic: pointers can be tricky
Replies: 24
Views: 2026

Re: pointers can be tricky

Yes I guess that is true, now that I check back into things. I don't remember having to redeclare the type like that, but that is the way C++ requires it (for the same reasons as FB).
by caseih
Dec 07, 2014 0:35
Forum: Libraries
Topic: libpurple for FB (Pidgin engine)
Replies: 2
Views: 1535

Re: libpurple for FB (Pidgin engine)

Nevermind I found your example files for your converted libraries. Thanks.
by caseih
Dec 07, 2014 0:32
Forum: Libraries
Topic: libpurple for FB (Pidgin engine)
Replies: 2
Views: 1535

Re: libpurple for FB (Pidgin engine)

Did you make this binding with h_2_bi? If so, is the .h2bi file anywhere I can look at. Trying to learn the tool.
by caseih
Dec 06, 2014 23:43
Forum: General
Topic: pointers can be tricky
Replies: 24
Views: 2026

Re: pointers can be tricky

Okay that make sense. I couldn't find this documented in the wiki. I could try to add a note there perhaps. In my opinion, particularly coming from a C++ background, this is an important implementation detail that could be a real gotcha. A default member value looks and acts like a static member val...
by caseih
Dec 06, 2014 21:50
Forum: General
Topic: pointers can be tricky
Replies: 24
Views: 2026

Re: pointers can be tricky

EDIT: So I analyzed the C output from this and it the addition of the "i=7" line basically makes the type into what would be in C++ a class with a static member. This member exists whether the type is ever instantiated. Although I understand what the C code is doing, I'm not at all sure of...
by caseih
Dec 01, 2014 4:40
Forum: Community Discussion
Topic: [TIP] A really cool site for your electronic projects.
Replies: 5
Views: 1550

Re: [TIP] A really cool site for your electronic projects.

Seeed are reliable folk. I've bought many things from them over the years. Sensors, parts, etc. Though not custom PCBs.
by caseih
Oct 29, 2014 23:20
Forum: Community Discussion
Topic: FreeBASIC group on Facebook
Replies: 13
Views: 6826

Re: FreeBASIC group on Facebook

Meh. Facebook. Not a useful medium for technical discussion. But I also think forums suck. Every one of them. Honestly I find e-mail lists or an nntp list to the best medium for technical discussions. Sad to see them decline in favor of other mediums that just don't work as well. Thank goodness they...
by caseih
Oct 24, 2014 4:25
Forum: Documentation
Topic: WSTRING
Replies: 6
Views: 1387

Re: WSTRING

How so? I always thought the Windows API used pointers to fixed-length strings for everything.
by caseih
Oct 24, 2014 2:23
Forum: Documentation
Topic: WSTRING
Replies: 6
Views: 1387

Re: WSTRING

I wonder why the FB developers didn't provide a dynamic WString facility, like String. Then they could have had a wzstring type that behaved just like zstring, but with unicode, requiring the extra byte, and fixed allocation. Seems a bit confusing at first blush, since WString is likely to be more u...
by caseih
Oct 20, 2014 14:21
Forum: DOS
Topic: 2 Bugs I found
Replies: 21
Views: 3433

Re: 2 Bugs I found

Indeed QB-like error handling should only be used as a crutch to initially get QB code compiling and running in FB. FB is a different dialect than QB, and you'll have far more success using FB as FB. Besides that, the old-school "on error" handling doesn't fit very well with modern structu...
by caseih
Oct 20, 2014 5:13
Forum: DOS
Topic: 2 Bugs I found
Replies: 21
Views: 3433

Re: 2 Bugs I found

I compiled your test program in your last post in both DOS and Linux using the "-ex -lang qb" command line and it appears to work fine. Don't see any bug. The program does what you describe it should: prints a red popup error box on both DOS and Linux.
by caseih
Oct 16, 2014 3:01
Forum: Community Discussion
Topic: Atom or RSS feeds for this forum
Replies: 9
Views: 2064

Re: Atom or RSS feeds for this forum

Cool, thanks! I've give it a whirl! Are there per-forum feeds? IE just General, just Linux, etc?

Go to advanced search