Page 1 of 2
Compiling with HMG/IDE (parameters needed for exe)
Posted: Fri Oct 28, 2016 12:48 am
by Pablo César
Does anyone know tell me how do I set the build in IDE passing parameters and the application receives while running?
I want to compile with the IDE and leave recorded (maybe .hbc file) and that it interprets as a parameter to be passed to the newly built application.
How I do? Or will have no option to save the parameters for later execution with the IDE?
Compiling with HMG/IDE (parameters needed for exe)
Posted: Thu Nov 03, 2016 1:13 pm
by Pablo César
No body?
I need to configure the compilation by IDE which is passed the parameter that my application needs to run.
In other words...
I need to build my aplication in HMG/IDE.
My app uses a parameter at prompt command.
Example (when execute at prompt command)
:
FMG_View Main.fmg
In red color is the parameter needed for my app.
- Screen2.png (42.33 KiB) Viewed 5353 times
But I can not do this in our HMG/IDE...
Any body knows how to do it ? Claudio, any idea ?
Re: Compiling with HMG/IDE (parameters needed for exe)
Posted: Thu Nov 03, 2016 1:59 pm
by mol
There was a parameter in configuration of IDE to pass parameters to build app, but, I don't remember how to set it...
Compiling with HMG/IDE (parameters needed for exe)
Posted: Thu Nov 03, 2016 2:04 pm
by Pablo César
Thank you Marek for your reply.
I have tested with prgflag, but I do not know how to do it. Doesn't work...
Re: Compiling with HMG/IDE (parameters needed for exe)
Posted: Thu Nov 03, 2016 2:54 pm
by serge_girard
I have no idea !
Serge
mol
Posted: Thu Nov 03, 2016 3:33 pm
by mol
I was looking my old projects, but I didn't find nothing.
I'll test other my computers later.
Compiling with HMG/IDE (parameters needed for exe)
Posted: Thu Nov 03, 2016 3:48 pm
by Pablo César
Thank you Marek and Serge.
It's not urgent, but all the time that I have to compile it, I have to close app and going to prompt command. Its the only way I know...
I supose to be something likes
flag written at .hbc of project.
I read this topic but I do not know how to use it:
viewtopic.php?p=41322#p41322
I have not experience about it and I hope you going to find it...
or someone else...
Compiling with HMG/IDE (parameters needed for exe)
Posted: Fri Nov 04, 2016 6:50 pm
by Pablo César
Please Marek you could look in your hbc files the string "runflag" ? Or by other string "run=yes"
Re: Compiling with HMG/IDE (parameters needed for exe)
Posted: Fri Nov 04, 2016 7:16 pm
by mol
I've searched my old projects, but I didn't find anything
Compiling with HMG/IDE (parameters needed for exe)
Posted: Fri Nov 04, 2016 7:26 pm
by Pablo César
Are you sure Marek that our IDE allows this parameters ?
The configuration pass thru hbc by Harbour compiler. But I guess this is not working in HMG/IDE.
Because if you put at "Configuration" tab in the IDE adding this following line:
run=yes
Then it's going to execute twice your created app... that's means is the IDE its execute not the compiler...
Claudio or Roberto, could you confirm this ?
I noted a typo wrongly defined "
RUNAFETRBUILD" in the IDE.exe I saw this string by Windows'
Resource Monitor...