Page 1 of 1
Message Box Add On For Your FWH Application
Posted: Sun Aug 29, 2010 2:20 pm
by andijahja
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? ... q8c3f7kimd
Package:
http://www.mediafire.com/?utp3xcjk2p5lx41
--
Andi
Re: Message Box Add On For Your FWH Application
Posted: Mon Aug 30, 2010 2:36 am
by richard-service
Hi Andi,
Thanks for your share solution.
Re: Message Box Add On For Your FWH Application
Posted: Mon Aug 30, 2010 12:35 pm
by toninhofwi
Wow! Very nice job Andi.
Thank you.
Toninho.
Re: Message Box Add On For Your FWH Application
Posted: Tue Aug 31, 2010 11:00 am
by StefanHaupt
Andi,
thanks for your distribution.
But it seems, it´s not compatible with Borland, I get a lot of errors compiling the source.
Code: Select all
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
Re: Message Box Add On For Your FWH Application
Posted: Tue Aug 31, 2010 1:14 pm
by andijahja
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 ------
Re: Message Box Add On For Your FWH Application
Posted: Wed Sep 01, 2010 7:41 am
by StefanHaupt
Hi Andi,
I made the changes, but now I run into new errors
Code: Select all
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 ?
Re: Message Box Add On For Your FWH Application
Posted: Thu Sep 02, 2010 9:59 am
by andijahja
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
Re: Message Box Add On For Your FWH Application
Posted: Thu Sep 02, 2010 11:24 am
by StefanHaupt
Hi Andi,
it´s working fine now, many thanks for your help