CONVERSION OF CLIPPER CONSOLE APPLICATION TO HMG CONSOLE APP

HMG Samples and Enhancements

Moderator: Rathinagiri

User avatar
danielmaximiliano
Posts: 2118
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 144 times
Been thanked: 20 times
Contact:

Re: CONVERSION OF CLIPPER CONSOLE APPLICATION TO HMG CONSOLE

Post by danielmaximiliano » Thu Oct 03, 2013 1:58 pm

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

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

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

Post by manoj_duamzn » Sat Oct 05, 2013 2:12 am

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

Post by manoj_duamzn » Sat Oct 05, 2013 2:14 am

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

Post by manoj_duamzn » Sat Oct 05, 2013 2:16 am

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: 218
Joined: Tue May 19, 2009 7:10 am
Been thanked: 9 times

Post by jayadevu » Sat Oct 05, 2013 5:47 am

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

Post by manoj_duamzn » Sat Oct 05, 2013 2:31 pm

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: 218
Joined: Tue May 19, 2009 7:10 am
Been thanked: 9 times

Post by jayadevu » Sun Oct 06, 2013 10:05 am

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

LOUIS
Posts: 140
Joined: Tue Dec 11, 2012 9:05 pm

Post by LOUIS » Sat Aug 02, 2014 6:42 pm

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
Has thanked: 1 time
Been thanked: 2 times

Post by Javier Tovar » Sat Aug 02, 2014 8:36 pm

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

Post Reply