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