Wednesday, February 16, 2011

Harbour MiniGUI 1.9 Extended Edition (Build 93 Released on 16th Feb 2011

CCH: From the HMG Extended Forum
Hi All,

The Harbour MiniGUI 1.9 Extended Edition (Build 93) setup is published at the following URL:

http://hmgextended.com/files/CONTRIB/hmg-1.9-93-setup.zip

There is the following changelog for this build:

2011/02/16: Build 93 (HMG 1.9 Extended Edition) Published.
* Changed: Clipboard retrieve text function was renamed due to misspelled to
RetrieveTextFromClipboard()-->
cText - retrieve text from Windows clipboard
Reported by Kevin Carmody <i@kevincarmody.com>.
* Updated: Clipboard functions:
- New: Added function ClearClipboard();
- Updated: function RetrieveTextFromClipboard(). Borrowed from ooHG.
Contributed by Vladimir Chumachenko <ChVolodymyr@yandex.ru>
(see demo in folder \samples\Basic\CLIPBOARD).
* Updated: Grid/TextBox: minor cleaning of InputMask processing code.
Contributed by Grigory Filatov <gfilatov@inbox.ru>
(see demos in folder \samples\Basic\INPUTMASK)
* Updated: MiniPrint library (see source in folder \Source\MiniPrint):
- New: Added DOTTED clause in the PRINT LINE command.
Contributed by Grigory Filatov <gfilatov@inbox.ru>
(see demo in folder \samples\Basic\miniprint)
* Updated: Socket library source code by Matteo Baccan <baccan@infomedia.it>:
- Updated: date handling of method Send() in tsmtp.prg.
Problem was reported by Alen Uzelac <solvox@gmail.com>.
Contributed by Grigory Filatov <gfilatov@inbox.ru>
(see in folder \Source\Socket)
* Updated: HbSQLite3 library source code (see in folder \Source\HbSQLite3):
- update for using SQLITE3 version 3.7.5
Contributed by Grigory Filatov <gfilatov@inbox.ru>
* Updated: Adaptation FiveWin Class TSBrowse 9.0 in HMG:
- Added: Array vertical bar management in the Insert method.
- Fixed: Problem with using Ctrl+V / Shift+Insert hotkeys.
Bug was reported by Paolo Russignan <paolorus@yahoo.it>.
Contributed by Janusz Pora <januszpora@onet.eu>
(see demo in folder \samples\Advanced\Tsb_Array)
* Updated: HMG_QHTM library (see source in folder \Source\QHTM):
- New: Added function QHTM_EnableUpdate() - enable/disable redraw element of QHTM;
- New: Define QHTM now supports the fontname and fontsize attributes.
Contributed by Vladimir Chumachenko <ChVolodymyr@yandex.ru>
(look at changelog.txt in folder \Source\QHTM)
* Updated: Harbour Compiler 2.1.0rc1 (SVN 2011-02-15 09:21):
* Updated: HbSqlDD library source code (see in folder \Source\HbSqlDD);
* Updated: HbSQLite3 library source code (see in folder \Source\HbSQLite3);
* Updated: freeimage.lib update to 3.15.0 (from 3.9.3).
Contributed by Grigory Filatov <gfilatov@inbox.ru>
(look at ReadMe.txt in folder \harbour)
* Updated: HMGS-IDE v.1.0.6.1. Project Manager and Two-Way Visual Form Designer.
Contributed by Walter Formigoni <walter.formigoni@uol.com.br> and
Pete D. <pete_westg@yahoo.gr>
(look for whatsnew at changelog.txt in folder \Ide)
* New: 'HMG Grid' sample. Borrowed from HMG 4 project.
Adapted by Grigory Filatov <gfilatov@inbox.ru>
(see in folder \samples\Basic\Grid_Test)
* Updated: 'ADORDD' sample with using a TBROWSE control:
- Updated for compatibility with TSBrowse 9.0 syntax.
Problem was reported by Oscar Martin.
(see in folder \samples\Basic\ADORDD_4)
* Updated: Grid samples. Contributed by Grigory Filatov <gfilatov@inbox.ru>
(see demos in folder \samples\Basic\Grid)
* Updated: 'Get DIR List' sample.
Contributed by Grigory Filatov <gfilatov@inbox.ru>
(see in folder \samples\Basic\DirList)
* Updated: 'Multi Richedit' sample.
Requested by Marcelo A. L. Carli <malcarli@terra.com.br>.
Contributed by Janusz Pora <januszpora@onet.eu>
(see in folder \samples\Advanced\RicheditEx_2)

This release of MiniGUI is considered stable and ready for production use.

Your comments/feedback are welcome!

--
Best Regards,
Grigory Filatov
[MiniGUI Team]

How to compile a HMG application with hbmk2 ?

All along, I have always use HMG-IDE by Roberto Lopez to compile  Harbour Minigui  Win 32 apps. The process is actually simple. For example, all I needed to do was to create a project with the IDE and add  a list of the PRGs that needed to be compiled.

If the name of the project is FRS4HMG, frs4hmg.hbp will be created as follows :-

frs4hmg.hbp
=========
frs4w764.prg
lock.prg

By running the frs4hmg project, FRS4HMG.EXE is created

After discovering the versatility of hbmk2 and especially after successfully using hbmk2 to compile a gtWVG app, I was motivated to try the same with building a HMG app with hbmk2.

I took a look at the frs4hmg.hbp and noticed that there was no HMG libs at all. I then looked at the build.bat in the HMG root folder and was overwhelmed :-) As usual, I posted my issue at the HMG Forum and an Italian Member, Luigi was kind enough to walk me through and highlight that it was just impossible to do so with Harbour 2.1


Quote by Luigi

In addition, I have tried to compile HMG3 with the new version of the Harbour compiler but I got many warning with the option /w0 (with /w3, of course, does not generate the hmg library). The generation of an executable is, in any case, impossible for many mistakes: for example with hbmzip (used by Hmg).

frs4hmg.hbp (after looking at Luigi's feedback)
=========

-oFRS4HMG.exe
-prgflag= -w3 -es2 -gtgui
-cflag=-O3

-lhmg -lhbmzip -lhbwin -lhbct -lhbmisc -lxhb -lvfw32 -lmsvfw32

frs4hmg.hbc

frs4w764.prg
locks.prg

frs4hmg.hbc
=========

incpaths=c:\hmg\include
libpaths=c:\hmg\lib


I then hbmk2 frs4hmg.hbp but there were lots of undefined functions in lhmg etc.

Taking the cue, I changed the PATH under environmental variables in Win 7 to C:\hb20;Hb20\bin and

hbmk2 frs4hmg.hbp and bingo FRS4HMG.EXE was duly created !

Tuesday, February 15, 2011

Migrating Xharbour Codes to Harbour 2.1

Recently in recompiling a XHarbour app to Harbour 2.1, I ran into a couple of Undefined Functions such as

1) C:/Users/CCH/AppData/Local/
Temp/hbmk_lv5w33.dir/HMS_MAIN.o:HMS_MAIN.c:(.data+0x1
5b8): undefined reference to `HB_FUN_SETMOUSE'

2) C:/Users/CCH/AppData/Local/Temp/hbmk_lv5w33.dir/HMS_MAIN.o:HMS_MAIN.c:(.data+0x1
6b8): undefined reference to `HB_FUN_HB_FREADLINE'
I tried unsuccessfully to find replacement functions and Viktor came to my rescue by suggesting that Ilink xhb and hbxpp libs to your app:  hbmk2 ... xhb.hbc hbxpp.hbc

Practically, it means that I add xhb.hbc and hbxpp.hbc to my hbp file :-)

Monday, February 14, 2011

Building a Harbour+gtWvg Project using hbmk2

Previously, I had written how one can build a Harbour+gtWvg project using XMate, the first part at
http://cch4clipper.blogspot.com/2009/04/using-harbourwvg-part-i.html

Having discovered the simplicity of using hbmk2 to compile a 32-bit version of DBU which runs in a true 32-bit Window, I tried to rebuild my previous gtWvg project. I succeeded to generate an EXE but on launching, it just starts and exit straightaway.

Fortunately. Pritpal came to my assistance and suggested adding  the following to FAS4WVG.HBP

-inc
-mt
 -w3
-es2
-gtwvg
-gui

and Hip Hip Hooray, I can now build a Harbour+gtWvg project without an IDE :-)

Saturday, February 12, 2011

What is hbmk2 ?

hbmk2.exe is the Harbour 2.0 excellent make utility that is located in the BIN folder under the C:\hb20 root directory. This is assuming that you accept the default location when installing the hb20 distro available at http://sourceforge.net/projects/harbour-project/files/binaries-windows/2.0.0/

After installing do not forget to set path to c:\hb20; c:\hb20\bin.

To use it is fairly simple, go to your project folder and type

c:\hb20\projects\yourproject >hbmk2 yourproject.hbp and bingo your Harbour 32-bit EXE is created

What are the options that hbmk2 provide ?

Just type at any command prompt

C:\hb20\projects\myprojects> hbmk2  
and this is what you get to see :-

Harbour Make (hbmk2) 2.0.0 (Rev. 13372)
Copyright (c) 1999-2010, Viktor Szakats
http://www.harbour-project.org/

Syntax:

  hbmk2 [options] [] .clp|.d]> Options:   -o        output file name   -l        link with library. should be without                      path, extension and 'lib' prefix (unless part of libname).   -L        additional path to search for libraries   -i
|-incpath=
additional path to search for headers
  -static|-shared    link with static/shared libs
  -mt|-st            link with multi/single-thread VM
  -gt          link with GT GT driver, can be repeated to link with
                     more GTs. First one will be the default at runtime
  -hblib             create static library
  -hbdyn             create dynamic library
  -help|--help       long help
 

For more details, see http://groups.google.com/group/harbour-users/web/how-using-hbmk2

Friday, February 11, 2011

HMGS-IDE 1.0.6.1 Released on 11th February 2011

CCH : From the HMG Extended Forum

Hi All,

The updated HMGS-IDE 1.0.6.1 (binary and sources) are published
at the following URL:
http://www.hmgextended.com/files/HMGS-IDE/ide.zip

Whatsnew:
2011-02-10: version 1.0.6.1
*Fixed : bug in move.prg regarding moving of TIMER control. Contribution of Pete <pete_westg@yahoo.gr>
*Changed : showing of title date in HMGSIDE.prg. Contribution of Pete <pete_westg@yahoo.gr>
*Changed : replace function WaitWin with ShowInfo( uMessage ). Contribution of Pete <pete_westg@yahoo.gr>
*Changed : UPX.EXE compression starts with --best --lzma params. Contribution of Pete <pete_westg@yahoo.gr>
*Added : warning at start of update HMGS-IDE. Contribution of Pete <pete_westg@yahoo.gr>

Your feedback is welcome!

--
Kind Regards,
Grigory Filatov
[MiniGUI Team]

Thursday, February 10, 2011

HMGS-IDE 1.0.6 Released on 9th February 2011

CCH: From the HMG Extended Forum

Hi All,

The updated HMGS-IDE 1.0.6 binary and sources are published
at the following URL:
http://www.hmgextended.com/files/HMGS-IDE/ide.zip

Whatsnew:
2011-02-08: version 1.0.6
*Added : PANEL control. Requested by lichitorres <lichitorres@yahoo.com.ar> and by Franz <franz@valgraveglia.net>
*Fixed : in controlorder position of control Radiogroup.
*Changed : in controlorder to not show control Label to make more easy change order of controls.
*Fixed : in mainmenu save of CAPTION in menu popup with property NAME and save of last END POPUP
*Changed : control Tsbrowse in loadfmg and in hmgside with complete fields.
*Fixed : Problem in buildlogDblclick when modal window is called above topmost window. Contribution by Grigory Filatov <gfilatov@inbox.ru>

You can update this build via clicking 'Update' menuitem in the main
menu 'Help'.

--
Kind Regards,
Grigory Filatov
[MiniGUI Team]

Welcome to Clipper... Clipper... Clipper


In 1997, then using Delphi 3, I had already created 32-bits Windows applications for HRIS, ERP and CRM. In 2007, using Ruby on Rails, an AJAX powered CRM site running on Apache & MySQL was created and I am now using Visual Studio .Net 2008 to create web-based projects and Delphi 7 for Win32 applications using SQL2005 & DBFCDX.

So, why then am I reviving the Original Clipper... Clipper... Clipper via a Blog as CA-Clipper is a programming language for the DOS world ? Believe it or not, there are still some clients using my mission-critical CA-Clipper applications for DOS installed in the late 80's and up to the mid 90's. This is testimony to CA-Clipper's robustness as a language :-)

With the widespread introduction of Windows 7 64-bits as the standard O/S for new Windows based PCs & Notebooks, CA-Clipper EXE simply will not work and it has become imperative for Clipper programmers to migrate immediately to Harbour to build 32/64 bits EXEs

Since 28th January 2009, this blog has been read by 134,389 (10/3/11 - 39,277) unique visitors (of which 45,151 (10/3/11 - 13,929) are returning visitors) from 103 countries and 1,574 cities & towns in Europe (37; 764 cities), North America (3; 373 cities) , Central America & Caribeans (6; 13 cities), South America(10; 226 cities), Africa & Middle-East (12; 44 cities) , Asia-Pacific (21; 175 cities). So, obviously Clipper is Alive & Well : -)


TIA & Enjoy ! (10th October 2012, 11:05; 13th November 2015)


Original Welcome Page for Clipper... Clipper... Clipper

This is the original Welcome Page for Clipper... Clipper... Clipper, which I am republishing for historical and sentimental reasons. The only changes that I have made was to fix all the broken links. BTW, the counter from counter.digits.com is still working :-)

Welcome to Chee Chong Hwa's Malaysian WWW web site which is dedicated to Clipperheads throughout the world.

This site started out as a teeny-weeny section of Who the heck is Chee Chong Hwa ? and has graduated into a full blown web site of more than 140 pages (actually hundreds of A4 size pages) ! This is due to its growing popularity and tremendous encouragements from visiting Clipperheads from 100 countries worldwide, from North America, Central America, Caribbean, South America, Europe, Middle-East, Africa and Asia-Pacific. Thanx Clipperheads, you all made this happen !


What is Clipper ?

You may ask, what is this Clipper stuff ? Could Clipper be something to do with sailing as it is the name of a very fast sailing American ship in the 19th century ?

Well, Clipper or to be precise, CA-Clipper is the premier PC-Software development tool for DOS. It was first developed by Nantucket Corporation initially as a compiler for dBase3+ programs. Since then, CA-Clipper has evolved away from its x-base roots with the introduction of lexical scoping & pre-defined objects like TBrowse. As at today, the most stable version ofClipper is 5.2e while the latest version, 5.3a was introduced on 21 May 1996.

As at 11th November, 1996, an unofficial 5.3a fixes file was made available by Jo French. See the About CA-Clipper 5.3a section for more details. BTW, Jo French uploaded the revised 5.3a fixes file on 20th November, 1996.

Latest News

The latest news is that CA has finally released the long-awaited 5.3b patch on 21 May, 1997.

For 5.3b users, you must a take a look at Jo French's comments on unfixed bugs in 5.3b.

BTW, have you used Click ? If you're a serious Clipperprogrammer and need an excellent code formatter, Click is a natural choice. How to get it ? Simple, access Phil Barnett's site via my Cool Clipper Sites.

32-bits Clipper for Windows ?

Have you tried Xbase ++ ? Well, I have and compared to Delphi (my current Windows programming tool of choice), I'm still sticking to Delphi.

Anyway, you should visit the Alaska Home Page. Give it a chance and then draw your own conclusions !.

The Harbour Project

Is this the future of Xbase ? Take a look at at the Harbour Project

You are Visitor # ...

According to counter.digits.com, you are visitor since 3 June 1996.

If you like or dislike what you see on this website, please drop me a line by clicking the email button at the bottom of this page or better still, by filling out the form in my guest book. If you are not sure what to write,click here to take a look at what other Clipperheads have to say.