HMG-IDE 3.0.0 (Forum test VI)

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

Moderator: Rathinagiri

User avatar
Roberto Lopez
HMG Founder
Posts: 3980
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Re: HMG-IDE 3.0.0 (Forum test VI)

Post by Roberto Lopez » Sun Oct 18, 2009 5:19 pm

Vanguarda wrote:
@echo off
rem ***************************************************************************
rem HMG 3.0 Build batch
rem Roberto Lopez (2009.10.16)
rem Syntax:
<...>
Hello Master,

Well, i replace the build.bat for this code and it work fine.
The process of compilation is very fast. I had compile a project with 14 files.PRG (with approximately 800 lines each) and 18 files.FMG and the IDE compile it in 8 Seconds.

I´ve a CELERON with 3.06Ghz, with 1 GB memory RAM, with 1 MB of CACHE. It not DUAL CORE.



My resource file is empty because this new version of the HMG-IDE change the mode of using resource file. In old version the resource file called MAIN.RC, in this the resource file called <projectname>.RC, or i´m wrong?

I´ve a little doubt, i have that recompile the libs created with the old version of harbour+MinGW, for that this work on this new version of HMG?


Sorry my poor english.


With best Regards,
You are right.

Now, exe basename is the same as project and resource basenames.

I'll write a little document about that when the work be finished.

Build process is notably faster.

If someone can do benchmarks about program execution, will be greatly appreciated.

Finally: yes, the libraries should be recompiled

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
Roberto Lopez
HMG Founder
Posts: 3980
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Post by Roberto Lopez » Sun Oct 18, 2009 5:28 pm

mol wrote:Any changes :-(
replace the HBMK2 lines with:

Code: Select all

rem ***************************************************************************
rem invoke HBMK2
rem ***************************************************************************

redir -eo  hbmk2 -nohbc -o%~n1.exe %GT% %DEBUG% -head=real %BUILDTYPE% %REBUILDALL% -incpath=%HmgPath%\include -incpath=%CD% -L%HmgPath%\lib -lminigui -lhbmysql -lmysql -lcrypt -ledit -leditex -lgraph -lini -lreport -lhbwin -lhbziparc -lhbmzip -lmsvfw32 -lvfw32 -lsddodbc -lrddsql -lsddmy -lhbodbc -lodbc32 -lhbhpdf -lhbvpdf -lhbmemio -lhbsqlit3 -lsqlite3 -lhbfimage.a -lhbpgsql -lpq -lhbtip -lhbct -prgflag=/q %1 %2 %3 %4 %5 %6 %7 %8 %9 %Resources%  >hbmk.log

goto end
I've only added:

Code: Select all

-lhbct
Maybe something more should be changed yet.

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
esgici
Posts: 4513
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 389 times
Been thanked: 111 times
Contact:

Post by esgici » Sun Oct 18, 2009 5:29 pm

rathinagiri wrote: Diwali is a famous Indian festival. 'Light' is given more importance for this festival.
Hi Rathi

I don't know how I can celebrate your festival.

But I know "light" is common high value in almost all culture.

So I wish hearty brighter days for whole world, in real peace and happiness. :)

Regards

--

Esgici
Viva INTERNATIONAL HMG :D

User avatar
Roberto Lopez
HMG Founder
Posts: 3980
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Post by Roberto Lopez » Sun Oct 18, 2009 5:40 pm

mol wrote:Any changes :-(
And I've catched this too:

W32_REGREAD
W32_REGWRITE

was renamed to:

WIN_REGREAD
WIN_REGWRITE

So, i_pseudofunc.ch should be changed to:

Code: Select all

/*----------------------------------------------------------------------------
 MINIGUI - Harbour Win32 GUI library source code

 Copyright 2002-2009 Roberto Lopez <harbourminigui@gmail.com>
 http://harbourminigui.googlepages.com/

 This program is free software; you can redistribute it and/or modify it under 
 the terms of the GNU General Public License as published by the Free Software 
 Foundation; either version 2 of the License, or (at your option) any later 
 version. 

 This program is distributed in the hope that it will be useful, but WITHOUT 
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

 You should have received a copy of the GNU General Public License along with 
 this software; see the file COPYING. If not, write to the Free Software 
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (or 
 visit the web site http://www.gnu.org/).

 As a special exception, you have permission for additional uses of the text 
 contained in this release of Harbour Minigui.

 The exception is that, if you link the Harbour Minigui library with other 
 files to produce an executable, this does not by itself cause the resulting 
 executable to be covered by the GNU General Public License.
 Your use of that executable is in no way restricted on account of linking the 
 Harbour-Minigui library code into it.

 Parts of this project are based upon:

	"Harbour GUI framework for Win32"
 	Copyright 2001 Alexander S.Kresin <alex@belacy.belgorod.su>
 	Copyright 2001 Antonio Linares <alinares@fivetech.com>
	www - http://www.harbour-project.org

	"Harbour Project"
	Copyright 1999-2003, http://www.harbour-project.org/

	"WHAT32"
	Copyright 2002 AJ Wos <andrwos@aust1.net> 

	"HWGUI"
  	Copyright 2001-2007 Alexander S.Kresin <alex@belacy.belgorod.su>

---------------------------------------------------------------------------*/
#translate IsControlDefined ( <ControlName> , <FormName> ) ;
=> ;
_IsControlDefined ( <"ControlName"> , <"FormName"> )

#translate IsWIndowActive ( <FormName> ) ;
=> ;
_IsWIndowActive ( <"FormName"> ) 

#translate IsWindowDefined ( <FormName> ) ;
=> ;
_IsWindowDefined ( <"FormName"> )

#translate RegistryRead ( <arg> ) ;
=> ;
win_regread ( <arg> )

#translate RegistryWrite ( <arg1> , <arg2> ) ;
=> ;
win_regwrite ( <arg1> , <arg2> )
I hope that this fix all undefined references.

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
mol
Posts: 3214
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 223 times
Been thanked: 123 times
Contact:

Post by mol » Sun Oct 18, 2009 5:43 pm

A little better, but I function is still missing:
REGWRITE

Below, report from compilation

Code: Select all

[b]hbmk2: debuginc: Calling Harbour compiler to detect dependencies of            
       c:/projekty/akord/akord.prg[/b]                                             
hbmk2: debuginc: Calling Harbour compiler to detect dependencies of            
       c:/projekty/akord/certyfikaty.prg                                       
hbmk2: debuginc: Calling Harbour compiler to detect dependencies of            
       c:/projekty/akord/eksport.prg                                           
hbmk2: debuginc: Calling Harbour compiler to detect dependencies of            
       c:/projekty/akord/funkcje.prg                                           
hbmk2: debuginc: Calling Harbour compiler to detect dependencies of            
       c:/projekty/akord/obsluga.prg                                           
hbmk2: debuginc: Calling Harbour compiler to detect dependencies of            
       c:/projekty/akord/raporty.prg                                           
hbmk2: debuginc: Calling Harbour compiler to detect dependencies of            
       c:/projekty/akord/tabele.prg                                            
hbmk2: Linking... Akord.exe                                                    
.hbmk\win\mingw\akord.o:akord.c:(.data+0x338): undefined reference to `HB_FUN_W32_REGWRITE'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1                                                
gcc.exe .hbmk\win\mingw\akord.o .hbmk\win\mingw\certyfikaty.o .hbmk\win\mingw\eksport.o .hbmk\win\mingw\funkcje.o .hbmk\win\mingw\obsluga.o .hbmk\win\mingw\raporty.o .hbmk\win\mingw\tabele.o .hbmk\win\mingw\_hbmkaut.o _temp.o    -mwindows -Wl,--start-group -lminigui -lhbmysql -lmysql -lcrypt -ledit -leditex -lgraph -lini -lreport -lhbwin -lhbziparc -lhbmzip -lmsvfw32 -lvfw32 -lsddodbc -lrddsql -lsddmy -lhbodbc -lodbc32 -lhbhpdf -lhbvpdf -lhbmemio -lhbsqlit3 -lsqlite3 -lhbfimage -lhbpgsql -lpq -lhbtip -lhbct -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib  -Wl,--end-group -oAkord.exe -Lc:/hmg/harbour/lib -Lc:/hmg/lib
Bolded lines, I think, are caused by altd() function, which exists in my source code.

User avatar
Roberto Lopez
HMG Founder
Posts: 3980
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Post by Roberto Lopez » Sun Oct 18, 2009 5:50 pm

mol wrote:A little better, but I function is still missing:
REGWRITE

Below, report from compilation
It still happen with new i_pseudofunc.ch?

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
Roberto Lopez
HMG Founder
Posts: 3980
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Post by Roberto Lopez » Sun Oct 18, 2009 5:57 pm

rathinagiri wrote:
Hi Roberto,

As you have searched and found out, Diwali (aka Deepavali in some places) is a famous Indian festival. 'Light' is given more importance for this festival. This day (Oct-Nov. new moon day) is celebrated for the remembrance of Lord Krishna having killed Naragasura (a Demon).

Diwali is more important for me, since we manufacture fireworks here mostly for the consumption in this festival days for the whole of India.

Since you asked some of our pictures enjoying Diwali (sorry for the quality - captured using mobile hastily)

This is my elder daughter's hand lighting a sparkler.
<...>
Wow!... Nice!

Here (in Aregentina) we use such fireworks in christmas and new year too.

Sadly, here, some people prefers some 'noise devices' (I don't know the exact translation) that are designed only to make noise (big explosions) without any lightning effect.

Thanks for sharing this!

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
mol
Posts: 3214
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 223 times
Been thanked: 123 times
Contact:

Post by mol » Sun Oct 18, 2009 6:09 pm

First, I've missed changes in i_pseudofunc.ch

Now, after changes, I still get errors:

Code: Select all

collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1                                                
gcc.exe .hbmk\win\mingw\akord.o .hbmk\win\mingw\certyfikaty.o .hbmk\win\mingw\eksport.o .hbmk\win\mingw\funkcje.o .hbmk\win\mingw\obsluga.o .hbmk\win\mingw\raporty.o .hbmk\win\mingw\tabele.o .hbmk\win\mingw\_hbmkaut.o _temp.o    -mwindows -Wl,--start-group -lminigui -lhbmysql -lmysql -lcrypt -ledit -leditex -lgraph -lini -lreport -lhbwin -lhbziparc -lhbmzip -lmsvfw32 -lvfw32 -lsddodbc -lrddsql -lsddmy -lhbodbc -lodbc32 -lhbhpdf -lhbvpdf -lhbmemio -lhbsqlit3 -lsqlite3 -lhbfimage -lhbpgsql -lpq -lhbtip -lhbct -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib  -Wl,--end-group -oAkord.exe -Lc:/hmg/harbour/lib -Lc:/hmg/lib

Last edited by mol on Sun Oct 18, 2009 6:17 pm, edited 1 time in total.

User avatar
Roberto Lopez
HMG Founder
Posts: 3980
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Post by Roberto Lopez » Sun Oct 18, 2009 6:14 pm

mol wrote:First, I've missed changes in i_pseudofunc.ch

Now, after changes, I still get errors:
Appears to be a copy/paste problem.

I've attached the file to this message.

Regards,

Roberto.
Attachments
300_test_VI_patch.rar
(3.01 KiB) Downloaded 129 times
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
mol
Posts: 3214
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 223 times
Been thanked: 123 times
Contact:

Post by mol » Sun Oct 18, 2009 6:18 pm

There was missed /* and */ signs of begin and end of comment.

Post Reply