Search found 1402 matches

by yetifoot
Mar 08, 2009 9:19
Forum: Archive
Topic: New version of PNG library (now v3.2.q)
Replies: 100
Views: 75055

Zire has let me know about a problem when using the static zlib version, it still relies on zlib.dll The way to stop that is to remove these lines from fbpng.bi #ifndef PNG_STATICZ #inclib "z" #endif Or to do #define PNG_STATICZ 1 #include "fbpng.bi" in your program. These change...
by yetifoot
Mar 04, 2009 10:37
Forum: Libraries Questions
Topic: Getting garbage values through SDL_Net
Replies: 1
Views: 1290

I think it is probably this, in the first one Print "Packet received:"; *integerpointer and then in the other Input "Number:", *integerpointer I have a feeling you are printing a pointer rather than the value. EDIT: These seem to work ok. serve.bas #include "SDL/SDL_net.bi&q...
by yetifoot
Mar 02, 2009 1:52
Forum: Sources, Examples, Tips and Tricks
Topic: Quick and dirty self hosting BASICish compiler
Replies: 32
Views: 12996

That's pretty cool graph, I don't remember using the word "postfix" but it was a while ago.
by yetifoot
Feb 27, 2009 16:57
Forum: Sources, Examples, Tips and Tricks
Topic: Quick and dirty self hosting BASICish compiler
Replies: 32
Views: 12996

OK, I got it all worked out now, I was able to test on a windows box, here's a new download with the fixes.

http://streetcds.co.uk/tb_0.35.tar.gz

just do 'make' in msys, or do all the commands in the build.sh, and it will work.
by yetifoot
Feb 27, 2009 15:39
Forum: Sources, Examples, Tips and Tricks
Topic: Quick and dirty self hosting BASICish compiler
Replies: 32
Views: 12996

Oh, I just spotted one thing, you are compiling from 0.34/compiler/src, you should compile from just 0.34/ at the moment it's very sensitive on directories like that.
by yetifoot
Feb 27, 2009 15:30
Forum: Sources, Examples, Tips and Tricks
Topic: Quick and dirty self hosting BASICish compiler
Replies: 32
Views: 12996

Well that's a very odd error, the only thing I can suggest, is replace this func in parse_pp.bas function pp_include_file_open _ ( _ byref file_name as string _ ) as FILE ptr dim as FILE ptr hfile dim as string s dim as zstring ptr tmp = callocate( 4096 ) if getcwd( tmp, 4095 ) = 0 then die( "g...
by yetifoot
Feb 27, 2009 13:32
Forum: Sources, Examples, Tips and Tricks
Topic: Quick and dirty self hosting BASICish compiler
Replies: 32
Views: 12996

OK, thanks, I guess that means windows doesn't have error_at_line... replace error.bas with this; #include once "compiler/src/inc/lex.bi" ':::::::: sub error_at_line2 _ ( _ byval status as integer, _ byval errnum as integer, _ byval filename as zstring ptr, _ byval linenum as integer, _ by...
by yetifoot
Feb 27, 2009 10:07
Forum: Sources, Examples, Tips and Tricks
Topic: Fast Floyd-Steinberg based dithering.
Replies: 1
Views: 1712

Yeah, that's pretty fast! I wrote a floyd steinberg dither a while back, so I decided to compare, even though I could tell yours was faster. Mine was about 2x slower. I spent a while optimizing it best I could, but it's still slower. Here is my test program, I think my dither is slightly more faithf...
by yetifoot
Feb 27, 2009 9:56
Forum: Sources, Examples, Tips and Tricks
Topic: Quick and dirty self hosting BASICish compiler
Replies: 32
Views: 12996

I spent a bit more time on this after I posted, but haven't done anything in the last month or so, so I spent a little while and cleaned it up best I could, so anyone interested could look. A lot of stuff is cleaner and better, but many new quirks and hacks have been added. One part I had real troub...
by yetifoot
Jan 30, 2009 18:59
Forum: Archive
Topic: Artifical Neural Network MLP BP Lib
Replies: 20
Views: 7737

In case he doesn't come back, heres a copy of the latest version of this I have from him.

I have modified just a few lines so that it compiles with newer FB (remove option explicit, change in$ and oin$ to in_str and oin_str)

http://streetcds.co.uk/mam_nn02.tar.gz
by yetifoot
Jan 05, 2009 13:52
Forum: Sources, Examples, Tips and Tricks
Topic: (FBMLD) FreeBASIC Memory Leak Detector
Replies: 51
Views: 27662

It's been a long time, but from memory... NEW/DELETE can't be simply added to fbmld, as they are operators, not functions, so can't be done with #define or #macro I can't remember if global new/delete overloading got added to the operator overloading... If it was added at all, I think it was just pe...
by yetifoot
Jan 05, 2009 13:38
Forum: Sources, Examples, Tips and Tricks
Topic: How does FreeBASIC looks like when compiled...
Replies: 4
Views: 1930

Something that might be of use, if you don't know. You can initialize your variables when they are DIM'd, ie Dim As Integer x = 9 That way it won't waste time setting it to 0 first. Another option is to use the ANY initializer, ie Dim As Integer x = ANY x = 9 Using the ANY initializer will stop the ...
by yetifoot
Dec 16, 2008 11:09
Forum: Community Discussion
Topic: FreeBASIC Frozen
Replies: 61
Views: 15011

John, I see that you did not respond to my request for the links to the topics by FB team members. If they do not exist, then I would consider that not only are you overly-promoting your site, but also misrepresenting it's contents, and misrepresenting what the FB team have been doing. If this is th...
by yetifoot
Dec 16, 2008 10:45
Forum: General
Topic: Type Recursive?[SOLVED]
Replies: 4
Views: 1256

The 'p' at the start of the name indicates to me that it should be a pointer, which makes much more sense in this case, so give this a try. Type SPPHRASEPROPERTY pszName As Ushort ulId As Uinteger pszValue As Ushort vValue As Variant ulFirstElement As Uinteger ulCountOfElements As Uinteger pNextSibl...
by yetifoot
Dec 16, 2008 9:50
Forum: Community Discussion
Topic: FreeBASIC Frozen
Replies: 61
Views: 15011

In an effort to get the word out, a few key members of the FreeBASIC team have been posting 'getting started', features and code projects on the All Basic site. If you have a FreeBASIC example your proud of or a tutorial to entice Basic programmers to give FreeBASIC a try, this is the place. All co...