Search found 2188 matches

by coderJeff
Feb 14, 2006 5:31
Forum: Beginners
Topic: using dir$ to fill an array
Replies: 27
Views: 7015

i really dont have time to study this :/ how can i use it to fill an array(1 for directory's, 1 for file's).. i've been messing around with the first way.. but it just doesnt work right Using the DirEx() function already posted here's a couple of ideas: dim retattrib as integer, d as string, i as i...
by coderJeff
Feb 14, 2006 4:45
Forum: Beginners
Topic: using dir$ to fill an array
Replies: 27
Views: 7015

Hi there CoderJeff, i recently was trying out _findfirst etc, and found it found it wouldn't work on Linux, is there a way? i tried removing the underscore in the declaration but no joy. Sorry, I missed this post. Yeah, linux has a different mechanism for getting file/dir info. I just reconstructed...
by coderJeff
Feb 12, 2006 16:55
Forum: Windows
Topic: I need to move/scroll the screen pixel by pixel.
Replies: 24
Views: 4888

I was wondering it the 'memmove' is a 32 bit move, or, an 8 bit one? To be honest I have no idea. memmove resolves to whatever is in the crt for the build system. The exact instructions would depend on crt in use at the time. But i'm going to guess that most of the time it will be a simple byte cop...
by coderJeff
Feb 12, 2006 16:07
Forum: Windows
Topic: I need to move/scroll the screen pixel by pixel.
Replies: 24
Views: 4888

If you remove the "screensync" command from my sample, it will run faster but you may get flicker on the display. My sample was adding one scanline per iteration, and because of screensync, the rate would be at most the display's refresh rate. Just curious, how fast does it need to be? (e.g. scan li...
by coderJeff
Feb 12, 2006 15:29
Forum: Windows
Topic: I need to move/scroll the screen pixel by pixel.
Replies: 24
Views: 4888

Here's another idea that shifts data on the screen buffer using memmove included from the c run-time. option explicit #include "crt/string.bi" dim i as integer, p as integer ptr screen 18,32 randomize timer do screenlock '' add some random data for i = 0 to 479 pset (639,i),rgb(...
by coderJeff
Feb 12, 2006 1:42
Forum: Windows
Topic: I need to move/scroll the screen pixel by pixel.
Replies: 24
Views: 4888

Why not just store the data in an array and plot it out when needed? Here's an example that uses a circular buffer: option explicit dim v(0 to 1023) as integer dim index as integer = 0, i as integer screen 18,32 randomize timer do '' add a point index += 1 index and= 1023 v(index) = ...
by coderJeff
Feb 10, 2006 5:35
Forum: Windows
Topic: Dialog templates
Replies: 2
Views: 965

You're going to kick your-self :)

In AlignWord:

Code: Select all

ul shl= 1
ul shr= 1


Should be,

Code: Select all

ul shr= 1
ul shl= 1


Worked for me on winxp.
by coderJeff
Feb 07, 2006 13:38
Forum: Documentation
Topic: Different Page Format
Replies: 92
Views: 23877

Not sure if a template is being used or the new decl's are being punched in by hand, but KeyPgStringtype should be inserted instead of KeyPgString for var as String . EDIT: unless page names are going to be being changed: there currently is KeyPgString - function KeyPgStringtype - datatype KeyPgWstr...
by coderJeff
Feb 04, 2006 19:01
Forum: General
Topic: GFXLib BLoad bpp Bug
Replies: 1
Views: 530

That's a bug (for any size bmp in any screen mode). I posted a bug report on sf (with the gfxlib2 source line to fix)
by coderJeff
Feb 04, 2006 17:26
Forum: Beginners
Topic: Compiling CVS
Replies: 12
Views: 2147

I don't know if you can mix them and do make under windows. You can -- sort of. Mingw does automatic path translation behind the scenes so that /c/path gets translated to C:\path as needed and running make from a dos prompt will ususually work right after ./configure. However, if a rule in makfile ...
by coderJeff
Feb 04, 2006 11:50
Forum: General
Topic: Allowing no duplicate programs to run?
Replies: 7
Views: 1498

Keep the file open while the program is running. Then no-one can delete it. Close it and kill on program exit.
by coderJeff
Feb 04, 2006 2:16
Forum: Beginners
Topic: Compiling CVS
Replies: 12
Views: 2147

Sorry, I have no idea. autoconf and automake are beyond me at the moment. But I'm going to guess that configure is supposed to supply the value for fbc. If not and it's an option instead, configure should probably abort and ask the user to supply it. I just followed the instructions in INSTALL and w...
by coderJeff
Feb 04, 2006 2:02
Forum: Libraries
Topic: Using FB compiled libraries with C
Replies: 16
Views: 8501

I've tested this on dos-djgpp and mingw32. b_lib.bas - a test library in freebasic Here's the code for a library in freebasic. It has a constructor/destructor and libfb dependencies that require proper initialization: Option Explicit Dim shared ctor_called as integer = 0 Private sub do_init construc...
by coderJeff
Feb 04, 2006 1:24
Forum: Libraries
Topic: Using FB compiled libraries with C
Replies: 16
Views: 8501

Thanks v1c, the atexit()/exit()/End is working great. (Just tried it from CVS) I have also worked out many of the details for using a freebasic built static lib with C including implicit initialization. I'll post the code shortly,which will consist of: b_lib.bas - a static lib built with freebasic b...
by coderJeff
Feb 03, 2006 22:15
Forum: Beginners
Topic: Compiling CVS
Replies: 12
Views: 2147

Look for a line in the makefile that says

Code: Select all

fbc =


and change it to

Code: Select all

fbc = ../../../../fbc.exe


'e' and 'v' are options that are passed to fbc

Go to advanced search