Search found 603 matches

by VirusScanner
Oct 28, 2007 5:53
Forum: General
Topic: identifying platform
Replies: 10
Views: 1886

That's for DLL imports/exports. C compilers on windows use __declspec(dllimport) to import a function from a DLL, and __declspec(dllexport) to export one. If you're not rebuilding the library with FB, you can just ignore all of that (or do an empty #define, in case you need that symbol in the future...
by VirusScanner
Oct 28, 2007 5:51
Forum: General
Topic: Constructor/destructor in a library
Replies: 2
Views: 1078

Ah, I see. I had put the constructor/destructor in its own file. It works fine now that I moved it to one that will (hopefully) always be referenced.
by VirusScanner
Oct 28, 2007 2:03
Forum: General
Topic: identifying platform
Replies: 10
Views: 1886

You can just do this: #define SFML_PLATFORM_X86 because FB doesn't run on any of the other platforms (AMD64 can, as far as I know, run 32 bit programs in x86 mode, but then your program is essentially running on an x86 platform). If you want to check for Windows, Linux, DOS, or BSD though, check for...
by VirusScanner
Oct 28, 2007 1:16
Forum: General
Topic: Constructor/destructor in a library
Replies: 2
Views: 1078

Constructor/destructor in a library

I can't get constructor/destructor subroutines to work inside a library. I'm referring to "sub xx() constructor", not "constructor sometype". If I call them myself, the system seems to remember to call them (they get called twice), but otherwise they don't get called at all.
Help is appreciated.
by VirusScanner
Oct 15, 2007 23:02
Forum: Windows
Topic: external use...
Replies: 1
Views: 1427

On Windows, use mouse_event. See http://msdn2.microsoft.com/en-us/library/ms646260.aspx

For example, to click (needs windows.bi)

Code: Select all

mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 )
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 )
by VirusScanner
Oct 14, 2007 23:02
Forum: Windows
Topic: Shutting down/restarting windows?
Replies: 6
Views: 2904

You'll need to adjust privledges on NT+ OS's in order to use ExitWindowsEx. I don't remember the exact code, but I think it had something to do with AdjustTokenPrivledges or similar.
by VirusScanner
Oct 10, 2007 15:40
Forum: General
Topic: freeBASIC as cross compiler ?
Replies: 5
Views: 2506

Cross compilation is possible: see http://www.freebasic.net/wiki/wikka.php?wakka=ProPgCompOpttarget However, I think this is only possible on windows (at least, it used to be). I know you'll need all the libraries and build tools for the other platform, and you may need to build the compiler in a sp...
by VirusScanner
Oct 10, 2007 15:38
Forum: Beginners
Topic: timer help
Replies: 3
Views: 1110

I recently had to write similar code for a game I was working on. The main idea is to use a variable set to the timer and wait for a certain time to elapse. dim poweruptime as double poweruptime = timer ''... if timer >= poweruptime + 10 then '' every 10 seconds givepowerup( ) poweruptime = ...
by VirusScanner
Oct 09, 2007 5:44
Forum: General
Topic: Graphing Math Functions
Replies: 5
Views: 2121

If you are just looking for a program that can graph these functions, look at SpeQ ( http://www.speqmath.com/ ). It's really a very nice calculator. If you need to write your own program for whatever reason, let me know and I'll try to help. In the meantime, I believe there have been some programs o...
by VirusScanner
Oct 08, 2007 23:44
Forum: General
Topic: Method returning its type
Replies: 2
Views: 1004

For some reason I thought you couldn't do that. Thanks.
by VirusScanner
Oct 08, 2007 22:51
Forum: General
Topic: Method returning its type
Replies: 2
Views: 1004

Method returning its type

Is it possible to do something like this: type t_ as t type t ''... declare function DoSomething( ) as t_ end type The reason is for a dynamic string class that has methods like ToLowerCase, Left, etc. I keep getting an incomplete type error, even though I am using the typedef trick that sho...
by VirusScanner
Sep 18, 2007 6:25
Forum: General
Topic: Can't access archive
Replies: 5
Views: 1552

Thanks, it's working now.
by VirusScanner
Sep 16, 2007 23:24
Forum: General
Topic: Can't access archive
Replies: 5
Views: 1552

Can't access archive

The new FB archive keeps giving me an "incorrect username" error. I have made sure that I am using my forum username and password, but it is not working. The regester button says to use the forum to register, but I am obviously already registered on the forum. Any advice on how to fix this is apprec...
by VirusScanner
Jun 09, 2007 16:37
Forum: Projects
Topic: Scintilla for FB / FBPad
Replies: 11
Views: 3882

I've found an older version of my lexer. It was written for FB, not VB or another BASIC so it suits FB better I think, it's just there are a couple of things missing. I'll try to get it up to date.

... or at least it would be better suited if it actually worked...
by VirusScanner
Jun 08, 2007 22:06
Forum: Projects
Topic: Scintilla for FB / FBPad
Replies: 11
Views: 3882

The problem is, I got caught up with dialogs and didn't finish. The program is very limited. You can edit, open, and save, but most of the menu items don't work. I also lost my LexFreeBASIC.cxx file for scintilla, otherwise I would post it here for anyone who wants it. However, if I do find the lexe...

Go to advanced search