HMG 3.0.41

HMG announcements; Latest HMG-related news, releases, fixes and updates.

Moderator: Rathinagiri

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

Re: HMG 3.0.41 + Harbour 3.2.0dev (Rev. 17513) + msvc + [ /w

Post by esgici »

Chacal.GO wrote:Hello Friends...
...
Then I have discovered that will need many changes in source to have succes on this build...
...
Somebody can see if this is really needed for improving HMG sources?
Did you tried inspecting compiler (HBMK) switchs ?

Such as -w3 and / or -nowarn ?

Or simply using HMG-IDE ?

Happy HMG'ing 8-)

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
IMATECH
Posts: 188
Joined: Sun May 27, 2012 9:33 pm
Location: Brazil: Goiânia-GO.

Re: HMG 3.0.41

Post by IMATECH »

Hello Sr.: Esgici

Yes: The Warnings error's are just because I have set all warnigs to w1...

The objetive is to force/set implicit declare of all var's in all sources of the LIB

Then I think this will be a good improvement for next revisions...


Best regards...
M., Ronaldo

By: IMATECH

Imation Tecnologia
User avatar
IMATECH
Posts: 188
Joined: Sun May 27, 2012 9:33 pm
Location: Brazil: Goiânia-GO.

HMG 3.0.41: Compilling With MSVC: Success

Post by IMATECH »

C:\HMG>buildlib_msvc.bat

Setting environment for using Microsoft Visual Studio 2010 x86 tools.

hbmk2: Processando opções do ambiente: -compiler=msvc
hbmk2: Compilando...

... warning messages ...c

hbmk2: Criando biblioteca estáticas... lib\hmg.lib

*------------------------------------------------*
* Build Success
*------------------------------------------------*


*------------------------------------------------*
* hbwinole.h must be in \include
*------------------------------------------------*
hbwinole.h

*------------------------------------------------*
* Changes needed on file: c_toolbar.c
*------------------------------------------------*
Added code on line 70: #ifdef __GNUC__
Added code on line 88: #endif

Code: Select all


#ifdef __GNUC__

typedef struct _TBBUTTONINFOA {
    UINT  cbSize;
    DWORD  dwMask;
    int  idCommand;
    int  iImage;
    BYTE  fsState;
    BYTE  fsStyle;
    WORD  cx;
    DWORD_PTR  lParam;
    LPSTR  pszText;
    int  cchText;
#if (_WIN32_WINNT >= 0x0600)
    int  iImageLabel;
#endif
} TBBUTTONINFOA,  *LPTBBUTTONINFOA;

#endif



*------------------------------------------------*
* Changes needed on file: c_windows.c
*------------------------------------------------*
Added code on line 1090: {
Added code on line 1097: }

Code: Select all


HB_FUNC ( SETGRIDQUERYDATA )
{
	char c [1024] ;

	strcpy ( c , hb_parc(2) ) ;

	{


	LV_DISPINFO* pDispInfo = (LV_DISPINFO*)hb_parnl(1);

	pDispInfo->item.pszText = c;

    }

}

Attachments
.<br />.exe file built with Msvc<br />.<br />Hmg + Wvg<br />.
.
.exe file built with Msvc
.
Hmg + Wvg
.
hmg_wvg.PNG (40.25 KiB) Viewed 6371 times
Last edited by IMATECH on Tue Jun 05, 2012 4:25 pm, edited 1 time in total.
M., Ronaldo

By: IMATECH

Imation Tecnologia
User avatar
IMATECH
Posts: 188
Joined: Sun May 27, 2012 9:33 pm
Location: Brazil: Goiânia-GO.

HMGSCRIPT 2012: Programming For The Web in The Right Way :)

Post by IMATECH »

Hello Sr.: Rathinagiri


How can I send HMG 3.x improvements to You ( or SVN )...


Best regard's
Last edited by IMATECH on Sat Jun 02, 2012 7:27 pm, edited 6 times in total.
M., Ronaldo

By: IMATECH

Imation Tecnologia
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG 3.0.41

Post by Rathinagiri »

Hi,

It will definitely be a great contribution to the project.

You can zip the modified source code and upload here itself.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG 3.0.41

Post by Rathinagiri »

Thanks for the wonderful contribution. I will check and publish soon.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
IMATECH
Posts: 188
Joined: Sun May 27, 2012 9:33 pm
Location: Brazil: Goiânia-GO.

Re: HMG 3.0.41

Post by IMATECH »

Hello Sr.: Rathinagiri





New updates done (Just testing)...





Now Hmg can compile all libs with mingw/msvc...





Optional:

TsBrowse 7 Added: Thanks to Grigory Filatov

To enable/disable it:
Just edit minigui.ch and comment/uncomment the line
#define COMPILE_TBROWSE




About this Work:
I have switched all warnings to w1 (force implicit var declaration), and made minor changes in source code only for declare some true local var (all changes documented in souce code)...
The core of HMG is perfec: just a few lines added...

Result := All lib's will compile with warning level 1 -w1




Objective:
The objetive os this work is only to prepare HMG for my personal use and dont reflect nothing on future releases...
Except the two adjusts that make HMG compatible with Msvc


*------------------------------------------------*
* Changes needed on file: c_toolbar.c
*------------------------------------------------*
Added code on line 70: #ifdef __GNUC__
Added code on line 88: #endif

Code: Select all

#ifdef __GNUC__

typedef struct _TBBUTTONINFOA {
    UINT  cbSize;
    DWORD  dwMask;
    int  idCommand;
    int  iImage;
    BYTE  fsState;
    BYTE  fsStyle;
    WORD  cx;
    DWORD_PTR  lParam;
    LPSTR  pszText;
    int  cchText;
#if (_WIN32_WINNT >= 0x0600)
    int  iImageLabel;
#endif
} TBBUTTONINFOA,  *LPTBBUTTONINFOA;

#endif

*------------------------------------------------*
* Changes needed on file: c_windows.c
*------------------------------------------------*
Added code on line 1090: {
Added code on line 1093: }

Code: Select all

HB_FUNC ( SETGRIDQUERYDATA )
{
   char c [1024] ;
   strcpy ( c , hb_parc(2) ) ;
   {
   LV_DISPINFO* pDispInfo = (LV_DISPINFO*)hb_parnl(1);
   pDispInfo->item.pszText = c;
    }
}




This release (if acepted) is only a minor revision to HMG, maybe 3.0.42 !!!




Compressed sources in rar format atached (updated 2012.06.04 20:00 - GMT-3 )...




Best regard's



*** Updates made over HMG 3.0.41


*** I have changed many .bat files only for my purpose: please adjust as HMG needs...


*** In samples: .bat and .hbp to compile projects with mingw/msvc
*** Samples updated: TsBrowse tested and working good...




*** Build's with Msvc are soo fast :)
*** .exe files too
Attachments
HMG_3.0.42Dev_Beta_20120604_by_Imatech.rar
.
Job done (just testing):
.
(706.91 KiB) Downloaded 451 times
TsBrowse: Just for tests and is Optional in [minigui.ch]<br />.<br />#define COMPILE_TBROWSE<br />.
TsBrowse: Just for tests and is Optional in [minigui.ch]
.
#define COMPILE_TBROWSE
.
RM_TsBrowse.PNG (201.25 KiB) Viewed 6436 times
M., Ronaldo

By: IMATECH

Imation Tecnologia
User avatar
IMATECH
Posts: 188
Joined: Sun May 27, 2012 9:33 pm
Location: Brazil: Goiânia-GO.

Re: HMG 3.0.41

Post by IMATECH »

Hello Rathi :)




I have made another change in my last post... deleted file... and added a new attachment with minimum changes in HMG core...

Because I have discovered many errors which my changes produce to existing projects (especially print system)...

After restart my updates from Zero... I propose just a minimum changes to make HMG become compatible with Msvc... with no any changes for users...





Best Regards
Last edited by IMATECH on Tue Jun 05, 2012 3:38 pm, edited 1 time in total.
M., Ronaldo

By: IMATECH

Imation Tecnologia
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG 3.0.41

Post by Rathinagiri »

IMHO, source optimization helps a lot but modifying an existing project by the users will be cumbersome. I think while compiling our projects we can change the warning level appropriately. Right?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: HMG 3.0.41

Post by mol »

Possibilities of TSBrowse look very impressive.

To Rathi:
could you prepare hmg version with sbrowse included?
I want to test it, but I'm not too familiar to build whole hmg.
Post Reply