Search found 491 matches
- May 01, 2014 4:16
- Forum: Archive
- Topic: Procedural terrain engine.
- Replies: 6
- Views: 2311
Re: Procedural terrain engine.
Look good, all be it a little... trippy... as rolliebollocks said. Although it didn't run for me at first. I found a couple bugs in 3 files that I had to fix before it would run. The changes I made are listed below. I may have fixed the error checking in the Shaders.inc file for you. Also, it seemed...
- Apr 16, 2014 12:11
- Forum: General
- Topic: Strange Error
- Replies: 6
- Views: 1372
Re: Strange Error
In plain English, your using GoTo to skip a section of the code where you defined something with Dim. And just to add to fxm's examples: GoTo label 'Scope ' Begin scope after GoTo Dim As Integer I = 123456789 Print I 'End Scope ' End scope before label label: Print "Done" Dim As Integer I ...
- Apr 15, 2014 10:56
- Forum: Linux
- Topic: TCP/IP communication for LAN and Internet games in Linux?
- Replies: 7
- Views: 3412
Re: TCP/IP communication for LAN and Internet games in Linux
If you want to try using sockets then you should check out Beej's Guide to Network Programming . It's a really good introduction to using sockets, good sense of humor, and the author was using Linux. The only thing it it's all written in C. I don't know if you've ported C code to FB before, but it's...
- Mar 23, 2014 5:03
- Forum: General
- Topic: Is there a thread-safe sleep command?
- Replies: 15
- Views: 4778
Re: Is there a thread-safe sleep command?
Thanks guys. I spotted the Select() in the FB source a while ago and had been wondering about it.
- Mar 22, 2014 12:43
- Forum: General
- Topic: Is there a thread-safe sleep command?
- Replies: 15
- Views: 4778
Re: Is there a thread-safe sleep command?
I'm a little late to the party, but I have a semi related question. I just checked the source code and the FreeBASIC Sleep() command calls a function called fb_Delay(). The Unix version of fb_Delay() calls the network command Select(), which is what does the work. So in short, on Unix/Linux, Sleep()...
- Aug 28, 2013 11:08
- Forum: General
- Topic: Deallocate not freeing memory?
- Replies: 7
- Views: 2074
Re: Deallocate not freeing memory?
Another test program for you, because I was bored :P Just press (or hold) the plus or minus key to increase or decrease the memory usage. Press any other key to clear any remaining used memory and end the program. Const As Integer countmax = 1024 ' Max buffers Const As Integer buffersize = 8 * (1024...
- Jul 17, 2013 13:21
- Forum: General
- Topic: Problem with IMAGECREATE() and IMAGEDESTROY
- Replies: 6
- Views: 1739
Re: Problem with IMAGECREATE() and IMAGEDESTROY
Is your program small enough to post in the topic? It would help a lot if we could see your code, or even just a small section of it near IMAGECREATE and IMAGEDESTROY. Also, IMAGEDESTROY should not cause your program to crash if used correctly. For the moment I just have two suggestions. If your IMA...
- Jun 15, 2013 4:37
- Forum: Community Discussion
- Topic: New FB release coming up
- Replies: 124
- Views: 31127
Re: New FB release coming up
...surely any library that wants to work on 64bit Linux aswell as Windows will avoid using long and use long long instead. Well MySQL for one uses a combination of int , long and long long , and is available for both 32bit and 64bit on Windows and other platforms. Speaking of which, I have ported t...
- Jun 14, 2013 10:25
- Forum: Community Discussion
- Topic: New FB release coming up
- Replies: 124
- Views: 31127
Re: New FB release coming up
Just an observation and a couple of questions.There are quite a lot of library files (the .a files) that are no longer included in the main FB download. I quickly found them off in the 'Library' folder but I was wondering if they are going to be separate from now on? Also, by having the libraries as...
- May 22, 2013 9:15
- Forum: Beginners
- Topic: FB - MySql
- Replies: 7
- Views: 2515
Re: FB - MySql
ike, try this. I only made a couple of changes, but it now works on my test server at least. #Include Once "mysql\mysql.bi" #define NULL 0 Dim conn As MYSQL Ptr Dim res As MYSQL_RES Ptr Dim row As MYSQL_ROW ' --- Change to strings from zstring ptr's Dim server As String Dim user As String ...
- May 20, 2013 9:15
- Forum: Beginners
- Topic: FB - MySql
- Replies: 7
- Views: 2515
Re: FB - MySql
You can get the .dll (and the .lib) from, http://dev.mysql.com/downloads/connector/c/ To link to the .dll either place it in the same directory as your code at compile time so the linker can find it, or use a tool to convert the .lib file to a .a file, because the linker can't actually use a .lib fi...
- May 10, 2013 3:17
- Forum: Windows
- Topic: Windows File Names?
- Replies: 4
- Views: 1756
Re: Windows File Names?
Ha, we've all done that at some point. Probably many times ;-)cavelamb wrote:Yeah, after messing with it (Far too long) the light over my head lit up - dimly...
Anyway, good luck.
- May 09, 2013 4:37
- Forum: Beginners
- Topic: Libraries, how do they work ?
- Replies: 13
- Views: 3293
Re: Libraries, how do they work ?
Hi hide, and welcome to the forum :-) To use a library written and compiled with C you just need to port the header (the .h file/s) to FB headers (the .bi file/s), which is actually reasonably simple most of the time but it can take a while if the headers are long. A lot of the commonly used headers...
- May 09, 2013 3:43
- Forum: Community Discussion
- Topic: New FB release coming up
- Replies: 124
- Views: 31127
Re: New FB release coming up
Thanks dkl for the explanation. It sounds like the new pre-processor will be really useful and will now allow stuff that I have actually tried in the past, particularly the support for Len() considering the move toward 64bit support. Personally I'd be also very happy to have UCase()/LCase() support ...
- May 08, 2013 10:03
- Forum: Community Discussion
- Topic: New FB release coming up
- Replies: 124
- Views: 31127
Re: New FB release coming up
Just found a change that I'm not sure if its a change, a fix or a bug. You used to be able to check for the keyword 'This' in macros but it seems you can't any more. I'm just wondering if I have been doing it wrong until now, or if this is a bug (or a change) in the new compiler. Anyway, a quick exa...