Compiling with HMG/IDE (parameters needed for exe)

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 179 times

Compiling with HMG/IDE (parameters needed for exe)

Post by Pablo César » Fri Oct 28, 2016 12:48 am

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?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 179 times

Post by Pablo César » Thu Nov 03, 2016 1:13 pm

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
Screen2.png (42.33 KiB) Viewed 2205 times
But I can not do this in our HMG/IDE... :cry:

Any body knows how to do it ? Claudio, any idea ?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
mol
Posts: 3028
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 169 times
Been thanked: 92 times
Contact:

Post by mol » Thu Nov 03, 2016 1:59 pm

There was a parameter in configuration of IDE to pass parameters to build app, but, I don't remember how to set it...

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 179 times

Post by Pablo César » Thu Nov 03, 2016 2:04 pm

Thank you Marek for your reply.

I have tested with prgflag, but I do not know how to do it. Doesn't work...
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
serge_girard
Posts: 2077
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 427 times
Been thanked: 91 times
Contact:

Post by serge_girard » Thu Nov 03, 2016 2:54 pm

I have no idea !

Serge

User avatar
mol
Posts: 3028
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 169 times
Been thanked: 92 times
Contact:

Post by mol » Thu Nov 03, 2016 3:33 pm

I was looking my old projects, but I didn't find nothing.
I'll test other my computers later.

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 179 times

Post by Pablo César » Thu Nov 03, 2016 3:48 pm

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... :(
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 179 times

Post by Pablo César » Fri Nov 04, 2016 6:50 pm

Please Marek you could look in your hbc files the string "runflag" ? Or by other string "run=yes"
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
mol
Posts: 3028
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 169 times
Been thanked: 92 times
Contact:

Post by mol » Fri Nov 04, 2016 7:16 pm

I've searched my old projects, but I didn't find anything :-(

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 179 times

Post by Pablo César » Fri Nov 04, 2016 7:26 pm

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... :?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

Post Reply