Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FBI - FreeBasicIDE
#1
just tryin my hand at one. its in VB btw. there were some concepts that i didnt like in Vony's, and being a programmer, i decided to make my own instead of telling him what to change, lmao! anyways yeah, here is the .zip:

http://junk.w00tish.com/fbi.zip

sofar the menus that work:
- open
- new
- run
- paths
- exit

also, running does not require your file to be saved (i hate that about ide's) so enjoy! suggest features!
earn.
Reply
#2
How about the default window size not being so small? Big Grin
Reply
#3
yeha thats a problem that oive already addressed Big Grin

anywho the real problem i have now is how when you click Run, it does the following:

-creates a temp bas file
-compiles the bas file
- * checks to see if there were errors
-executes the bas file

* im not sure how to output the errors into a separate textfile rather than in the dos window. does anyone know hwo to do this? this is the only place im stuck
earn.
Reply
#4
You could just use shell redirection (fbc xyz.bas > tmp.txt) or you could be l337 and use SetStdHandle etc. (see MSDN docs...)
Reply
#5
ive been tyrintg that and it doesnt seem to work...

Code:
Shell FbPath & " " & tmpname$ & "bas > tmp.txt", vbNormalFocus

will output this to DOS:

Code:
c:\freebasic\fbc tmpname.bas >compile.log
or
Code:
c:\freebasic\fbc.exe tmpname.bas >compile.log

and yet it still does not work. yet it works in cmd.exe dospromt Sad
earn.
Reply
#6
Not tested, but you can try this:

Code:
Shell "cmd " & FbPath & " " & tmpname$ & "bas > tmp.txt", vbNormalFocus
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#7
does not work
earn.
Reply
#8
Shouldn't you add a dot before the "bas"?
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#9
no, for the tmpfile$ var is "tmpfile."
earn.
Reply
#10
What does "it doesn't work" mean? It doesn't run fbc? It doesn't output shit to the file? You can't locate the file?

If it happens to be the third option, try this:

Code:
Shell FbPath & " " & tmpname$ & "bas > " & App.Path & "tmp.txt", vbNormalFocus

It should create the file App.Path & "tmp.txt", look in your application's path to find it.

If tmpname$ doesn't include a path, you should add App.Path & tmpname$ as well.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)