Search found 849 matches
- Jun 13, 2016 10:00
- Forum: Beginners
- Topic: How much could I print in a .txt from a program?
- Replies: 16
- Views: 1589
Re: How much could I print in a .txt from a program?
Like counting_pine said, the data written to a file are buffered to the memory. And when your program crashes, the file is closed immediately by the OS without writing the buffered data to it. But I wouldn't worry about that behaviour. As soon as you fixed the cause for the crashes, the logging will...
- Jun 11, 2016 9:24
- Forum: General
- Topic: Communication between programs
- Replies: 22
- Views: 2262
Re: Communication between programs
On a Windows machine there's a simple way to use the Windows messaging system for inter-program-communication. The advantage of this method is that you don't have to bother with distribution, synchronisation and threadsafety, because Windows does this for you. The only thing you have to know is the ...
- Jun 08, 2016 9:04
- Forum: Beginners
- Topic: Gah! This error is stupid!
- Replies: 28
- Views: 3377
Re: Gah! This error is stupid!
You have either to bring the FB namespace to the scope #Include "fbgfx.bi" Using FB '<<<<<<<<<<<<<<<<<<<< Screen 16 ScreenRes 800, 600, 32 or alternatively prefix every fbgfx variable with the fbgfx namespace symbol SUB MOVE IF MULTIKEY(FB.SC_W) then end if end sub EDIT: Oh, I see, MrSwiss...
- Jun 07, 2016 23:54
- Forum: Beginners
- Topic: Gah! This error is stupid!
- Replies: 28
- Views: 3377
Re: Gah! This error is stupid!
Yes. And you should place it at the very beginning of the code.BristolBrick wrote:How do I do that #include thingy? Am I supposed to put it into the code?
- Jun 07, 2016 23:47
- Forum: General
- Topic: Nordic letters in FreeBasic
- Replies: 2
- Views: 526
Re: Nordic letters in FreeBasic
Also have a look at the WinAPI - functions OemToChar, CharToOem and UTFToChar.
- Jun 07, 2016 10:21
- Forum: Beginners
- Topic: Questions about DIM and REDIM
- Replies: 16
- Views: 1233
Re: Questions about DIM and REDIM
By the way.... talk me about your chess gui, any link? you have some engine? EDIT: I found it: https://www.freebasic-portal.de/projekte/colochessum-84.html I guess you have little use for the german description (maybe I'll add an english version within the next few days if I'll have the time), but ...
- Jun 06, 2016 6:57
- Forum: General
- Topic: Moving a window: slow, jerky motion
- Replies: 25
- Views: 2619
Re: Moving a window: slow, jerky motion
Nice idea, but it would avoid moving more than the half of the window off the screen.xlucas wrote:A solution to this would be to hide the mouse pointer when the window is grabbed and place it at the centre of the window.
- Jun 06, 2016 6:39
- Forum: Beginners
- Topic: Gah! This error is stupid!
- Replies: 28
- Views: 3377
Re: Gah! This error is stupid!
Ok, so how would I set one? Just the way sancho2 posted in his example: Const pi = 3.14159 But that's not what you need. I guess you misunderstood what fxm was trying to say: Const p = 12345 Dim SHARED rock1 As Any Ptr = Cast(Any Ptr,p) would compile because p is a constant, while Dim SHARED rock1 ...
- Jun 06, 2016 5:53
- Forum: Beginners
- Topic: Questions about DIM and REDIM
- Replies: 16
- Views: 1233
Re: Questions about DIM and REDIM
Hello Luis Babboni!
Does your chess engine use the UCI-protocol? If so I could offer you to test it with my own chess GUI (Colochessum). So we could determine at least if the engine or the GUI causes the crash.
Regards
grindstone
Does your chess engine use the UCI-protocol? If so I could offer you to test it with my own chess GUI (Colochessum). So we could determine at least if the engine or the GUI causes the crash.
Regards
grindstone
- Jun 01, 2016 9:10
- Forum: General
- Topic: OOP or not OOP... That's the question! XD
- Replies: 21
- Views: 3256
Re: OOP or not OOP... That's the question! XD
Using OOP or not is a matter of what you're intending to do. The main benefit of OOP is the capability of inheritance which is of advantage if you're working at a large project together with many other programmers. It saves a lot of time if you can draw on a pool of existing objects you only have to...
- May 28, 2016 11:31
- Forum: Beginners
- Topic: schedualed task
- Replies: 11
- Views: 1236
Re: schedualed task
Sometimes, on this computer, for sleep 60000 I get every minute. Sometimes I get every 75 seconds. I can confirm that, I also get a delay of usually 75 seconds at SLEEP 60000. And SLEEP 500 produces a repetition time of ~624 ms. Seems the SLEEP - statement is not suitable to code a high precision c...
- May 28, 2016 11:10
- Forum: Game Dev
- Topic: AI : NOT 3
- Replies: 10
- Views: 2133
- May 27, 2016 3:11
- Forum: Beginners
- Topic: schedualed task
- Replies: 11
- Views: 1236
Re: schedualed task
If you want the scheduling program to run exact to the second you have to reduce the SLEEP time to 500. The loss of performance compared to 10000 is marginal.
- May 24, 2016 0:06
- Forum: General
- Topic: Converting to FreeBasic
- Replies: 2
- Views: 474
Re: Converting to FreeBasic
Hello NorbyDroid! The clear answer is: It depends! If your routines work correctly and suit your needs, there's no reason to change anything. On the other hand, when writing a new program from the scratch I would recommend using the built-in functions of FB instead of bothering with the development ...
- May 17, 2016 23:39
- Forum: Community Discussion
- Topic: Runtime loadable plugins
- Replies: 6
- Views: 870