View unanswered posts | View active topics It is currently Mon Sep 22, 2014 2:12 pm



Reply to topic  [ 69 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next
HMG 3.0.41 
Author Message
User avatar

Joined: Wed Jul 30, 2008 9:17 pm
Posts: 3516
Location: iskenderun / Turkiye
Post Re: HMG 3.0.41 + Harbour 3.2.0dev (Rev. 17513) + msvc + [ /w
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 HMG :D
Feel free to communicate with me directly : esgici <at> gmail <dot> com
Viva Clipper !
Nobody is perfect but should work to be.


Thu May 31, 2012 6:20 pm
Profile WWW
User avatar

Joined: Sun May 27, 2012 9:33 pm
Posts: 165
Location: Brazil: Goiânia-GO.
Post Re: HMG 3.0.41
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


Thu May 31, 2012 6:56 pm
Profile
User avatar

Joined: Sun May 27, 2012 9:33 pm
Posts: 165
Location: Brazil: Goiânia-GO.
Post HMG 3.0.41: Compilling With MSVC: Success
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:

#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:

HB_FUNC ( SETGRIDQUERYDATA )
{
   char c [1024] ;

   strcpy ( c , hb_parc(2) ) ;

   {


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

   pDispInfo->item.pszText = c;

    }

}



Attachments:
File comment: .
.exe file built with Msvc
.
Hmg + Wvg
.

hmg_wvg.PNG
hmg_wvg.PNG [ 40.25 KiB | Viewed 1670 times ]

_________________
M., Ronaldo

By: IMATECH

Imation Tecnologia


Last edited by IMATECH on Tue Jun 05, 2012 4:25 pm, edited 1 time in total.

Thu May 31, 2012 10:02 pm
Profile
User avatar

Joined: Sun May 27, 2012 9:33 pm
Posts: 165
Location: Brazil: Goiânia-GO.
Post HMGSCRIPT 2012: Programming For The Web in The Right Way :)
Hello Sr.: Rathinagiri


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


Best regard's

_________________
M., Ronaldo

By: IMATECH

Imation Tecnologia


Last edited by IMATECH on Sat Jun 02, 2012 7:27 pm, edited 6 times in total.



Fri Jun 01, 2012 4:01 am
Profile
User avatar

Joined: Tue Jul 29, 2008 6:30 pm
Posts: 4243
Location: Sivakasi, India
Post Re: HMG 3.0.41
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.


Fri Jun 01, 2012 4:47 am
Profile YIM WWW
User avatar

Joined: Tue Jul 29, 2008 6:30 pm
Posts: 4243
Location: Sivakasi, India
Post Re: HMG 3.0.41
Thanks for the wonderful contribution. I will check and publish soon.

_________________
East or West HMG is the Best.
South or North HMG is worth.


Sat Jun 02, 2012 6:34 pm
Profile YIM WWW
User avatar

Joined: Sun May 27, 2012 9:33 pm
Posts: 165
Location: Brazil: Goiânia-GO.
Post Re: HMG 3.0.41
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:
#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:
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:
File comment: .
Job done (just testing):
.

HMG_3.0.42Dev_Beta_20120604_by_Imatech.rar [706.91 KiB]
Downloaded 141 times
File comment: TsBrowse: Just for tests and is Optional in [minigui.ch]
.
#define COMPILE_TBROWSE
.

RM_TsBrowse.PNG
RM_TsBrowse.PNG [ 201.25 KiB | Viewed 1735 times ]

_________________
M., Ronaldo

By: IMATECH

Imation Tecnologia
Sat Jun 02, 2012 7:30 pm
Profile
User avatar

Joined: Sun May 27, 2012 9:33 pm
Posts: 165
Location: Brazil: Goiânia-GO.
Post Re: HMG 3.0.41
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

_________________
M., Ronaldo

By: IMATECH

Imation Tecnologia


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



Tue Jun 05, 2012 1:20 am
Profile
User avatar

Joined: Tue Jul 29, 2008 6:30 pm
Posts: 4243
Location: Sivakasi, India
Post Re: HMG 3.0.41
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.


Tue Jun 05, 2012 5:36 am
Profile YIM WWW
User avatar

Joined: Thu Sep 11, 2008 5:31 am
Posts: 1789
Location: Myszków, Poland
Post Re: HMG 3.0.41
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.

_________________
Marek Olszewski
MOL-Systemy Komputerowe Marek Olszewski, Myszków, Polska
legginsy, leginsy, odzież damska XXL, bluzki


Tue Jun 05, 2012 5:48 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic 
 [ 69 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.