Message Box Add On For Your FWH Application

Message Box Add On For Your FWH Application

Postby andijahja » Sun Aug 29, 2010 2: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
User avatar
andijahja
 
Posts: 35
Joined: Sun Aug 29, 2010 12:44 pm

Re: Message Box Add On For Your FWH Application

Postby richard-service » Mon Aug 30, 2010 2:36 am

Hi Andi,

Thanks for your share solution.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v5.7 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 764
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: Message Box Add On For Your FWH Application

Postby toninhofwi » Mon Aug 30, 2010 12:35 pm

Wow! Very nice job Andi.

Thank you.

Toninho.
toninhofwi
 
Posts: 170
Joined: Tue Oct 18, 2005 10:01 am

Re: Message Box Add On For Your FWH Application

Postby StefanHaupt » 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: Select all  Expand view
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
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: Message Box Add On For Your FWH Application

Postby andijahja » Tue Aug 31, 2010 1: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
User avatar
andijahja
 
Posts: 35
Joined: Sun Aug 29, 2010 12:44 pm

Re: Message Box Add On For Your FWH Application

Postby StefanHaupt » Wed Sep 01, 2010 7:41 am

Hi Andi,

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

Code: Select all  Expand view
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
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: Message Box Add On For Your FWH Application

Postby andijahja » Thu Sep 02, 2010 9: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

Image

I am sure you can manage it now.
--
Andi
Andi
User avatar
andijahja
 
Posts: 35
Joined: Sun Aug 29, 2010 12:44 pm

Re: Message Box Add On For Your FWH Application

Postby StefanHaupt » Thu Sep 02, 2010 11:24 am

Hi Andi,

it´s working fine now, many thanks for your help :D
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 88 guests