HMG 3.0.39

HMG announcements; Latest HMG-related news, releases, fixes and updates.

Moderator: Rathinagiri

User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG 3.0.39 - Console mode

Post 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 5845 times
Saludos

--

Esgici
Last edited by esgici on Mon Oct 31, 2011 2:51 pm, edited 1 time in total.
Viva INTERNATIONAL HMG :D
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: HMG 3.0.39

Post 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.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Re: HMG 3.0.39

Post 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 ?
Attachments
Screen2.PNG
Screen2.PNG (23.94 KiB) Viewed 5815 times
Screen1.PNG
Screen1.PNG (10.4 KiB) Viewed 5815 times
Last edited by Pablo César on Mon Oct 31, 2011 6:15 pm, edited 5 times in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG 3.0.39

Post by esgici »

I can't see your pictures :(
Picture of unseen pictures :(
Picture of unseen pictures :(
PabloBA3101.JPG (73.37 KiB) Viewed 5818 times
Viva INTERNATIONAL HMG :D
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Re: HMG 3.0.39

Post by Pablo César »

Sorry Mr. Esgici, now I have attached images files for display proposes.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG 3.0.39

Post by esgici »

Pablo César wrote:...what do you suggest to me ?
My humble suggestion is: continue the way you like ;)
Viva INTERNATIONAL HMG :D
User avatar
raumi75
Posts: 135
Joined: Wed Dec 17, 2008 2:31 am
Location: Lünen, Germany
Contact:

Re: HMG 3.0.39

Post 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.
User avatar
Hazael
Posts: 109
Joined: Thu Jun 24, 2010 11:37 am
Location: France

Re: HMG 3.0.39

Post 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.
Harbour | GTWVT | MingW | Visual Studio Code
Post Reply