FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Message Box Add On For Your FWH Application
Posts: 35
Joined: Sun Aug 29, 2010 12:44 PM
Message Box Add On For Your FWH Application
Posted: Sun Aug 29, 2010 02:20 PM
Hello,

The link below will lead you to the download point for a customizable message box useable in application. This class is independent of any GUI package, thus you can use it with FWH, HWGUI, MINIGUI.

Please enhance it as you want.

Snapshot:
http://www.mediafire.com/imageview.php?quickkey=zmbwrq8c3f7kimd

Package:
http://www.mediafire.com/?utp3xcjk2p5lx41

--
Andi
Andi
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: Message Box Add On For Your FWH Application
Posted: Mon Aug 30, 2010 02:36 AM

Hi Andi,

Thanks for your share solution.

Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 182
Joined: Tue Oct 18, 2005 10:01 AM
Re: Message Box Add On For Your FWH Application
Posted: Mon Aug 30, 2010 12:35 PM

Wow! Very nice job Andi.

Thank you.

Toninho.

Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: Message Box Add On For Your FWH Application
Posted: Tue Aug 31, 2010 11:00 AM
Andi,

thanks for your distribution.

But it seems, it´s not compatible with Borland, I get a lot of errors compiling the source.
Code (fw): Select all Collapse
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
test.c:
Error E2209 test.prg 179: Unable to open include file 'map'
Error E2257 test.prg 180: , expected
Error E2200 test.prg 186: Functions may not be part of a struct or union
Error E2139 test.prg 186: Declaration missing ;
Error E2200 test.prg 208: Functions may not be part of a struct or union
Error E2139 test.prg 208: Declaration missing ;
Error E2139 test.prg 284: Declaration missing ;
Warning W8065 test.prg 313: Call to function 'hb_itemGetNL' with no prototype in function HB_FUN__PPMESSAGEBOX
Warning W8065 test.prg 314: Call to function 'hb_itemGetCPtr' with no prototype in function HB_FUN__PPMESSAGEBOX
Warning W8065 test.prg 315: Call to function 'hb_itemGetCPtr' with no prototype in function HB_FUN__PPMESSAGEBOX
Warning W8065 test.prg 316: Call to function 'hb_itemGetNL' with no prototype in function HB_FUN__PPMESSAGEBOX
Warning W8065 test.prg 317: Call to function 'hb_itemGetNL' with no prototype in function HB_FUN__PPMESSAGEBOX
Warning W8065 test.prg 318: Call to function 'hb_itemGetCPtr' with no prototype in function HB_FUN__PPMESSAGEBOX
Warning W8065 test.prg 319: Call to function 'hb_itemGetNL' with no prototype in function HB_FUN__PPMESSAGEBOX
Warning W8065 test.prg 320: Call to function 'hb_itemGetNI' with no prototype in function HB_FUN__PPMESSAGEBOX
Warning W8065 test.prg 321: Call to function 'hb_itemGetNL' with no prototype in function HB_FUN__PPMESSAGEBOX
Warning W8065 test.prg 322: Call to function 'hb_itemGetNL' with no prototype in function HB_FUN__PPMESSAGEBOX
Warning W8065 test.prg 323: Call to function 'hb_itemGetNL' with no prototype in function HB_FUN__PPMESSAGEBOX


I´m not very familiar with c, so I need some help to get it working.

Thanks
kind regards

Stefan
Posts: 35
Joined: Sun Aug 29, 2010 12:44 PM
Re: Message Box Add On For Your FWH Application
Posted: Tue Aug 31, 2010 01:14 PM

Hi Stefan,

It works fine fine with BCC 5.82. You have to compile in C++ mode. So:

  1. Add -P compiler switch to BCC
  2. For the missing declaration, please add #include "hbapiitm.h", just under #include "hbapi.h"

Best regards,
Andi

Here is the Batch file, just in case:

------ cut ------
@echo off
SET HARBOURDIR=....\DEV
SET HARBOURLIB=%HARBOURDIR%\lib
SET HARBOUREXE=%HARBOURDIR%\bin\harbour.exe
SET _PATH=%PATH%
SET CC_DIR=....\BORLAND\BCC58
SET PATH=%CC_DIR%\BIN;%PATH%
SET _MYLIB=zlib.lib rdd.lib hbsix.lib sixcdx.lib hsx.lib usrrdd.lib dbfntx.lib dbfcdx.lib dbffpt.lib rtl.lib vm.lib gtgui.lib lang.lib macro.lib common.lib pcrepos.lib pp.lib hbzip.lib %CC_DIR%\lib\cw32.lib %CC_DIR%\lib\import32.lib
SET RESFILE=

if "%1" == "" goto syntax
if not exist %1.prg goto noexist
if not exist %HARBOUREXE% goto noharbour
if exist %1.exe del %1.exe
if exist %1.c del %1.c

%HARBOUREXE% %1 /q0 /n /i%HARBOURDIR%\include /gc0 /es2 /w
if not exist %1.c goto end
BCC32 -P -I%HARBOURDIR%\include -6 -OS -O2 -c -o%1.obj %1.c
if not exist %1.obj goto end
if exist %1.res DEL %1.res
if exist %1.rc BRC32 /r %1.rc /fo %1.res
if exist %1.res set RESFILE=%1.res
ILINK32 -aa -Tpe -x -Gn -L%HARBOURLIB% %1.obj,%1.exe,,%_MYLIB% c0w32.obj,,%RESFILE%

:success
if exist %1.exe echo %1.exe succesfully built
if exist %1.exe echo.
goto end

:syntax
echo.
echo Syntax: HB58 program [ do not specify prg extension ]
echo.
goto end

:noexist
echo.
echo Cannot find %1.prg file
echo.
goto end

:noharbour
echo.
echo Cannot find Harbour.exe
echo.
goto end

:end
set PATH=%_PATH%
set _PATH=
set HARBOUREXE=
set HARBOURLIB=
set HARBOURDIR=
set _MYLIB=
SET RESFILE=
SET CC_DIR=
------ cut ------

Andi
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: Message Box Add On For Your FWH Application
Posted: Wed Sep 01, 2010 07:41 AM
Hi Andi,

I made the changes, but now I run into new errors

Code (fw): Select all Collapse
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
test.c:
Error E2209 test.prg 180: Unable to open include file 'map'
Error E2316 test.prg 181: 'map' is not a member of 'std'
Error E2040 test.prg 181: Declaration terminated incorrectly
Error E2303 test.prg 285: Type name expected
Error E2139 test.prg 285: Declaration missing ;
Error E2451 test.prg 243: Undefined symbol 'pLocalBtnText' in function PPMSGBOXPARAMS::PPMSGBOXPARAMS()
*** 6 errors in Compile ***


Any hints ?
kind regards

Stefan
Posts: 35
Joined: Sun Aug 29, 2010 12:44 PM
Re: Message Box Add On For Your FWH Application
Posted: Thu Sep 02, 2010 09:59 AM
Hello Stefan,

Sorry for the hassle. Now I have compiled it the form of static libraries. There are one for Borland and the other for MSVC.
By using this static library, now NON-C++ Compiler can make use this class.

Please download package with static library from: http://www.mediafire.com/?63pvu3ahptl92f2



I am sure you can manage it now.
--
Andi
Andi
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: Message Box Add On For Your FWH Application
Posted: Thu Sep 02, 2010 11:24 AM

Hi Andi,

it´s working fine now, many thanks for your help :D

kind regards

Stefan

Continue the discussion