Page 1 of 1

Beginning to develop 1993 prg code to Windows

Posted: Tue Mar 04, 2014 7:11 pm
by gfrae
I have a complete Clipper application (.prg's) interfacing with .dbf databases that I wrote and successfully deployed in 1993. I now wish to reactivate that application. I have all the original .prg code and dbf structures. I need help to start this process in HMG. Is there a user manual and tutorials on how? I have tried to get started with HMG but no success.
George Rae - gfrae@comcast.net

Re: Beginning to develop 1993 prg code to Windows

Posted: Tue Mar 04, 2014 8:00 pm
by Javier Tovar
Hi gfrae,

Not long ago I started to meet HMG and what has helped me is to go running the examples that come with HMG / SAMPLES and reviewed the *. PRG and I made ​​an example to go see if I comprising examples.

Also find help on this: http://www.fivetechsoft.com/harbour-docs/harbour.html" onclick="window.open(this.href);return false;

http://harbourminigui.com/" onclick="window.open(this.href);return false;

or in the IDE Reference Menu / Help.


From what I've read in other post it is a matter of understanding that a "GET" is now a "TextBox" or a "SAY" is now a "Label" etc..

Posteala any questions in the forum and there will always be someone who can guide you. Always upload a complete example, together with its *. PRG's, *. DBF's, *. NTX, *. CDX, image, etc..

Cheers and Good Luck!

Re: Beginning to develop 1993 prg code to Windows

Posted: Tue Mar 04, 2014 8:18 pm
by Javier Tovar
Hello gfrae,

It is best to start with: or in the IDE Reference Menu / Help.

regards

Re: Beginning to develop 1993 prg code to Windows

Posted: Tue Mar 04, 2014 10:03 pm
by esgici
gfrae wrote:I have a complete Clipper application (.prg's) interfacing with .dbf databases that I wrote and successfully deployed in 1993. I now wish to reactivate that application. I have all the original .prg code and dbf structures. I need help to start this process in HMG. Is there a user manual and tutorials on how? I have tried to get started with HMG but no success.
George Rae - gfrae@comcast.net
Hello George

Welcome aboard :)

In addition to Javier's advices, I invite you to my humble blog.

Articles in Migration DOS to Windows section of How can I do page may be helpful to you.

Also there is a good example in this article of our friend Raumi.

A last note : Harbour reference of our friend Giovanni is the best for now :arrow:

Happy HMG'ing :D

Re: Beginning to develop 1993 prg code to Windows

Posted: Tue Mar 04, 2014 11:39 pm
by danielmaximiliano
Hello George

Welcome From Buenos Aires Argentina.

Re: Beginning to develop 1993 prg code to Windows

Posted: Wed Mar 05, 2014 5:48 am
by Rathinagiri
Hi,

Welcome to HMG Forum.

If you want to run the same application in text mode you can do so with the same existing clipper code provided if you had not used any external libraries.

If you want to convert the application to GUI mode, then you have to convert you code to HMG where ever there are user interface in your existing code.

Here we are to help you if you need anything in particular.

Re: Beginning to develop 1993 prg code to Windows

Posted: Wed Mar 05, 2014 12:21 pm
by serge_girard
George, Welcome from Belgium!

Serge

Re: Beginning to develop 1993 prg code to Windows

Posted: Sun Mar 23, 2014 12:30 pm
by Kamjani
I have also a complete Clipper application (.prg's) interfacing with .dbf databases from 1994 and now wish to reactivate that application. I have also all original .prg code and dbf structures , I have make new exe file with hb30 and I can read all from DBF files but when I try to add new records I have problem . I need help to start this program in HMG. I have try to get started with HMG but no success...any help pls..there is my contact email.
ecc.mjonuzi@gmail.com

Re: Beginning to develop 1993 prg code to Windows

Posted: Sun Mar 23, 2014 1:27 pm
by mustafa
Hello
Within HMG package ---> hmg.3.2 looking into folder \SAMPLES
compiled and if you do not use the IDE can compiled
directly with a Bat file from cmd (Dos) I normally do
Bat like this one -----> build.3.2.bat and put inside :

@ECHO OFF
call c:\hmg.3.2\build.bat main %*

1º main prg would my application ---> main.prg
ie as seal me inside the Bat but without extension example clientes.prg
output:
 
@ECHO OFF
call c:\hmg.3.2\build.bat clientes %*

in the main PRG always go

 # include " hmg.ch "
Function Main

followed by a main window example Form_1
 
 DEFINE WINDOW Form_1 ;
                AT 0,0 ;
WIDTH 500 HEIGHT 450;
TITLE " Hello World" ;
                BACKCOLOR { 211,218,236 } ;
MAIN NOMAXIMIZE

               KEY ACTION ON ESCAPE ThisWindow.Release

                @ 050 , 200 Label_1 LABEL VALUE ' Hello World' ;
               WIDTH 300 HEIGHT 18 FONT "Arial" SIZE 9 BOLD ITALIC BACKCOLOR {211,218,236 }

END WINDOW
       
WINDOW CENTER Form_1
            ACTIVATE WINDOW Form_1

Return

this would be the source code

Code: Select all


 #include "hmg.ch"
  Function Main
 
 DEFINE WINDOW Form_1                  ;  
             AT 0,0                              ;
	    WIDTH 500 HEIGHT 450         ;
	    TITLE  " Hello World"              ;
             BACKCOLOR { 211,218,236 } ;
	    MAIN NOMAXIMIZE         

             ON KEY ESCAPE ACTION ThisWindow.Release

@ 050, 200 LABEL Label_1 VALUE "Hello World" ;
               WIDTH 300 HEIGHT 18  FONT "Arial" SIZE 12 BOLD ITALIC BACKCOLOR  {211,218,236 }


 
@ 200,225 BUTTON Exit_Program            ;        
                CAPTION 'Exit'                     ;
                WIDTH 70 HEIGHT 63            ; 
                 ACTION  Form_1.Release 

END WINDOW

           CENTER WINDOW Form_1
           ACTIVATE WINDOW Form_1

Return Nil


Regars, Salam
Mustafa :D

Re: Beginning to develop 1993 prg code to Windows

Posted: Sun Mar 23, 2014 1:50 pm
by esgici
Kamjani wrote:I have also a complete Clipper application (.prg's) interfacing with .dbf databases from 1994 and now wish to reactivate that application. I have also all original .prg code and dbf structures , I have make new exe file with hb30 and I can read all from DBF files but when I try to add new records I have problem . I need help to start this program in HMG. I have try to get started with HMG but no success...any help pls..there is my contact email.
ecc.mjonuzi@gmail.com
Hi Kamjani

Welcome aboard :)

In addition to advices of our friend Mustafa, I repeat to you too above suggestions to George Rae.

Regarding .dbf file differences between Clipper and Harbour, I hope that this topic will give you an idea.

And please don't hesitate to ask anything, here we have too many resourceful and helpful friends 8-)

Happy HMG'ing :D