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

Compiling with HMG/IDE (parameters needed for exe)

Post 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?
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

Compiling with HMG/IDE (parameters needed for exe)

Post 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
Screen2.png (42.33 KiB) Viewed 5406 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: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Compiling with HMG/IDE (parameters needed for exe)

Post 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...
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Compiling with HMG/IDE (parameters needed for exe)

Post 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...
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
serge_girard
Posts: 3165
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Compiling with HMG/IDE (parameters needed for exe)

Post by serge_girard »

I have no idea !

Serge
There's nothing you can do that can't be done...
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

mol

Post by mol »

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

Compiling with HMG/IDE (parameters needed for exe)

Post 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... :(
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

Compiling with HMG/IDE (parameters needed for exe)

Post by Pablo César »

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: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Compiling with HMG/IDE (parameters needed for exe)

Post by mol »

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

Compiling with HMG/IDE (parameters needed for exe)

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