This topic contains 0 voices and has 5 replies.
|January 16, 2009 at 6:39 am #519|
Not much else to add. I am starting to learn Flex and after it compiles my stuff, I’d love for it to try and launch the resulting .swf file without me needing to push another button!
|January 19, 2009 at 11:59 am #16192|
Hi, this is most easily done by creating a batch file that runs your two programs, e.g.
Call the batch file with all the properties you need from Programmer’s Notepad, and they’ll be in the batch file as %1, %2, …
|February 8, 2009 at 9:55 am #16193|
It would be convenient if PN passed the tool command to a hidden command prompt instead. Then we can use fancy stuff like && to do this: "g++ somefile.cpp && out.exe" where out.exe is only run if compilation is successful.
|February 16, 2009 at 6:25 am #16194|
Hi everyone ,
I made a tiny program for PN to run several tools at a time
here is the readme file:
you can use this program to run several tools at a time.
the tools you need to run have to be config in config.ini
pnbuilder FullFilePath WorkPath [ProjectName]
the symbols used in the config file are similar to PN :
> file name eg. abc.c
> file name with full path eg. abcabc.c
> file name no ext eg. abc
> file path eg. abc
> project name
> current work path
the configuration is simple, for example:
in my config.ini, I wrote:
param=%d%n.obj to %d%n
if I use this command to launch pnbuilder:
pnbuilder abcabc.c abc
the following command will be launch in abc:
toolskeilC51BINC51.exe abcabc.c ;this command will generate an .obj file
if no error and wanning found,the following command will be launch:
toolskeilC51BINBL51.EXE abcabc.obj to abcabc ;link a file with no ext
and again if no error and wanning found,the following command will be launch:
toolskeilC51BINOH51.EXE abcabc ;generate a hex file
sorry for my poor English and hope this tiny program can help you
you can download it here
hope you like it.
|February 18, 2009 at 6:33 am #16195|
Thanks, max. Would you mind providing the source code as well?
|February 19, 2009 at 4:02 am #16196|
here is the code,in delphi
if CreatePipe(hReadPipe, hWritePipe, @lsa, 0) = false then
while (true) do
ph[cchReadBuffer] := chr(0);
You must be logged in to reply to this topic.