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
Message Box Add On For Your FWH Application
- richard-service
- Posts: 583
- Joined: Tue Oct 16, 2007 8:57 am
- Location: New Taipei City, Taiwan
- Contact:
Re: Message Box Add On For Your FWH Application
Hi Andi,
Thanks for your share solution.
Thanks for your share solution.
Regards,
Richard
Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
Richard
Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
-
- Posts: 161
- Joined: Tue Oct 18, 2005 10:01 am
Re: Message Box Add On For Your FWH Application
Wow! Very nice job Andi.
Thank you.
Toninho.
Thank you.
Toninho.
-
- Posts: 824
- Joined: Thu Oct 13, 2005 7:39 am
- Location: Germany
Re: Message Box Add On For Your FWH Application
Andi,
thanks for your distribution.
But it seems, it´s not compatible with Borland, I get a lot of errors compiling the source.
I´m not very familiar with c, so I need some help to get it working.
Thanks
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
Thanks
kind regards
Stefan
Stefan
Re: Message Box Add On For Your FWH Application
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 ------
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 7:39 am
- Location: Germany
Re: Message Box Add On For Your FWH Application
Hi Andi,
I made the changes, but now I run into new errors
Any hints ?
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 ***
kind regards
Stefan
Stefan
Re: Message Box Add On For Your FWH Application
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
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 7:39 am
- Location: Germany
Re: Message Box Add On For Your FWH Application
Hi Andi,
it´s working fine now, many thanks for your help
it´s working fine now, many thanks for your help
kind regards
Stefan
Stefan