Page 7 of 7

Re: HMG 3.0.39 - Console mode

Posted: Mon Oct 31, 2011 2:44 pm
by esgici
Hola Pablo

Sorry, I misunderstood you :( ( poor English ;) )

When you wrote:
I also missing much the "Console mode" options in IDE in this version.
I understood:
In this version IDE doesn't support console-only building.
Regarding your plaints on HMG docs, please be relax; the time is flowing very speedy, some thing is changing rapidly and documenting every changed points lefts out of human power :(
Pablo César wrote: ...
Is it possible to give a example to compile thru IDE for apps pure console ?
Yes, with pleasure :

Code: Select all

REQUEST HB_GT_WIN_DEFAULT

PROC MAIN()
   ?
   ? "This is a console-Only prg built by HMG IDE"
   ?
   WAIT "Press any key for terminate program and closing console"
 
RETU   
Console only prg built by IDE
Console only prg built by IDE
ConsOnly.JPG (16.27 KiB) Viewed 6316 times
Saludos

--

Esgici

Re: HMG 3.0.39

Posted: Mon Oct 31, 2011 2:46 pm
by danielmaximiliano
Ola Paulo:
vocês. ainda pode usar o IDE para criar aplicações console.
apenas adicionando uma linha de um aplicativo principal.
compilação será como de costume e igual a hmg.3.0.35

Code: Select all

FUNCTION Main()                            
   SET Navigation Extended                                                             
   // Database driver.
   REQUEST DBFCDX, DBFFPT
   RDDSETDEFAULT ("DBFCDX")
   REQUEST HB_GT_WIN_DEFAULT
   SET EVENTMASK TO INKEY_ALL
  /* REQUEST HB_CODEPAGE_ESWIN
   HB_SETCODEPAGE( "ESWIN" )*/
   *SetMode(50,132)
   SetMode(40,120)
   Estacion := getenv("UserName")
   SET STATIONNAME TO Estacion
   CLS
uso HMG.3.0.39 para o meu aplicativo de console.

Re: HMG 3.0.39

Posted: Mon Oct 31, 2011 3:59 pm
by Pablo César
Thank you dear colleagues for your appreciated help. I was not able to compile my console apps thru MHG IDE succefully but it was for my entire ignorance. Sorry and very thank you. But now I getting OK my compiles but there is still one important diference. And I will try to explain what is happing:

- Before with ID of Hmg.3.0.35,was possible to compile in console mode and the executable of app was able to run in same DOS session.
- Now with ID of Hmg.3.0.39, was also possible to compile in console mode but the executable in line command opens a new session. It´s justly what I do not want it.

So it was diferent situation when compile with HMG Extended IDE. I understand that it is possible with some more options, like to build with Harbour in pure console with BCC thru HMGE IDE. It will be very good for our HMG IDE to get same resources, like picture shows below:
Image

Is it possible to build our HMG apps thru HMG Extend IDE ? At moment I do not know if my configurations at "Tools/Preferences" are correct, I means for paths of each tools. My MiniGui, Harbour, BCC and HMG are installed in the default path at installations. Could it be confirmed if can it be used for HMG and if configs. are ok ? As shows Screen captured below:
Image
I believe that having a good development environment, reduces much reworking and be more practical. Sorry if I body you, but what do you suggest to me ?

Re: HMG 3.0.39

Posted: Mon Oct 31, 2011 5:52 pm
by esgici
I can't see your pictures :(
Picture of unseen pictures :(
Picture of unseen pictures :(
PabloBA3101.JPG (73.37 KiB) Viewed 6289 times

Re: HMG 3.0.39

Posted: Mon Oct 31, 2011 6:17 pm
by Pablo César
Sorry Mr. Esgici, now I have attached images files for display proposes.

Re: HMG 3.0.39

Posted: Mon Oct 31, 2011 6:26 pm
by esgici
Pablo César wrote:...what do you suggest to me ?
My humble suggestion is: continue the way you like ;)

Re: HMG 3.0.39

Posted: Mon Oct 31, 2011 7:11 pm
by raumi75
I would like to suggest improving the documentation. The line
To create console/mixed mode apps. you only must add this line to your main .prg: HB_GT_WIN_DEFAULT
should either read

Code: Select all

To create console/mixed mode apps. you only must add this line to your main .prg: HB_GT_WIN_DEFAULT()
or

Code: Select all

To create console/mixed mode apps. you only must add this line to your main .prg: REQUEST HB_GT_WIN_DEFAULT
I prefer the "Request"-Variant. It is the same as in the SAMPLES Folder.

Re: HMG 3.0.39

Posted: Wed Mar 20, 2013 2:34 pm
by Hazael
Details are very important. A simple dot (.) can make the difference between what works and what doesn't.
Thank you for your care.