Page 2 of 16

Re: HMG 3.1.1

Posted: Wed Dec 05, 2012 1:45 pm
by bpd2000
srvet_claudio wrote:
bpd2000 wrote:
mol wrote:BROWSE is not working in this hmg version.
It displays empty table always.
Marek
Yes not working
Please attach a simple example with all source files
Find attachment

Re: HMG 3.1.1

Posted: Wed Dec 05, 2012 2:01 pm
by srvet_claudio
bpd2000 wrote:Find attachment
Thanks, I'm going to test.

Re: HMG 3.1.1

Posted: Wed Dec 05, 2012 2:11 pm
by Pablo César
Yeap, strange: in Grids it is working normally.

Re: HMG 3.1.1

Posted: Wed Dec 05, 2012 5:40 pm
by srvet_claudio
mol wrote:BROWSE is not working in this hmg version.
It displays empty table always.
Hi Rathi.

The problem is in making library and not in the source code of HMG-UNICODE.3.1.1

I copied all the source code of HMG.3.1.1 in the folder SOURCE of HMG.3.1.0 and I rebuild the library whit HMG.3.1.0 and work fine.

On the other hand I copied the files hmg.hbp and hmg.hbc of HMG.3.1.0 in the folder of HMG.3.1.1 and rebuilt the library with HMG.3.1.1 but did not work.

In conclusion, I think the problem is in the Harbour compiler or MinGW compiler of the HMG.3.1.1

Best regards,
Claudio.

Re: HMG 3.1.1

Posted: Wed Dec 05, 2012 6:08 pm
by Rathinagiri
I think it should be Harbour because I found many dll files included in this Harbour version.

HMG 3.1.1

Posted: Wed Dec 05, 2012 11:00 pm
by Pablo César
Let me risk a tip: seems not be Harbour influence.
Look at this example in attached file.
There is on record with brazilian accents, but this is normal because was not treated with due code page or not been recorded in UNICODE mode.

This example was adapted from C:\hmg.3.1.1\samples\NETIO.01\NETIO.CLIENT\demo.prg

Re: HMG 3.1.1

Posted: Wed Dec 05, 2012 11:10 pm
by srvet_claudio
This a very simple example in Unicode (in japanese), but it generates a question: what are the functions in Harbour that support strings in UTF-8 to PRG level?, someone could list?
See the HMG_LEN and HMG_SUBSTR functions in the source code.
Best regards,
Claudio.

Re: HMG 3.1.1

Posted: Thu Dec 06, 2012 12:33 am
by Pablo César
We have to learn much of UNICODE diferances. I noted there is diferance in texts treaths.
Grids are diferent codes than browse. But in Grid was implemented TCHAR and HMG_parvc, e.g., but in h_browse.prg seems not. Sorry if I am commenting without knowledged, but for me there is something missing in h_browse.prg. Sorry, Claudio, seems you are alone in this. I have not enough knowledged to help you. Probably Mr. Roberto Lopez could help in this. Sorry if I am causing confusions. An I have to thank you for all you do specially for this new HMG in UNICODE. I belive we give a big step. Many things need to adjust, this takes time but I believe we are in good way.

Re: HMG 3.1.1

Posted: Thu Dec 06, 2012 1:05 am
by srvet_claudio
Pablo César wrote:We have to learn much of UNICODE diferances. I noted there is diferance in texts treaths.
Grids are diferent codes than browse. But in Grid was implemented TCHAR and HMG_parvc, e.g., but in h_browse.prg seems not. Sorry if I am commenting without knowledged, but for me there is something missing in h_browse.prg. Sorry, Claudio, seems you are alone in this. I have not enough knowledged to help you. Probably Mr. Roberto Lopez could help in this. Sorry if I am causing confusions. An I have to thank you for all you do specially for this new HMG in UNICODE. I belive we give a big step. Many things need to adjust, this takes time but I believe we are in good way.
I'm sorry Pablo but not, the transformation from one file of HMG to unicode just have to change the source file in C, in the PRG level only necessary to verify that the constants are right for Unicode. Also, HMG do not use the Browse function of the Harbour (like in your previous post), HMG creates a new Grid Control to simulate the Browse control. The source code of HMG.3.1.1 compiles and runs perfect with Hrabour compiler of the HMG.3.1.0.
Best regards,
Claudio.

Re: HMG 3.1.1

Posted: Thu Dec 06, 2012 1:15 am
by Pablo César
Claudio, compilé el ejemplo de BPD en HMG 3.1.0 y muestra todos los registros. Claro que con error de exibicion en los caracteres acentuados. Ya en la version 3.1.1 no exibe nada. Es algo para pensar, que no tiene a ver con Harbour, no le parece ?

--

Claudio, I compiled the example of BPD in HMG 3.1.0 and displays all records. Of course with exhibition in error accented characters. Now in version 3.1.1 display no records at all. It's something to be thinking about, I believe is nothing with Harbour, do not you think?