Posts: 1,813
Threads: 284
Joined: Mar 2003
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.
Posts: 142
Threads: 6
Joined: Aug 2001
How about the default window size not being so small?
Posts: 1,813
Threads: 284
Joined: Mar 2003
yeha thats a problem that oive already addressed
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.
Posts: 1,439
Threads: 15
Joined: Apr 2003
You could just use shell redirection (fbc xyz.bas > tmp.txt) or you could be l337 and use SetStdHandle etc. (see MSDN docs...)
Posts: 1,813
Threads: 284
Joined: Mar 2003
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
earn.
Posts: 6,419
Threads: 74
Joined: Mar 2002
Not tested, but you can try this:
Code:
Shell "cmd " & FbPath & " " & tmpname$ & "bas > tmp.txt", vbNormalFocus
Posts: 1,813
Threads: 284
Joined: Mar 2003
Posts: 6,419
Threads: 74
Joined: Mar 2002
Shouldn't you add a dot before the "bas"?
Posts: 1,813
Threads: 284
Joined: Mar 2003
no, for the tmpfile$ var is "tmpfile."
earn.
Posts: 6,419
Threads: 74
Joined: Mar 2002
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.