Search found 603 matches

by VirusScanner
Dec 18, 2005 7:19
Forum: Projects
Topic: AFlib2 Preview.
Replies: 160
Views: 53317

Well this isn't good, we can't have insults here :( I've been watching this, and I think it looks like it took lots of work and is a good library. I'm not a game person myself (don't make them, don't generally play them), so I'm not a good judge, but I would say that despite using only 8 bit graphic...
by VirusScanner
Dec 11, 2005 20:42
Forum: Beginners
Topic: WARNING!
Replies: 10
Views: 2088

Hey, that's not fair :) just make sure you're not using tilted quotes. Unicode is a good thing. Otherwise how would we be able to write thousands of different characters in one document? Yeah, I like unicode. Just because it's capable of displaying so many different symbols and alphabets. You just h...
by VirusScanner
Dec 11, 2005 20:37
Forum: General
Topic: Allocate question
Replies: 17
Views: 3768

You could make the first one contain the number of elements, that way you could do

x = reallocate (sizeof(integer) * x[0])
by VirusScanner
Dec 11, 2005 20:34
Forum: Windows
Topic: Help...
Replies: 6
Views: 2651

declare function InitIMFPlayer alias "InitIMFPlayer" () as integer declare function StartIMFMusic alias "StartIMFMusic" (musicstart as byte ptr) as integer declare sub PauseIMFMusic alias "PauseIMFMusic" () declare function GetIMFPosition alias ...
by VirusScanner
Dec 11, 2005 17:35
Forum: Documentation
Topic: New compilation released..
Replies: 15
Views: 7190

Go to "The Language"->"Other"->"Preprocessor"->#Include
by VirusScanner
Dec 10, 2005 21:26
Forum: Beginners
Topic: 2 array questions
Replies: 15
Views: 3461

This works for me:

Code: Select all

dim as zstring ptr test(0 to 1) => {strptr("hi"), strptr("not another one")}

print *test(0), *test(1)
sleep
by VirusScanner
Dec 10, 2005 20:28
Forum: Beginners
Topic: 2 array questions
Replies: 15
Views: 3461

I'd read about pointers and using allocate/deallocate/reallocate. That way nothing is allocated in memory until you need it, and you can delete it if it isn't needed anymore.
by VirusScanner
Dec 10, 2005 19:05
Forum: Windows
Topic: Anyone used unicode headers?
Replies: 5
Views: 1846

Wow, thanks for the quick response and fix! I'll download MinGW and rebuild them later today.
by VirusScanner
Dec 10, 2005 19:01
Forum: Windows
Topic: please test my crappy owner-draw menu
Replies: 36
Views: 7487

Wow, this is pretty cool. The compiler complains about an argument count mismatch when compiling in UTF-8 mode, but it's okay as standard ASCII.

Edit - nevermind, v1ctor said it is fixed in CVS.
by VirusScanner
Dec 10, 2005 17:47
Forum: Windows
Topic: Anyone used unicode headers?
Replies: 5
Views: 1846

I'm using SciTE, and compiling with fbc main.bas This is the code that I'm trying to get to work before I go on #define UNICODE #define DEBUG #include "windows.bi" option byval option explicit option escape option base 0 declare function FrameProc(hwnd as HWND, msg as UINT, wParam as W...
by VirusScanner
Dec 10, 2005 6:14
Forum: General
Topic: Binary Open Alternative
Replies: 18
Views: 2995

I suppose you could use the C library. The only time a small amount of time like this would effect you though is if you had a few billion files you needed to look through. Personally I wouldn't trade a few ms of runtime for a few minutes of looking through samples and documentation trying to learn a...
by VirusScanner
Dec 10, 2005 5:47
Forum: Windows
Topic: Anyone used unicode headers?
Replies: 5
Views: 1846

Anyone used unicode headers?

I'm trying to make a unicode program using the windows API. So at the top I have: #define UNICODE #define DEBUG #include "windows.bi" option byval option explicit option escape option base 0 and a bit further down, I have with wcl .style = CS_HREDRAW or CS_VREDRAW or CS_DBLCLKS .lpfnWndPro...
by VirusScanner
Dec 09, 2005 3:26
Forum: Tips and Tricks
Topic: versatile linked lists...
Replies: 8
Views: 2741

This is listnode: struct listnode { pointer pData; listnode *pNext; listnode *pPrev; } The language is called "Aurora" but I realize this is a freebasic forum, this is the freebasic version: type listnode as any ptr pData as listnode ptr pNext as listnode ptr pPrev end type declare functio...
by VirusScanner
Dec 09, 2005 2:23
Forum: Tips and Tricks
Topic: versatile linked lists...
Replies: 8
Views: 2741

I based my implementation on one built into another language, I'll convert it after I'm done with my homework :) // CREATE global sub ListCreate(),pointer { listnode *pTemp; pTemp = new(listnode,1); // new automatically zeroes memory. return pTemp; } // ADD, ADDHEAD global ...
by VirusScanner
Dec 03, 2005 4:07
Forum: Projects
Topic: FreeBASIC Library Achieve Project
Replies: 8
Views: 2731

If this is going to be open source then sourceforge will do it.

Go to advanced search