HMG 3.3.1 (Stable)

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

User avatar
tonton2
Posts: 444
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: HMG 3.3.1 (Stable)

Post by tonton2 »

Bonsoir tout le monde,
in the new compilation it appears the following errors
Harbour 3.2.0dev (r1407111333)
Copyright (c) 1999-2014, http://harbour-project.org/
C:\hmg.3.3.1\24_09_2014_GESTION_HMG\gestion_reelle1\gestion.prg:847:0: warning: "_WIN32_WINNT" redefined [enabled by default]
c:\hmg.3.3.1\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/windef.h:20:0: note: this is the location of the previous definition
C:/hmg.3.3.1/lib/libhmg.a(c_windows.o):c_windows.c:(.text+0x1ff0): multiple definition of `HB_FUN_GETDESKTOPREALTOP'
C:/Users/youcef/AppData/Local/Temp/hbmk_74o42l.dir/gestion.o:gestion.c:(.text+0x990): first defined here
C:/hmg.3.3.1/lib/libhmg.a(c_windows.o):c_windows.c:(.text+0x2030): multiple definition of `HB_FUN_GETDESKTOPREALLEFT'
C:/Users/youcef/AppData/Local/Temp/hbmk_74o42l.dir/gestion.o:gestion.c:(.text+0x9d0): first defined here
C:/hmg.3.3.1/lib/libhmg.a(c_windows.o):c_windows.c:(.text+0x2070): multiple definition of `HB_FUN_GETDESKTOPREALWIDTH'
C:/Users/youcef/AppData/Local/Temp/hbmk_74o42l.dir/gestion.o:gestion.c:(.text+0xa10): first defined here
C:/hmg.3.3.1/lib/libhmg.a(c_windows.o):c_windows.c:(.text+0x20b0): multiple definition of `HB_FUN_GETDESKTOPREALHEIGHT'
C:/Users/youcef/AppData/Local/Temp/hbmk_74o42l.dir/gestion.o:gestion.c:(.text+0xa50): first defined here
collect2: ld returned 1 exit status
hbmk2[gestion]: Error: Running linker. 1
gcc.exe C:/Users/youcef/AppData/Local/Temp/hbmk_74o42l.dir/gestion.o
Merci beaucoup pour le travail que vous fournissez
L'Algerie vous salut
Y.TABET
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG 3.3.1 (Stable)

Post by srvet_claudio »

tonton2 wrote:Bonsoir tout le monde,
in the new compilation it appears the following errors
Harbour 3.2.0dev (r1407111333)
Copyright (c) 1999-2014, http://harbour-project.org/
C:\hmg.3.3.1\24_09_2014_GESTION_HMG\gestion_reelle1\gestion.prg:847:0: warning: "_WIN32_WINNT" redefined [enabled by default]
c:\hmg.3.3.1\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/windef.h:20:0: note: this is the location of the previous definition
C:/hmg.3.3.1/lib/libhmg.a(c_windows.o):c_windows.c:(.text+0x1ff0): multiple definition of `HB_FUN_GETDESKTOPREALTOP'
C:/Users/youcef/AppData/Local/Temp/hbmk_74o42l.dir/gestion.o:gestion.c:(.text+0x990): first defined here
C:/hmg.3.3.1/lib/libhmg.a(c_windows.o):c_windows.c:(.text+0x2030): multiple definition of `HB_FUN_GETDESKTOPREALLEFT'
C:/Users/youcef/AppData/Local/Temp/hbmk_74o42l.dir/gestion.o:gestion.c:(.text+0x9d0): first defined here
C:/hmg.3.3.1/lib/libhmg.a(c_windows.o):c_windows.c:(.text+0x2070): multiple definition of `HB_FUN_GETDESKTOPREALWIDTH'
C:/Users/youcef/AppData/Local/Temp/hbmk_74o42l.dir/gestion.o:gestion.c:(.text+0xa10): first defined here
C:/hmg.3.3.1/lib/libhmg.a(c_windows.o):c_windows.c:(.text+0x20b0): multiple definition of `HB_FUN_GETDESKTOPREALHEIGHT'
C:/Users/youcef/AppData/Local/Temp/hbmk_74o42l.dir/gestion.o:gestion.c:(.text+0xa50): first defined here
collect2: ld returned 1 exit status
hbmk2[gestion]: Error: Running linker. 1
gcc.exe C:/Users/youcef/AppData/Local/Temp/hbmk_74o42l.dir/gestion.o
Merci beaucoup pour le travail que vous fournissez
In your file gestion.c eliminates the functions GETDESKTOPREALTOP, GETDESKTOPREALLEFT, GETDESKTOPREALWIDTH and GETDESKTOPREALHEIGHT, these functions are parts of HMG.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

HMG 3.3.1 (Stable)

Post by Pablo César »

srvet_claudio wrote:..//.. the functions GETDESKTOPREALTOP, GETDESKTOPREALLEFT, GETDESKTOPREALWIDTH and GETDESKTOPREALHEIGHT, these functions are parts of HMG.
That's means you have already implemented synthesized way for windows creation in full screen by default ?
In other words, now we can just to DEFINE WINDOW without row, col, width and height parameters then it will be considered at full screen windowed according Desktop sizes.
Screen1.png
Screen1.png (12.74 KiB) Viewed 4713 times
Once again, thanks Claudio !
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: HMG 3.3.1 (Stable)

Post by bpd2000 »

srvet_claudio wrote:..//.. the functions GETDESKTOPREALTOP, GETDESKTOPREALLEFT, GETDESKTOPREALWIDTH and GETDESKTOPREALHEIGHT, these functions are parts of HMG.
Thank you Dr. Claudio for nice improvement, it is really simplified
BPD
Convert Dream into Reality through HMG
User avatar
tonton2
Posts: 444
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: HMG 3.3.1 (Stable)

Post by tonton2 »

merci beaucoup Dr Claudio
L'Algerie vous salut
Y.TABET
User avatar
serge_girard
Posts: 3165
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: HMG 3.3.1 (Stable)

Post by serge_girard »

Thanks Claudio !

Serge
There's nothing you can do that can't be done...
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: HMG 3.3.1 (Stable)

Post by mol »

My clients say my application is very slow after last release.
It's caused of GRID control, I think.
A lot of variants causes this control is slow. Maybe leak of memory? I can't find where real problem lays.

Is it the way to build simplified grid control to speed up browsing dbf tables?

Everything worked fine in hmg 3.2 or even 3.3.0.
I can't roll up to old hmg because of pdf generating.
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: HMG 3.3.1 (Stable)

Post by mol »

I found strange behaviour of virtual grid - OnQueryData is fired everytime when mouse moves over grid - without changing anything. Is it right?
Try this little sample:

Code: Select all

/*
* HMG Virtual Grid Demo
* (c) 2003 Roberto Lopez
*/

#include "hmg.ch"

Function Main
	private nCounter := 0
	
	DEFINE WINDOW Form_1 ;
		AT 0,0 ;
		WIDTH 450 ;
		HEIGHT 400 ;
		TITLE 'Grid test' ;
		MAIN 

		DEFINE MAIN MENU
		
		@ 10,10 GRID Grid_1 ;
		WIDTH 170 ;
		HEIGHT 330 ;
		HEADERS {'Column 1'} ;
		WIDTHS {140};
		VIRTUAL ;
		ITEMCOUNT 3 ;
		ON QUERYDATA QueryTest() 
		
		@ 10,200 Label L1 ;
			Width 200 ;
			Height 20 ;
			value "Count of QueryData"
		@ 30,200 TEXTBOX Counter ;
			Width 100 ;
			Height 20 ;
			NUMERIC
			value 0

	END WINDOW

	CENTER WINDOW Form_1

	ACTIVATE WINDOW Form_1

Return

Procedure QueryTest()

	This.QueryData := Str ( This.QueryRowIndex )
	//msgdebug("Row is: "+ Str ( This.QueryRowIndex ))

	Form_1.Counter.Value := ++nCounter
Return
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG 3.3.1 (Stable)

Post by srvet_claudio »

mol wrote:I found strange behaviour of virtual grid - OnQueryData is fired everytime when mouse moves over grid - without changing anything. Is it right?
Try this little sample:

Code: Select all

/*
* HMG Virtual Grid Demo
* (c) 2003 Roberto Lopez
*/

#include "hmg.ch"

Function Main
	private nCounter := 0
	
	DEFINE WINDOW Form_1 ;
		AT 0,0 ;
		WIDTH 450 ;
		HEIGHT 400 ;
		TITLE 'Grid test' ;
		MAIN 

		DEFINE MAIN MENU
		
		@ 10,10 GRID Grid_1 ;
		WIDTH 170 ;
		HEIGHT 330 ;
		HEADERS {'Column 1'} ;
		WIDTHS {140};
		VIRTUAL ;
		ITEMCOUNT 3 ;
		ON QUERYDATA QueryTest() 
		
		@ 10,200 Label L1 ;
			Width 200 ;
			Height 20 ;
			value "Count of QueryData"
		@ 30,200 TEXTBOX Counter ;
			Width 100 ;
			Height 20 ;
			NUMERIC
			value 0

	END WINDOW

	CENTER WINDOW Form_1

	ACTIVATE WINDOW Form_1

Return

Procedure QueryTest()

	This.QueryData := Str ( This.QueryRowIndex )
	//msgdebug("Row is: "+ Str ( This.QueryRowIndex ))

	Form_1.Counter.Value := ++nCounter
Return
Hi Marek
Yes it is normal, it is the Window System that calls OnQuery "when necessary".
mol wrote:My clients say my application is very slow after last release.
It's caused of GRID control, I think.
A lot of variants causes this control is slow. Maybe leak of memory? I can't find where real problem lays.

Is it the way to build simplified grid control to speed up browsing dbf tables?
You can send me (srvet@adinet.com.uy) a small example with a large database.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

HMG 3.3.1 (Stable)

Post by Pablo César »

I made this test:

Code: Select all

#include <hmg.ch>

Function Main()
MsgInfo(GetCurrentFolder())
Return Nil
This display the current folder. This ok.

But when I try with this:

Code: Select all

#include <hmg.ch>

Function Main()
cLogFile:=GetFile( { {'Error','*.log'},{'Build','*.log'} }, "Open building log error" ) /* need to be selected file at another folder */

MsgInfo(GetCurrentFolder())
Return Nil
Then I receive display of another folder (same it was choosen at GetFile), not displaying the current folder... :shock: :o

So I have to use cFilePath( ExeName() ) to ensure the correct result for el CurrentFolder. :(

I do not know if this behaviour is normal or it is a bug in GetFile function.

Is this normal Claudio ?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply