CONVERSION OF CLIPPER CONSOLE APPLICATION TO HMG CONSOLE APP

HMG Samples and Enhancements

Moderator: Rathinagiri

User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: CONVERSION OF CLIPPER CONSOLE APPLICATION TO HMG CONSOLE

Post by danielmaximiliano »

manoj_duamzn wrote:Dear Serge_girard
First of All thanks for your quick replay. In this regard I have to say that it is my small application of 9 prg which I can merge in one prg but like this I have many application which have about 100 prgs. Which is not possible to merge them in one prg. So kindly tell me Is another way to build HMG console application. I want to convert it into HMG because I want to take benefits some command which is not supporting in Harbour.

My first requirment is to print on USB port printer. Kindly help me in this problem.

Dear jayadevu I request you to kindly send me generic text2gdi converter and also hint me how to use it.

Dear danielmaximiliano you have sugesst me to use NET USE LPT command. But it redirect print job to network printer not on local printer. Is it works for local printer then tell me the process.

Beside this I want to ask that I use ESC codes for DMP printer. Is they will run on LASER printer.

I am waiting all of your's support.
un buen modo es mirar los ejemplos que vienen en HMG para seleccionar una impresora en Windows.
a good way is to look at the examples that come in HMG to select a printer in Windows.
C:\hmg.3.1.5\SAMPLES\EXTERNAL.WINDOWS\REPORT
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
manoj_duamzn
Posts: 21
Joined: Fri Aug 30, 2013 5:38 am

Re: CONVERSION OF CLIPPER CONSOLE APPLICATION TO HMG CONSOLE

Post by manoj_duamzn »

serge_girard wrote:Manoj,

In SLIP.PRG:
SET PROC TO COMMAN
SET PROC TO HELPFILE

and in SLIP.HBP:
slip.prg
<remove other prg>

Succes and greetings,

Serge
Serge I tried as you guide me above but there are following error

hbmk2: Processing configuration: C:\HMG30~1.22\harbour\bin\hbmk.cfg
Harbour 2.0.0 (Rev. 13372)
Copyright (c) 1999-2010, http://www.harbour-project.org/" onclick="window.open(this.href);return false;
Cannot open STBOX.prg, assumed external
Cannot open YESNO.prg, assumed external
Cannot open IND.prg, assumed external
Cannot open MSG.prg, assumed external
Cannot open SMSG.prg, assumed external
Cannot open PRNTEST.prg, assumed external
Cannot open REPHEAD.prg, assumed external
Cannot open STBOX.prg, assumed external
Cannot open IND.prg, assumed external
Cannot open SMSG.prg, assumed external
Cannot open YESNO.prg, assumed external
Cannot open STBOX.prg, assumed external
Cannot open YESNO.prg, assumed external
Cannot open MSG.prg, assumed external
Cannot open STBOX.prg, assumed external
Cannot open SMSG.prg, assumed external
Cannot open PRNTEST.prg, assumed external
Cannot open MSG.prg, assumed external
Cannot open REPHEAD.prg, assumed external
Cannot open STBOX.prg, assumed external
Cannot open YESNO.prg, assumed external
Cannot open SMSG.prg, assumed external
Cannot open COMPRPL.prg, assumed external
Cannot open INST.prg, assumed external
Cannot open MSG.prg, assumed externa

You said me to remove other prg from slip.hbp but how they will compile. I remove comman.prg & helpfile.prg from slip.hbp and try to build but there are no success. I can not merge prg files because there are many big application like this which I have to compile after this success.
manoj_duamzn
Posts: 21
Joined: Fri Aug 30, 2013 5:38 am

Re: CONVERSION OF CLIPPER CONSOLE APPLICATION TO HMG CONSOLE

Post by manoj_duamzn »

danielmaximiliano wrote:
manoj_duamzn wrote:Dear Serge_girard
First of All thanks for your quick replay. In this regard I have to say that it is my small application of 9 prg which I can merge in one prg but like this I have many application which have about 100 prgs. Which is not possible to merge them in one prg. So kindly tell me Is another way to build HMG console application. I want to convert it into HMG because I want to take benefits some command which is not supporting in Harbour.

My first requirment is to print on USB port printer. Kindly help me in this problem.

Dear jayadevu I request you to kindly send me generic text2gdi converter and also hint me how to use it.

Dear danielmaximiliano you have sugesst me to use NET USE LPT command. But it redirect print job to network printer not on local printer. Is it works for local printer then tell me the process.

Beside this I want to ask that I use ESC codes for DMP printer. Is they will run on LASER printer.

I am waiting all of your's support.
un buen modo es mirar los ejemplos que vienen en HMG para seleccionar una impresora en Windows.
a good way is to look at the examples that come in HMG to select a printer in Windows.
C:\hmg.3.1.5\SAMPLES\EXTERNAL.WINDOWS\REPORT
Dear danielmaximiliano

Tell me how can I give printout on local dot matrix printer EPSON-LX 300+ through NET USE LPT command because it works only for network printer
manoj_duamzn
Posts: 21
Joined: Fri Aug 30, 2013 5:38 am

Re: CONVERSION OF CLIPPER CONSOLE APPLICATION TO HMG CONSOLE

Post by manoj_duamzn »

jayadevu wrote:Hi,
To print to USB printers, it is not necessary to convert your application to HMG. If you are interested, I can send you a generic text2gdi converter, which you can easily modify to suit your requirments.

HTH,

Warm regards,

Jayadev
Dear Jayadev
I am waiting for your text2gdi converter
jayadevu
Posts: 238
Joined: Tue May 19, 2009 7:10 am

Re: CONVERSION OF CLIPPER CONSOLE APPLICATION TO HMG CONSOLE

Post by jayadevu »

Hi,
Please send me a mail at ujayadev_@_gmail.com (remove the underscores).

Warm regards,

Jayadev
manoj_duamzn
Posts: 21
Joined: Fri Aug 30, 2013 5:38 am

Re: CONVERSION OF CLIPPER CONSOLE APPLICATION TO HMG CONSOLE

Post by manoj_duamzn »

jayadevu wrote:Hi,
Please send me a mail at ujayadev_@_gmail.com (remove the underscores).

Warm regards,

Jayadev
Dear jayadevu
Many Many thanks to you for your cooperation. I found the file but when I open this file in notepad it is non-readable. Tell me in which program is opened In notepad After Second Line is starting on completion of first line (i.e. all text is in running matter)
jayadevu
Posts: 238
Joined: Tue May 19, 2009 7:10 am

Re: CONVERSION OF CLIPPER CONSOLE APPLICATION TO HMG CONSOLE

Post by jayadevu »

Hi Manoj,

Pls check your mail. I have sent the file in zip format, extract and use.

If there is a problem, please send a mail to my gmail ID given earlier and I shall upload the file in dropbox and send u the link.

Warm regards,

Jayadev
User avatar
LOUIS
Posts: 202
Joined: Tue Dec 11, 2012 9:05 pm
DBs Used: DBF

Re: CONVERSION OF CLIPPER CONSOLE APPLICATION TO HMG CONSOLE

Post by LOUIS »

Hi Manoj

I print in my pc with usb with a .bat inserted in INICIO BUTTON of Windows thus:

*-------------------------------------------------------------------
NET USE LPT1 /DELETE

NET USE LPT1: \\MyMachine\MyPrinter /PERSISTENT:YES <--- FOR XP

NET USE LPT1: \\MyMachine\MyPrinter /YES <--- FOR W7
*-------------------------------------------------------------------

Where MyPrinter is the name given to the share !

:D
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: CONVERSION OF CLIPPER CONSOLE APPLICATION TO HMG CONSOLE

Post by Javier Tovar »

Creo que es mejor tarde que nunca... ;)
Post Reply