FBI - FreeBasicIDE - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: Qbasic "like" compilers/interpreters (http://qbasicnews.com/newforum/forum-5.html) +--- Forum: FB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-15.html) +---- Forum: FB Projects (http://qbasicnews.com/newforum/forum-16.html) +---- Thread: FBI - FreeBasicIDE (/thread-5280.html) |
FBI - FreeBasicIDE - seph - 12-08-2004 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! FBI - FreeBasicIDE - Frobozz - 12-09-2004 How about the default window size not being so small? FBI - FreeBasicIDE - seph - 12-09-2004 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 FBI - FreeBasicIDE - DrV - 12-09-2004 You could just use shell redirection (fbc xyz.bas > tmp.txt) or you could be l337 and use SetStdHandle etc. (see MSDN docs...) FBI - FreeBasicIDE - seph - 12-09-2004 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 Code: c:\freebasic\fbc.exe tmpname.bas >compile.log and yet it still does not work. yet it works in cmd.exe dospromt FBI - FreeBasicIDE - na_th_an - 12-09-2004 Not tested, but you can try this: Code: Shell "cmd " & FbPath & " " & tmpname$ & "bas > tmp.txt", vbNormalFocus FBI - FreeBasicIDE - seph - 12-09-2004 does not work FBI - FreeBasicIDE - na_th_an - 12-09-2004 Shouldn't you add a dot before the "bas"? FBI - FreeBasicIDE - seph - 12-09-2004 no, for the tmpfile$ var is "tmpfile." FBI - FreeBasicIDE - na_th_an - 12-09-2004 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. |