To who standing in front of the wall

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

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

To who standing in front of the wall

Post by esgici »

Maciek wrote:
...
So, now I'm just standing in front of the wall and got no idea what I did wrong if - in fact - I literally did nothing; just updated HMG).

So if could help - please help! I'm completly HMG newbie. With harbour I work since a year and with clipper since 1991 (with 6 years break).

In elder version of HMG, I found in a firm I work for (HMG: Harbour MiniGUI 1.0 (Build 108) - 2005.08.21, IDE: Harbour MiniGUI IDE 1.0 Build 016 - 2005.06.17) all works well.

With HMG.4 and HMG.OBJECTS I didn't work yet, so i got three questions: is there any manual for completly newbe? Does these ones comes with IDE? Where to start from with e.g. HMG.4?

Sincerely

Maciek Ciechoński
Hello Maciek

First, welcome aboard,

greeting from Turkiye :)

Second, please don't panic, here you are between friends :D

And third :

HMG.4 is a continuation of HMG OBJECTS and is in alpha (development) phase, not finished yet.

So you have download and use HMG 3.035, last stable version on HMG, from here.

This is a complete package, including IDE and documentation (yes, very helpful for newbies too :) ).

Happy HMG'ing :D

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
Maciek
Posts: 7
Joined: Fri Aug 27, 2010 8:05 am
Location: Warsaw, Poland

Re: To who standing in front of the wall

Post by Maciek »

Hi esgici!

Ok. No panic (done), get 3.035 (in progress), read docs (ToDo).
Thank You very much!

Regards

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

Re: To who standing in front of the wall

Post by esgici »

Maciek wrote: OK. Now I've just installed c:\hmg.3.035 and then made dir \proj\rampdf where
i got a project to be corrected. It consists of 2 prgs only, no forms or so.
After build i got an error:
...
hbmk\win\mingw\pdf.o:pdf.c:(.data+0x848): undefined reference to `HB_FUN_TREG32'
...
Lines in code (pdf.prg):
oReg := TReg32():New( HKEY_CLASSES_ROOT, cExt, .f. )
What to do?
Hi Maciek

As far as know there isn't a function named TREG32 in HMG nor Harbour :(

Probably you got this prg from another source.

I don't know you are aware or not, MiniGUI Extended and HMG are two separate projects.

I remember, in our forum some .pdf based discussions past. By using search feature of forum, I hope you will find some hints or helps.

By the way, working on special file formats like .pdf, isn't a bit high concepts for a newbie ?

In my humble opinion, beginning as far as simple samples will be better way for learning.

Happy HMG'ing :D

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
Maciek
Posts: 7
Joined: Fri Aug 27, 2010 8:05 am
Location: Warsaw, Poland

Re: To who standing in front of the wall

Post by Maciek »

esgici,

I got two prg files: rampdf.prg and pdf.prg. They both forms whole project.
In rampdf.prg (main module) i got main routine. There was 1 problem with it:
it included line "set procedure to pdf", so after first build with hmg3.35 I got list of information, e.g.
.hbmk\win\mingw\pdf.o:pdf.c:(.text+0x0): multiple definition of `HB_FUN_GETDEFAULTPRN'
.hbmk\win\mingw\rampdf.o:rampdf.c:(.text+0x0): first defined here
.hbmk\win\mingw\pdf.o:pdf.c:(.text+0x280): multiple definition of `HB_FUN_GETOPENCOMMAND'
.hbmk\win\mingw\rampdf.o:rampdf.c:(.text+0x2a0): first defined here

etc., so I removed line "set procedure to pdf", and after build there was left only this error meesage mentioned before.

This prg contains functions I don't know of which lib, if any... I'll send i to You, ok?

As for now I found Treg32() is a part of TREG class found in FiveWin... But I don't see over here (in my folders) any fivewin libs.

Strange thing is why that code compiles with old version of minigui and with new one generates an error.

Ha! I found a .bat file containg... looks like a script or what? I'll link it too, ok?

Thanks for the info about a difference between HMG and MiniGUIExtended - I just was not sure of that! :)

Of course I want to use HMG project in a way it's intended for, but *now* I *have to* make some changes to the code fellows made years ago and which lines first time I saw few hours ago, so...here's the catch.

Thanks in advance

Maciek

PS Attachement included: pdf_problem.zip, contains: -pdf.ch, pdf.prg, pdf.bat
Attachments
pdf_problem.zip
(20.02 KiB) Downloaded 258 times
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: To who standing in front of the wall

Post by esgici »

Maciek wrote: ...
As for now I found Treg32() is a part of TREG class found in FiveWin... But I don't see over here (in my folders) any fivewin libs.

Strange thing is why that code compiles with old version of minigui and with new one generates an error.

Ha! I found a .bat file containg... looks like a script or what? I'll link it too, ok?

Thanks for the info about a difference between HMG and MiniGUIExtended - I just was not sure of that! :)

Of course I want to use HMG project in a way it's intended for, but *now* I *have to* make some changes to the code fellows made years ago and which lines first time I saw few hours ago, so...here's the catch.
...
Maciek,

Most probably this is a MiniGUI Extended project, and sadly, I haven't sufficient knowledge about it :(

Relation between this two versions (there are more version of HMG), isn't one is older and other is newer; both are advancing in parallel and growing away from each other. So any project compiled in one of them may not compile-able with other, this is a normal result.

Regarding FiveWin, as far as I know it's a commercial product and HMG haven't any lib for it.

My humble suggestion is: please forget this job for now. Begin learning HMG at the beginning. After a very short time I'm sure that you will write your own pdf prg by starting from the scratch :)

Happy HMG'ing :D

Regards

--

Esgici

PS: By the way, this is weekend and most of our friends is out of forum (some of them prefers real friends to virtual ones ;) ). After Sunday may come a friend expert in MiniGUI extended, and may help you.
Viva INTERNATIONAL HMG :D
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: To who standing in front of the wall

Post by mol »

Hello Maciek!
I think you should wait for Grigori Filatov, who is expert and one of the authors of HMG Extented.
Maciek
Posts: 7
Joined: Fri Aug 27, 2010 8:05 am
Location: Warsaw, Poland

Re: To who standing in front of the wall

Post by Maciek »

Hi esgici and Marek!

Thanks for Your infos and advices! I think it's really better to me to know HMG from scratch and so i'll do.
I thought if i get old version of HMG and that code links with it well, I'll just make necessary changes and use old HMG for just that pdf stuff.

Regards

Maciek

PS I've left a hanging session on this forum on saturday, so if it's not allowed here - I apologize. Just had to leave in a hurry.
Post Reply