messages
listlengths 1
1
| topic
stringlengths 2
60
|
---|---|
[
{
"date": "2012-10-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Guys:\n\nIs there a way that the BUILDX.BAT command and/or the xHarbour Builder (from commercial xHarbour) display all undeclared / undefined symbols and stop compiling / building, like the /W /ES2 from old Clipper: Clipper myprog /w /es2.\n\nThank you.",
"time": "16:06",
"topic": "Compiler warning messages.",
"username": "HunterEC"
}
] | Compiler warning messages. |
[
{
"date": "2012-11-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Gustavo,\n\nYou can modify samples\\buildx.bat yourself and use the same Clipper flags <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "14:39",
"topic": "Compiler warning messages.",
"username": "Antonio Linares"
}
] | Compiler warning messages. |
[
{
"date": "2012-11-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio:\n\nThank you very much.\n\n\nGustavo",
"time": "07:13",
"topic": "Compiler warning messages.",
"username": "HunterEC"
}
] | Compiler warning messages. |
[
{
"date": "2005-10-29",
"forum": "FiveWin for Pocket PC",
"text": "Dear friends, what are the optimal compiler/linker switches for a FWPPC app?\n\nAnother thing: I noticed that a FWPPC EXE can greatly compressed. Can we use any compiler/linker switches to reduce the size of the EXE?\n\nEMG",
"time": "13:22",
"topic": "Compiler/linker switches",
"username": "Enrico Maria Giordano"
}
] | Compiler/linker switches |
[
{
"date": "2013-06-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "HI all,\nCan anyone tell me how can I compiling two RC files in one .exe??\nThanks for help",
"time": "10:02",
"topic": "Compiling",
"username": "nebojsa"
}
] | Compiling |
[
{
"date": "2013-06-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Open with notepad, copy and paste one into the other. No special tool needed.",
"time": "10:36",
"topic": "Compiling",
"username": "ADutheil"
}
] | Compiling |
[
{
"date": "2013-06-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear ADutheil\n\nBuildRC.BAT\ncopy WINXP.RC+EZ4FO1.RC+EZ4FO2.RC+EZ4CFG.RC+EZ4BMP.RC RESOURCE.RC\nBRC32.EXE -R RESOURCE.RC\n\nThen use RESOURCE.RC instead of 2 RC files\n\nIt may help.",
"time": "12:21",
"topic": "Compiling",
"username": "dutch"
}
] | Compiling |
[
{
"date": "2013-06-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "create with a text file myrc.rc\n\n#include \"rc1.rc\" your first resource file\n#include \"rc2.rc\"\n#include \"rc3.rc\"\n.....\n\nin your make file just myrc.rc\n\nRichard",
"time": "13:19",
"topic": "Compiling",
"username": "Richard Chidiak"
}
] | Compiling |
[
{
"date": "2013-06-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "To All\n\nI copy all my .rc into one monolithic .rc and then compile to .res and link the .res into my .exe .. here is a modified version of Rc2Dll32.bat.\n\nRick Lipkin\n\n[code=fw:1c4rqfhc]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />@Echo Off<br />rem syntax: <span style=\"color: #000000;\">rc2dll32</span>.bat Your_rc_file !!! without the .RC extension<br /><br />DEL GroomW32.RC<br />DEL GroomW32.RES<br /><br />COPY *.RC GroomW32.RC<br /><br />C:\\BORLAND\\BCC582\\BIN\\brc32 -r %<span style=\"color: #000000;\">1</span>.rc<br /><br />del *.iL?<br />del *.map<br />del *.obj<br />del *.~rc<br />del *.rws<br />del *.tds<br />echo done!<br /> </div>[/code:1c4rqfhc]",
"time": "14:02",
"topic": "Compiling",
"username": "Rick Lipkin"
}
] | Compiling |
[
{
"date": "2014-04-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Guys:\n\nI have 3 PRGs: main1, custreps, invreps. How do I compile them with the BUILDX.BAT batch file ? Thank you.",
"time": "20:24",
"topic": "Compiling 3 PRGs with BUILDX",
"username": "HunterEC"
}
] | Compiling 3 PRGs with BUILDX |
[
{
"date": "2014-04-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "test1.prg\ntest2.prg\ntest3.prg\n\nadd test1.prg:\n#include \"test2.prg\"\n#include \"test3.prg\"",
"time": "22:01",
"topic": "Compiling 3 PRGs with BUILDX",
"username": "MGA"
}
] | Compiling 3 PRGs with BUILDX |
[
{
"date": "2014-04-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "SGS:\n\nThank you for your solution but I'm using STATIC modules with the same names so the compiler will not compile it that way.",
"time": "05:35",
"topic": "Compiling 3 PRGs with BUILDX",
"username": "HunterEC"
}
] | Compiling 3 PRGs with BUILDX |
[
{
"date": "2014-04-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Use MAKE\n\nif not exist obj md obj\nc:\\fwh\\bcc582\\bin\\make -fTestGi.mak\n\nRegards,\n\np.s\nTestGi.mak\n\n#Borland make sample, (c) FiveTech Software 2005\n\nprogram=TestGi\n\nFWDIR=c:\\fwh\nHBDIR=c:\\fwh\\xharbour\nBCDIR=c:\\fwh\\bcc582\n\n# change path if needed\n# ---------------------\n\n.path.OBJ = .\\obj\n.path.PRG = .\\\n.path.CH = $(FWDIR)\\include;$(HBDIR)\\include\n.path.C = .\\\n.path.RC = .\\\n\n# PRG - Files\n# ---------------------\n\nPRG = \\\n$(program).PRG \\\nsql.PRG \\\nprocedur.PRG \\\nmybrowse.PRG \\\nxbrowse.PRG\n\n\n# C - Files\n# ---------------------\n\n# C = \\\n# two.C \\\n# three.C\n\n\nPROJECT : $(program).EXE\n\n$(program).EXE : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) $(program).RES\n echo off\n echo $(BCDIR)\\bin\\c0w32.obj + > b32.bc\n\n# OBJ - Files\n# ---------------------\n\n echo obj\\$(program).OBJ \\\n obj\\sql.OBJ \\\n obj\\procedur.OBJ \\\n obj\\mybrowse.OBJ \\\n obj\\xbrowse.OBJ , + >> b32.bc\n\n# EXE , MAP - Files\n# ---------------------\n\n echo $(program).EXE, + >> b32.bc\n echo $(program).MAP, + >> b32.bc\n\n# FIVEWIN Lib`s\n# ---------------------\n\n echo $(FWDIR)\\lib\\Fivehx.lib $(FWDIR)\\lib\\FiveHC.lib + >> b32.bc\n\n# xHARBOUR-Lib`s\n# ---------------------\n\n echo $(HBDIR)\\lib\\rtl.lib + >> b32.bc\n echo $(HBDIR)\\lib\\vm.lib + >> b32.bc\n echo $(HBDIR)\\lib\\gtgui.lib + >> b32.bc\n echo $(HBDIR)\\lib\\lang.lib + >> b32.bc\n echo $(HBDIR)\\lib\\macro.lib + >> b32.bc\n echo $(HBDIR)\\lib\\rdd.lib + >> b32.bc\n echo $(HBDIR)\\lib\\dbfntx.lib + >> b32.bc\n echo $(HBDIR)\\lib\\dbfcdx.lib + >> b32.bc\n echo $(HBDIR)\\lib\\dbffpt.lib + >> b32.bc\n echo $(HBDIR)\\lib\\hbsix.lib + >> b32.bc\n echo $(HBDIR)\\lib\\debug.lib + >> b32.bc\n echo $(HBDIR)\\lib\\common.lib + >> b32.bc\n echo $(HBDIR)\\lib\\pp.lib + >> b32.bc\n echo $(HBDIR)\\lib\\pcrepos.lib + >> b32.bc\n echo $(HBDIR)\\lib\\ct.lib + >> b32.bc\n\n# Uncomment these two lines to use Advantage RDD\n echo $(HBDIR)\\lib\\rddads.lib + >> b32.bc\n echo $(HBDIR)\\lib\\Ace32.lib + >> b32.bc\n\n echo $(BCDIR)\\lib\\cw32.lib + >> b32.bc\n echo $(BCDIR)\\lib\\import32.lib + >> b32.bc\n\n echo $(BCDIR)\\lib\\psdk\\psapi.lib + >> b32.bc\n\n echo $(BCDIR)\\lib\\psdk\\odbc32.lib + >> b32.bc\n echo $(BCDIR)\\lib\\psdk\\rasapi32.lib + >> b32.bc\n echo $(BCDIR)\\lib\\psdk\\nddeapi.lib + >> b32.bc\n echo $(BCDIR)\\lib\\psdk\\iphlpapi.lib , >> b32.bc\n\n IF EXIST $(program).RES echo $(program).RES >> b32.bc\n $(BCDIR)\\bin\\ilink32 -Gn -aa -Tpe -s -v @b32.bc > link.log\n del b32.bc\n\n.PRG.OBJ:\n $(HBDIR)\\bin\\harbour $< /N /Oobj\\ /I$(FWDIR)\\include;$(HBDIR)\\include > clip.log\n $(BCDIR)\\bin\\bcc32 -c -tWM -I$(HBDIR)\\include -oobj\\$& obj\\$&.c > bcc.log\n\n.C.OBJ:\n echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp\n echo -I$(HBDIR)\\include;$(FWDIR)\\include >> tmp\n $(BCDIR)\\bin\\bcc32 -oobj\\$& @tmp $&.c\n del tmp\n\n$(program).RES : $(program).RC\n $(BCDIR)\\bin\\brc32.exe -r $(program).RC\n\u001a",
"time": "08:45",
"topic": "Compiling 3 PRGs with BUILDX",
"username": "avista"
}
] | Compiling 3 PRGs with BUILDX |
[
{
"date": "2008-09-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Antonio,\r\n\r\nI used the vc98 you suggested last week and am running it with the harbour MS version downloaded from the FT site. I've been trying to compile & link my application without success.\r\n\r\nToday I decided to try just compiling and linking the TUTOR01 sample application provided with my FWH. I get some very similar errors.\r\n\r\nI figure at this point, I should get the sample programs to work before I work more on my application.\r\n\r\nBy the way, if I use the Borland 55 compiler with the FT Harbour Borland version, TUTOR01 compiles and runs fine.\r\n\r\nI'd like to get the vc98 to work.\r\n\r\nThanks Antonio, Paul\r\n\r\n[b:3767g7lf]Here is the output from the vc98 attempt on TUTOR01:[/b:3767g7lf]\r\nÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿\r\n³ FiveWin for Harbour 2.8 (MSVC++) November 2008 Harbour development power ³Ü\r\n³ (c) FiveTech, 1993-2008 for Microsoft Windows 95/98/NT/2000/ME and XP ³Û\r\nÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ\r\nÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß\r\nCompiling...\r\ntutor01.c\r\ngtgui.lib(gtgui.obj) : warning LNK4006: _HB_FUN_HB_GT_GUI_DEFAULT already defined in FiveHM.lib(ERRSYSW.obj); second definition ignored\r\nLINK : warning LNK4098: defaultlib \"LIBCMT\" conflicts with use of other libs; use /NODEFAULTLIB:library\r\nFiveHM.lib(HELP32.obj) : error LNK2001: unresolved external symbol _HB_FUN_CHMHELPPOPUP\r\nFiveHM.lib(HELP32.obj) : error LNK2001: unresolved external symbol _HB_FUN_CHMHELPINDEX\r\nFiveHM.lib(HELP32.obj) : error LNK2001: unresolved external symbol _HB_FUN_CHMHELPTOPIC\r\nFiveHCM.lib(BRUSHES.obj) : error LNK2001: unresolved external symbol __imp__AlphaBlend@44\r\ntutor01.exe : fatal error LNK1120: 4 unresolved externals\r\n* There are errors\r\n\r\n[b:3767g7lf]This is a copy of the BUILDH.BAT I'm using:[/b:3767g7lf]\r\n@ECHO OFF\r\nCLS\r\nECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿\r\nECHO ³ FiveWin for Harbour 2.8 (MSVC++) November 2008 Harbour development power ³Ü\r\nECHO ³ (c) FiveTech, 1993-2008 for Microsoft Windows 95/98/NT/2000/ME and XP ³Û\r\nECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ\r\nECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß\r\n\r\nif A%1 == A GOTO :SINTAX\r\nif NOT EXIST %1.prg GOTO :NOEXIST\r\n\r\nECHO Compiling...\r\n\r\nset hdir=c:\\harbourm\r\nset vcdir=c:\\vc98\r\nset include=%vcdir%\\include;%hdir%\\include;%include%\r\nset lib=%vcdir%\\lib;%hdir%\\lib;%lib%\r\n\r\n%hdir%\\bin\\harbour %1 /n /i..\\include;%hdir%\\include /w /p %2 %3 > clip.log\r\n@type clip.log\r\nIF ERRORLEVEL 1 PAUSE\r\nIF ERRORLEVEL 1 GOTO EXIT\r\n\r\n%vcdir%\\bin\\cl -TP -W3 -c /GA %1.c\r\n:ENDCOMPILE\r\n\r\nIF EXIST %1.rc %vcdir%\\bin\\rc -r -d__FLAT__ %1\r\n\r\necho %1.obj > msvc.tmp\r\n\r\necho ..\\lib\\FiveHM.lib ..\\lib\\FiveHCM.lib >> msvc.tmp\r\n\r\necho %hdir%\\lib\\hbrtl.lib >> msvc.tmp\r\necho %hdir%\\lib\\hbvm.lib >> msvc.tmp\r\necho %hdir%\\lib\\gtgui.lib >> msvc.tmp\r\necho %hdir%\\lib\\hblang.lib >> msvc.tmp\r\necho %hdir%\\lib\\hbmacro.lib >> msvc.tmp\r\necho %hdir%\\lib\\hbrdd.lib >> msvc.tmp\r\necho %hdir%\\lib\\rddntx.lib >> msvc.tmp\r\necho %hdir%\\lib\\rddcdx.lib >> msvc.tmp\r\necho %hdir%\\lib\\rddfpt.lib >> msvc.tmp\r\necho %hdir%\\lib\\hbsix.lib >> msvc.tmp\r\necho %hdir%\\lib\\hbdebug.lib >> msvc.tmp\r\necho %hdir%\\lib\\hbcommon.lib >> msvc.tmp\r\necho %hdir%\\lib\\hbpp.lib >> msvc.tmp\r\necho %hdir%\\lib\\hbcpage.lib >> msvc.tmp\r\necho %hdir%\\lib\\hbw32.lib >> msvc.tmp\r\n\r\nrem Uncomment these two lines to use Advantage RDD\r\nrem echo %hdir%\\lib\\rddads.lib >> msvc.tmp\r\nrem echo %hdir%\\lib\\ace32.lib >> msvc.tmp\r\n\r\necho %vcdir%\\lib\\kernel32.lib >> msvc.tmp\r\necho %vcdir%\\lib\\user32.lib >> msvc.tmp\r\necho %vcdir%\\lib\\gdi32.lib >> msvc.tmp\r\necho %vcdir%\\lib\\winspool.lib >> msvc.tmp\r\necho %vcdir%\\lib\\comctl32.lib >> msvc.tmp\r\necho %vcdir%\\lib\\comdlg32.lib >> msvc.tmp\r\necho %vcdir%\\lib\\advapi32.lib >> msvc.tmp\r\necho %vcdir%\\lib\\shell32.lib >> msvc.tmp\r\necho %vcdir%\\lib\\ole32.lib >> msvc.tmp\r\nrem echo %vcdir%\\lib\\oleaut32.lib >> msvc.tmp\r\necho %vcdir%\\lib\\uuid.lib >> msvc.tmp\r\necho %vcdir%\\lib\\odbc32.lib >> msvc.tmp\r\necho %vcdir%\\lib\\odbccp32.lib >> msvc.tmp\r\necho %vcdir%\\lib\\iphlpapi.lib >> msvc.tmp\r\necho %vcdir%\\lib\\mpr.lib >> msvc.tmp\r\necho %vcdir%\\lib\\version.lib >> msvc.tmp\r\necho %vcdir%\\lib\\wsock32.lib >> msvc.tmp\r\n\r\nIF EXIST %1.res echo %1.res >> msvc.tmp\r\n\r\n%vcdir%\\bin\\link @msvc.tmp /nologo /subsystem:windows /force:multiple\r\n\r\nIF ERRORLEVEL 1 GOTO LINKERROR\r\nECHO * Application successfully built\r\n%1\r\nGOTO EXIT\r\nECHO\r\n\r\nrem delete temporary files\r\n@del %1.c\r\n@del msvc.tmp\r\n\r\n:LINKERROR\r\nECHO * There are errors\r\nGOTO EXIT\r\n\r\n:SINTAX\r\nECHO SYNTAX: Build [Program] {-- No especifiques la extensi¢n PRG\r\nECHO {-- Don't specify .PRG extension\r\nGOTO EXIT\r\n\r\n:NOEXIST\r\nECHO The specified PRG %1 does not exist\r\n\r\n:EXIT\r\n[/code]",
"time": "08:31",
"topic": "Compiling FWH Tutor01-08 with VC98 Errors in link",
"username": "paulrhanson"
}
] | Compiling FWH Tutor01-08 with VC98 Errors in link |
[
{
"date": "2008-09-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Paul,\r\n\r\nPlease use this buildhm.bat:\r\n[code:3421hpg9]\n@ECHO OFF\nCLS\nECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿\nECHO ³ FiveWin for Harbour 8.09 (MSVC++) Sep. 2008 Harbour development power ³Ü\nECHO ³ (c) FiveTech, 1993-2008 for Microsoft Windows 9X/NT/200X/ME/XP/Vista ³Û\nECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ\nECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß\n\nif A%1 == A GOTO :SINTAX\nif NOT EXIST %1.prg GOTO :NOEXIST\n\nif %HBDIR% == \"\" set HBDIR=\"c:\\harbour\"\n\nECHO Compiling...\n\nset hdir=%HBDIR%\nset hdirl=%hdir%\\lib\nset vcdir=c:\\vc98\nset include=%vcdir%\\include;%hdir%\\include;%include%\nset lib=%vcdir%\\lib;%hdir%\\lib;%lib%\n\n%hdir%\\bin\\vc\\harbour %1 /n /i..\\include;%hdir%\\include /w /p %2 %3 > comp.log\nIF ERRORLEVEL 1 GOTO COMPILEERROR\n@type comp.log\n\n%vcdir%\\bin\\cl -TP -W3 -c /GA %1.c\n:ENDCOMPILE\n\nIF EXIST %1.rc %vcdir%\\bin\\rc -r -d__FLAT__ %1\n\necho %1.obj > msvc.tmp\n\necho c:\\fwh\\lib\\FiveHM.lib c:\\fwh\\lib\\FiveHCM.lib >> msvc.tmp\n\necho %hdirl%\\hbrtl.lib >> msvc.tmp\necho %hdirl%\\hbvm.lib >> msvc.tmp\necho %hdirl%\\gtgui.lib >> msvc.tmp\necho %hdirl%\\hblang.lib >> msvc.tmp\necho %hdirl%\\hbmacro.lib >> msvc.tmp\necho %hdirl%\\hbrdd.lib >> msvc.tmp\necho %hdirl%\\rddntx.lib >> msvc.tmp\necho %hdirl%\\rddcdx.lib >> msvc.tmp\necho %hdirl%\\rddfpt.lib >> msvc.tmp\necho %hdirl%\\hbsix.lib >> msvc.tmp\necho %hdirl%\\hbdebug.lib >> msvc.tmp\necho %hdirl%\\hbcommon.lib >> msvc.tmp\necho %hdirl%\\hbpp.lib >> msvc.tmp\necho %hdirl%\\hbcpage.lib >> msvc.tmp\necho %hdirl%\\hbw32.lib >> msvc.tmp\n\nrem Uncomment these two lines to use Advantage RDD\nrem echo %hdirl%\\rddads.lib >> msvc.tmp\nrem echo %hdirl%\\ace32.lib >> msvc.tmp\n\necho %vcdir%\\lib\\kernel32.lib >> msvc.tmp\necho %vcdir%\\lib\\user32.lib >> msvc.tmp\necho %vcdir%\\lib\\gdi32.lib >> msvc.tmp\necho %vcdir%\\lib\\winspool.lib >> msvc.tmp\necho %vcdir%\\lib\\comctl32.lib >> msvc.tmp\necho %vcdir%\\lib\\comdlg32.lib >> msvc.tmp\necho %vcdir%\\lib\\advapi32.lib >> msvc.tmp\necho %vcdir%\\lib\\shell32.lib >> msvc.tmp\necho %vcdir%\\lib\\ole32.lib >> msvc.tmp\necho %vcdir%\\lib\\oleaut32.lib >> msvc.tmp\necho %vcdir%\\lib\\uuid.lib >> msvc.tmp\necho %vcdir%\\lib\\odbc32.lib >> msvc.tmp\necho %vcdir%\\lib\\odbccp32.lib >> msvc.tmp\necho %vcdir%\\lib\\iphlpapi.lib >> msvc.tmp\necho %vcdir%\\lib\\mpr.lib >> msvc.tmp\necho %vcdir%\\lib\\version.lib >> msvc.tmp\necho %vcdir%\\lib\\wsock32.lib >> msvc.tmp\necho %vcdir%\\lib\\msimg32.lib >> msvc.tmp\n\nIF EXIST %1.res echo %1.res >> msvc.tmp\n\n%vcdir%\\bin\\link @msvc.tmp /nologo /subsystem:windows /force:multiple /NODEFAULTLIB:libcmt\n\nIF ERRORLEVEL 1 GOTO LINKERROR\nECHO * Application successfully built *\n%1\nGOTO EXIT\nECHO\n\nrem delete temporary files\n@del %1.c\n@del msvc.tmp\n\n:COMPILEERROR\n@type comp.log\nECHO * Compiling errors *\nGOTO EXIT\n\n:LINKERROR\nECHO * Linking errors *\nGOTO EXIT\n\n:SINTAX\nECHO SYNTAX: Build [Program] {-- No especifiques la extensi¢n PRG\nECHO {-- Don't specify .PRG extension\nGOTO EXIT\n\n:NOEXIST\nECHO The specified PRG %1 does not exist\n\n:EXIT\n[/code:3421hpg9]",
"time": "10:59",
"topic": "Compiling FWH Tutor01-08 with VC98 Errors in link",
"username": "Antonio Linares"
}
] | Compiling FWH Tutor01-08 with VC98 Errors in link |
[
{
"date": "2008-09-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\r\n\r\nI had to change the BuildHM.bat to get it to work. Just the initial command to set HBDIR variable.\r\n\r\nRevised BuildHM.bat:\r\n[code:317wue49]@ECHO OFF\nCLS\nECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿\nECHO ³ FiveWin for Harbour 8.09 (MSVC++) Sep. 2008 Harbour development power ³Ü\nECHO ³ (c) FiveTech, 1993-2008 for Microsoft Windows 9X/NT/200X/ME/XP/Vista ³Û\nECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ\nECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß\n\nif A%1 == A GOTO :SINTAX\nif NOT EXIST %1.prg GOTO :NOEXIST\n\nset HBDIR=\"c:\\harbourm\"\n\nECHO Compiling...\n\nset hdir=c:\\harbourm\nset hdirl=%hdir%\\lib\nset vcdir=c:\\vc98\nset include=%vcdir%\\include;%hdir%\\include;%include%\nset lib=%vcdir%\\lib;%hdir%\\lib;%lib%\n\n%hdir%\\bin\\harbour %1 /n /i..\\include;%hdir%\\include /w /p %2 %3 > comp.log\nIF ERRORLEVEL 1 GOTO COMPILEERROR\n@type comp.log\n\n%vcdir%\\bin\\cl -TP -W3 -c /GA %1.c\n:ENDCOMPILE\n\nIF EXIST %1.rc %vcdir%\\bin\\rc -r -d__FLAT__ %1\n\necho %1.obj > msvc.tmp\n\necho c:\\fwh\\lib\\FiveHM.lib c:\\fwh\\lib\\FiveHCM.lib >> msvc.tmp\n\necho %hdirl%\\hbrtl.lib >> msvc.tmp\necho %hdirl%\\hbvm.lib >> msvc.tmp\necho %hdirl%\\gtgui.lib >> msvc.tmp\necho %hdirl%\\hblang.lib >> msvc.tmp\necho %hdirl%\\hbmacro.lib >> msvc.tmp\necho %hdirl%\\hbrdd.lib >> msvc.tmp\necho %hdirl%\\rddntx.lib >> msvc.tmp\necho %hdirl%\\rddcdx.lib >> msvc.tmp\necho %hdirl%\\rddfpt.lib >> msvc.tmp\necho %hdirl%\\hbsix.lib >> msvc.tmp\necho %hdirl%\\hbdebug.lib >> msvc.tmp\necho %hdirl%\\hbcommon.lib >> msvc.tmp\necho %hdirl%\\hbpp.lib >> msvc.tmp\necho %hdirl%\\hbcpage.lib >> msvc.tmp\necho %hdirl%\\hbw32.lib >> msvc.tmp\n\nrem Uncomment these two lines to use Advantage RDD\nrem echo %hdirl%\\rddads.lib >> msvc.tmp\nrem echo %hdirl%\\ace32.lib >> msvc.tmp\n\necho %vcdir%\\lib\\kernel32.lib >> msvc.tmp\necho %vcdir%\\lib\\user32.lib >> msvc.tmp\necho %vcdir%\\lib\\gdi32.lib >> msvc.tmp\necho %vcdir%\\lib\\winspool.lib >> msvc.tmp\necho %vcdir%\\lib\\comctl32.lib >> msvc.tmp\necho %vcdir%\\lib\\comdlg32.lib >> msvc.tmp\necho %vcdir%\\lib\\advapi32.lib >> msvc.tmp\necho %vcdir%\\lib\\shell32.lib >> msvc.tmp\necho %vcdir%\\lib\\ole32.lib >> msvc.tmp\necho %vcdir%\\lib\\oleaut32.lib >> msvc.tmp\necho %vcdir%\\lib\\uuid.lib >> msvc.tmp\necho %vcdir%\\lib\\odbc32.lib >> msvc.tmp\necho %vcdir%\\lib\\odbccp32.lib >> msvc.tmp\necho %vcdir%\\lib\\iphlpapi.lib >> msvc.tmp\necho %vcdir%\\lib\\mpr.lib >> msvc.tmp\necho %vcdir%\\lib\\version.lib >> msvc.tmp\necho %vcdir%\\lib\\wsock32.lib >> msvc.tmp\necho %vcdir%\\lib\\msimg32.lib >> msvc.tmp\n\nIF EXIST %1.res echo %1.res >> msvc.tmp\n\n%vcdir%\\bin\\link @msvc.tmp /nologo /subsystem:windows /force:multiple /NODEFAULTLIB:libcmt\n\nIF ERRORLEVEL 1 GOTO LINKERROR\nECHO * Application successfully built *\n%1\nGOTO EXIT\nECHO\n\nrem delete temporary files\n@del %1.c\n@del msvc.tmp\n\n:COMPILEERROR\n@type comp.log\nECHO * Compiling errors *\nGOTO EXIT\n\n:LINKERROR\nECHO * Linking errors *\nGOTO EXIT\n\n:SINTAX\nECHO SYNTAX: Build [Program] {-- No especifiques la extensi¢n PRG\nECHO {-- Don't specify .PRG extension\nGOTO EXIT\n\n:NOEXIST\nECHO The specified PRG %1 does not exist\n\n:EXIT \n[/code:317wue49]\r\n\r\nResults of execution:\r\n[quote:317wue49]\fÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿\n³ FiveWin for Harbour 8.09 (MSVC++) Sep. 2008 Harbour development power ³Ü\n³ (c) FiveTech, 1993-2008 for Microsoft Windows 9X/NT/200X/ME/XP/Vista ³Û\nÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ\nÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß\nCompiling...\ntutor01.c\ngtgui.lib(gtgui.obj) : warning LNK4006: _HB_FUN_HB_GT_GUI_DEFAULT already defined in FiveHM.lib(ERRSYSW.obj); second definition ignored\nFiveHM.lib(HELP32.obj) : error LNK2001: unresolved external symbol _HB_FUN_CHMHELPPOPUP\nFiveHM.lib(HELP32.obj) : error LNK2001: unresolved external symbol _HB_FUN_CHMHELPINDEX\nFiveHM.lib(HELP32.obj) : error LNK2001: unresolved external symbol _HB_FUN_CHMHELPTOPIC\ntutor01.exe : fatal error LNK1120: 3 unresolved externals\n* Linking errors *\n\n[/quote:317wue49]",
"time": "13:09",
"topic": "Compiling FWH Tutor01-08 with VC98 Errors in link",
"username": "paulrhanson"
}
] | Compiling FWH Tutor01-08 with VC98 Errors in link |
[
{
"date": "2008-09-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Paul,\r\n\r\n>\r\nFiveHM.lib(HELP32.obj) : error LNK2001: unresolved external symbol _HB_FUN_CHMHELPPOPUP \r\nFiveHM.lib(HELP32.obj) : error LNK2001: unresolved external symbol _HB_FUN_CHMHELPINDEX \r\nFiveHM.lib(HELP32.obj) : error LNK2001: unresolved external symbol _HB_FUN_CHMHELPTOPIC\r\n>\r\n\r\nWe are going to review why those external symbols are missing.\r\n\r\nIn the meantime, please add these functions to your main PRG:\r\n\r\nfunction ChmHelpPopup() ; return nil\r\nfunction ChmHelpIndex() ; return nil\r\nfunction ChmHelpTopic() ; return nil",
"time": "13:49",
"topic": "Compiling FWH Tutor01-08 with VC98 Errors in link",
"username": "Antonio Linares"
}
] | Compiling FWH Tutor01-08 with VC98 Errors in link |
[
{
"date": "2015-03-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "After I compile Harbour using win-make, I notice a lot of dlls in harbour\\bin. How to compile Harbour so they won't be created?",
"time": "06:49",
"topic": "Compiling Harbour",
"username": "hua"
}
] | Compiling Harbour |
[
{
"date": "2015-03-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hua,\n\nI really dont know it. You should post your question here:\n\n[url:cihesut9]https://groups.google.com/forum/#!forum/harbour-devel[/url:cihesut9]",
"time": "07:13",
"topic": "Compiling Harbour",
"username": "Antonio Linares"
}
] | Compiling Harbour |
[
{
"date": "2015-03-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "It's ok Antonio. \n\nIt's just annoying that last time I can copy and run hbrun.exe anywhere but if I use the version I compiled myself I got the message below\n\n[img:9tvceoj0]http://s24.postimg.org/uxxx41z0l/hbrun.jpg[/img:9tvceoj0]",
"time": "08:15",
"topic": "Compiling Harbour",
"username": "hua"
}
] | Compiling Harbour |
[
{
"date": "2023-08-04",
"forum": "Off Topic / Otros temas",
"text": "Dear friends, I'm trying to compile Harbour from source code. All is working but some of the include files and libraries are missing (as an example, hbarc4.h). Do you know what could be the cause?",
"time": "17:15",
"topic": "Compiling Harbour from source code",
"username": "Enrico Maria Giordano"
}
] | Compiling Harbour from source code |
[
{
"date": "2023-08-05",
"forum": "Off Topic / Otros temas",
"text": "Dear Enrico,\n\nhbarc4.h is at c:\\harbour\\include\\ so it seems as your include path it is not pointing to harbour/include",
"time": "16:05",
"topic": "Compiling Harbour from source code",
"username": "Antonio Linares"
}
] | Compiling Harbour from source code |
[
{
"date": "2023-08-05",
"forum": "Off Topic / Otros temas",
"text": "Dear Antonio,\n\nI'm compiling Harbour from source code. So win-make should take care of copying all the Harbour's include directory to the HB_INSTALL_PREFIX directory. It does except some files. Anyway, Harbour is working fine at the end. I only wonder why some files are missing.",
"time": "16:21",
"topic": "Compiling Harbour from source code",
"username": "Enrico Maria Giordano"
}
] | Compiling Harbour from source code |
[
{
"date": "2023-08-06",
"forum": "Off Topic / Otros temas",
"text": "Dear Enrico,\n\noHrb = hb_compileFromBuf( cCode, .T., \"-n\", \"-q2\", \"-I c:\\harbour\\include\" )",
"time": "07:10",
"topic": "Compiling Harbour from source code",
"username": "Antonio Linares"
}
] | Compiling Harbour from source code |
[
{
"date": "2023-08-06",
"forum": "Off Topic / Otros temas",
"text": "I don't understand.",
"time": "08:28",
"topic": "Compiling Harbour from source code",
"username": "Enrico Maria Giordano"
}
] | Compiling Harbour from source code |
[
{
"date": "2023-08-07",
"forum": "Off Topic / Otros temas",
"text": "Dear Enrico,\n\n> I'm trying to compile Harbour from source code\n\nHow are you doing it ?\n\nUsually to compile Harbour code at runtime we use hb_compileFromBuf()",
"time": "06:53",
"topic": "Compiling Harbour from source code",
"username": "Antonio Linares"
}
] | Compiling Harbour from source code |
[
{
"date": "2023-08-07",
"forum": "Off Topic / Otros temas",
"text": "I'm using this batch:\n\n[code=fw:3s8ef8ls]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">@ ECHO OFF<br /><br />SET MSC=e:\\msc32\\msc<br /><br />SET PATH=%MSC%\\bin<br />SET HB_INSTALL_PREFIX=e:\\fw\\temp\\harbour\\harbour<br /><br />SET INCLUDE=%MSC%\\include\\ucrt;%MSC%\\include;%MSC%\\include\\sdk<br />SET LIB=%MSC%\\lib;%MSC%\\lib\\sdk<br /><br />SET HB_USER_CFLAGS=-MD -O1<br /><br />win-make clean install<br /><br /><span style=\"color: #00C800;\">PAUSE</span></div>[/code:3s8ef8ls]",
"time": "08:39",
"topic": "Compiling Harbour from source code",
"username": "Enrico Maria Giordano"
}
] | Compiling Harbour from source code |
[
{
"date": "2023-08-07",
"forum": "Off Topic / Otros temas",
"text": "Dear Enrico,\n\nThe Harbour compiler itself is inside hbcplr.lib, you don't need to call harbour.exe <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nyou can directly compile and execute from your EXE !!!",
"time": "09:05",
"topic": "Compiling Harbour from source code",
"username": "Antonio Linares"
}
] | Compiling Harbour from source code |
[
{
"date": "2023-08-07",
"forum": "Off Topic / Otros temas",
"text": "Dear Antonio,\n\nyou are missing the point. I wanted Harbour from the latest source code in the git repository. Anyway, never mind. I'm happy with the result.",
"time": "09:30",
"topic": "Compiling Harbour from source code",
"username": "Enrico Maria Giordano"
}
] | Compiling Harbour from source code |
[
{
"date": "2023-08-07",
"forum": "Off Topic / Otros temas",
"text": "ok, very good <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "17:35",
"topic": "Compiling Harbour from source code",
"username": "Antonio Linares"
}
] | Compiling Harbour from source code |
[
{
"date": "2011-10-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I need to compile TSButton version 7 with Harbour 3.1 ( not \"X\" ) and MinGW gcc 4.5.2-dw2 and I need some help on some errors in C.\nTo generate the .lib, based on the SBUTTONH.VRC I built this TSButton7.hbp :\n[code=nada:3m64z7o1]<div id=\"{CB}\" style=\"font-family: monospace;\">-incpath=..\\..\\..\\INCLUDE<br />-incpath=F:\\FWH\\INCLUDE<br />-incpath=g:\\hb31\\include<br />-m<br />-n<br />-w<br />-q0<br />-es2<br />-gc1<br />-p<br />-hblib<br /><br />..\\..\\FUNCTION\\TSBUTT~1\\BPAINT.C </div>[/code:3m64z7o1]\nAnd when I do the [b:3m64z7o1]hbmk2 TSButton7.hbp[/b:3m64z7o1] I got this errors:\n\n[quote:3m64z7o1]In file included from F:/FWH/TSButton/source/FUNCTION/TSBUTT~1/BPAINT.C:7:0:\nF:/FWH/INCLUDE/ClipApi.h:69:28: error: conflicting declaration 'typedef unsigned int WORD'\nc:\\hb31\\comp\\mingw\\bin\\../lib/gcc/mingw32/4.5.2-dw2/../../../../include/windef.h:241:24: error: 'WORD' has a previous declaration as 'typedef short unsigned int WORD'\nF:/FWH/INCLUDE/ClipApi.h:80:21: error: expected identifier before numeric constant\nF:/FWH/INCLUDE/ClipApi.h:80:21: error: expected '}' before numeric constant\nF:/FWH/INCLUDE/ClipApi.h:80:21: error: expected unqualified-id before numeric constant\nF:/FWH/INCLUDE/ClipApi.h:80:33: error: expected declaration before '}' token\nhbmk2: Erro: Executando compilador C/C++. 1\ng++.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer -W -Wall -pipe -IC:/hb31/include -IF:/FWH/TSButton/INCLUDE -I\nF:/FWH/INCLUDE -Ig:/hb31/include F:/FWH/TSButton/source/FUNCTION/TSBUTT~1/BPAINT.C[/quote:3m64z7o1]\n \nThe [b:3m64z7o1]ClipApi.h[/b:3m64z7o1] is added in the begginning of the .C :\n\n[code=fw:3m64z7o1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">/* TSButton Class, paint routines<br /> Author: Manuel Mercado<br /> Last update: Sept 11th, 2009 */</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <WinTen.h> <span style=\"color: #B900B9;\">/* set your own path if needed */</span><br /><span style=\"color: #00D7D7;\">#include</span> <Windows.h><br /><span style=\"color: #00D7D7;\">#include</span> <ClipApi.h> <span style=\"color: #B900B9;\">/* set your own path if needed */</span><br /><span style=\"color: #00D7D7;\">#include</span> <StdLib.h><br /><span style=\"color: #00D7D7;\">#define</span> NOTSRCAND 0x220326<br />.<br />.<br />.<br />.</div>[/code:3m64z7o1]\nCould anyone help me with this ?\n\nP.S. TSButton 7 can be downloaded from [url:3m64z7o1]http://fivewin-contributions.googlecode.com/files/TSButton7.rar[/url:3m64z7o1]",
"time": "13:42",
"topic": "Compiling TSButton with MinGW gcc",
"username": "concentra"
}
] | Compiling TSButton with MinGW gcc |
[
{
"date": "2011-10-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, could you review this, please ?\nI am not very good with C.\nThanks.",
"time": "10:56",
"topic": "Compiling TSButton with MinGW gcc",
"username": "concentra"
}
] | Compiling TSButton with MinGW gcc |
[
{
"date": "2011-11-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I'm joining to this question too . I too get an errors trying to build TsButtons lib with harbour + minGw . Can any to help ? Just idea - maybe Manuel Mercado have a forum , where we can post question to him ?\n\n With best regards !",
"time": "17:34",
"topic": "Compiling TSButton with MinGW gcc",
"username": "Rimantas"
}
] | Compiling TSButton with MinGW gcc |
[
{
"date": "2011-11-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Change clipapi.ch by hbapi.ch and try againg.\n\nRegards",
"time": "22:27",
"topic": "Compiling TSButton with MinGW gcc",
"username": "nnicanor"
}
] | Compiling TSButton with MinGW gcc |
[
{
"date": "2011-11-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "use this example change paths for your include paths\n\nc:\\mingw\\bin\\gcc -c -D__FLAT__ -D__HARBOUR__ -Ic:\\mingw\\include -Ic:\\harbourg\\include -Ic:\\fwhg\\include -obpaint.o bpaint.c \n\nRgds",
"time": "22:29",
"topic": "Compiling TSButton with MinGW gcc",
"username": "nnicanor"
}
] | Compiling TSButton with MinGW gcc |
[
{
"date": "2011-11-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Nicanor, thanks for your help.\nI discarded TSButton as an option and replaced it with standard buttons, since I got no help with this...\nBut I still need help with TSBrowse !\nYou said to change clipapi.ch by hbapi.ch but in this case, the code is was already with hbapi.ch.\nAnd when compiled, I get the following errors:\n[code=fw:3a235eaw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />hbmk2: <span style=\"color: #000000;\">Compiling</span> C++...<br />../../TSBrowse/TSBFUNCS.C: <span style=\"color: #000000;\">In</span> <span style=\"color: #00C800;\">function</span> <span style=\"color: #ff0000;\">'void HB_FUN_REGISTER_CLASS()'</span>:<br />../../TSBrowse/TSBFUNCS.C:<span style=\"color: #000000;\">76</span>:<span style=\"color: #000000;\">22</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #ff0000;\">'ISNIL'</span> was not declared in this scope<br />../../TSBrowse/TSBFUNCS.C: <span style=\"color: #000000;\">In</span> <span style=\"color: #00C800;\">function</span> <span style=\"color: #ff0000;\">'void HB_FUN__CREATEWINDOWEX()'</span>:<br />../../TSBrowse/TSBFUNCS.C:<span style=\"color: #000000;\">97</span>:<span style=\"color: #000000;\">26</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #ff0000;\">'ISNIL'</span> was not declared in this scope<br />../../TSBrowse/TSBFUNCS.C: <span style=\"color: #000000;\">In</span> <span style=\"color: #00C800;\">function</span> <span style=\"color: #ff0000;\">'void MaskRegion(HDC__*, RECT*, COLORREF, COLORREF)'</span>:<br />../../TSBrowse/TSBFUNCS.C:<span style=\"color: #000000;\">133</span>:<span style=\"color: #000000;\">49</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #000000;\">invalid</span> conversion <span style=\"color: #0000ff;\">from</span> <span style=\"color: #ff0000;\">'void*'</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'HBITMAP__*'</span><br />../../TSBrowse/TSBFUNCS.C:<span style=\"color: #000000;\">134</span>:<span style=\"color: #000000;\">46</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #000000;\">invalid</span> conversion <span style=\"color: #0000ff;\">from</span> <span style=\"color: #ff0000;\">'void*'</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'HBITMAP__*'</span><br />../../TSBrowse/TSBFUNCS.C:<span style=\"color: #000000;\">135</span>:<span style=\"color: #000000;\">49</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #000000;\">invalid</span> conversion <span style=\"color: #0000ff;\">from</span> <span style=\"color: #ff0000;\">'void*'</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'HBITMAP__*'</span><br />../../TSBrowse/TSBFUNCS.C:<span style=\"color: #000000;\">136</span>:<span style=\"color: #000000;\">55</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #000000;\">invalid</span> conversion <span style=\"color: #0000ff;\">from</span> <span style=\"color: #ff0000;\">'void*'</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'HBITMAP__*'</span><br />../../TSBrowse/TSBFUNCS.C:<span style=\"color: #000000;\">138</span>:<span style=\"color: #000000;\">42</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #000000;\">invalid</span> conversion <span style=\"color: #0000ff;\">from</span> <span style=\"color: #ff0000;\">'void*'</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'HBRUSH__*'</span><br />../../TSBrowse/TSBFUNCS.C: <span style=\"color: #000000;\">In</span> <span style=\"color: #00C800;\">function</span> <span style=\"color: #ff0000;\">'void DrawMasked(HDC__*, HBITMAP__*, WORD, WORD)'</span>:<br />../../TSBrowse/TSBFUNCS.C:<span style=\"color: #000000;\">192</span>:<span style=\"color: #000000;\">70</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #000000;\">invalid</span> conversion <span style=\"color: #0000ff;\">from</span> <span style=\"color: #ff0000;\">'void*'</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'HBITMAP__*'</span><br />../../TSBrowse/TSBFUNCS.C:<span style=\"color: #000000;\">201</span>:<span style=\"color: #000000;\">50</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #000000;\">invalid</span> conversion <span style=\"color: #0000ff;\">from</span> <span style=\"color: #ff0000;\">'void*'</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'HBITMAP__*'</span><br />../../TSBrowse/TSBFUNCS.C: <span style=\"color: #000000;\">In</span> <span style=\"color: #00C800;\">function</span> <span style=\"color: #ff0000;\">'void HB_FUN_TSDRAWCELL()'</span>:<br />../../TSBrowse/TSBFUNCS.C:<span style=\"color: #000000;\">255</span>:<span style=\"color: #000000;\">32</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #ff0000;\">'ISNIL'</span> was not declared in this scope<br />../../TSBrowse/TSBFUNCS.C:<span style=\"color: #000000;\">297</span>:<span style=\"color: #000000;\">43</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #000000;\">invalid</span> conversion <span style=\"color: #0000ff;\">from</span> <span style=\"color: #ff0000;\">'void*'</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'HFONT__*'</span><br />../../TSBrowse/TSBFUNCS.C: <span style=\"color: #000000;\">In</span> <span style=\"color: #00C800;\">function</span> <span style=\"color: #ff0000;\">'void WndBoxDraw(HDC__*, RECT*, HPEN__*, HPEN__*, int, BOOL)'</span>:<br />../../TSBrowse/TSBFUNCS.C:<span style=\"color: #000000;\">565</span>:<span style=\"color: #000000;\">48</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #000000;\">invalid</span> conversion <span style=\"color: #0000ff;\">from</span> <span style=\"color: #ff0000;\">'void*'</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'HPEN__*'</span><br />../../TSBrowse/TSBFUNCS.C: <span style=\"color: #000000;\">In</span> <span style=\"color: #00C800;\">function</span> <span style=\"color: #ff0000;\">'void HB_FUN_TSBRWSCROLL()'</span>:<br />../../TSBrowse/TSBFUNCS.C:<span style=\"color: #000000;\">637</span>:<span style=\"color: #000000;\">43</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #000000;\">invalid</span> conversion <span style=\"color: #0000ff;\">from</span> <span style=\"color: #ff0000;\">'void*'</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'HFONT__*'</span><br />../../TSBrowse/TSBFUNCS.C: <span style=\"color: #000000;\">In</span> <span style=\"color: #00C800;\">function</span> <span style=\"color: #ff0000;\">'void HB_FUN_SBGETHEIGHT()'</span>:<br />../../TSBrowse/TSBFUNCS.C:<span style=\"color: #000000;\">735</span>:<span style=\"color: #000000;\">46</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #000000;\">invalid</span> conversion <span style=\"color: #0000ff;\">from</span> <span style=\"color: #ff0000;\">'void*'</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'HFONT__*'</span><br />../../TSBrowse/TSBFUNCS.C: <span style=\"color: #000000;\">In</span> <span style=\"color: #00C800;\">function</span> <span style=\"color: #ff0000;\">'void DrawCheck(HDC__*, tagRECT*, HPEN__*, int, BOOL)'</span>:<br />../../TSBrowse/TSBFUNCS.C:<span style=\"color: #000000;\">813</span>:<span style=\"color: #000000;\">46</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #000000;\">invalid</span> conversion <span style=\"color: #0000ff;\">from</span> <span style=\"color: #ff0000;\">'void*'</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'HBRUSH__*'</span><br />../../TSBrowse/TSBFUNCS.C:<span style=\"color: #000000;\">832</span>:<span style=\"color: #000000;\">43</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #000000;\">invalid</span> conversion <span style=\"color: #0000ff;\">from</span> <span style=\"color: #ff0000;\">'void*'</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'HPEN__*'</span><br />../../TSBrowse/TSBFUNCS.C: <span style=\"color: #000000;\">In</span> <span style=\"color: #00C800;\">function</span> <span style=\"color: #ff0000;\">'void DegradColor(HDC__*, RECT*, COLORREF, COLORREF)'</span>:<br />../../TSBrowse/TSBFUNCS.C:<span style=\"color: #000000;\">941</span>:<span style=\"color: #000000;\">42</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #000000;\">invalid</span> conversion <span style=\"color: #0000ff;\">from</span> <span style=\"color: #ff0000;\">'void*'</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'HBRUSH__*'</span><br />hbmk2: <span style=\"color: #000000;\">Erro</span>: <span style=\"color: #000000;\">Executando</span> compilador C/C++. <span style=\"color: #000000;\">1</span><br /> </div>[/code:3a235eaw]\n \nIs it possible to send us a light in this ?\nAnd I think it may also help with TSButton question.\nThe full [b:3a235eaw]TSBFUNCS.C[/b:3a235eaw] is:\n \n[code=fw:3a235eaw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">/***************************************************************<br />This file contains the special painting routines used by TSBrowse Class<br />Last update: 22/02/2006<br />***************************************************************/</span><br /><span style=\"color: #00D7D7;\">#define</span> _WIN32_IE 0x0500<br /><span style=\"color: #00D7D7;\">#define</span> HB_OS_WIN_USED<br /><span style=\"color: #00D7D7;\">#define</span> _WIN32_WINNT 0x0400<br /><span style=\"color: #00D7D7;\">#include</span> <shlobj.h><br /><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><span style=\"color: #00D7D7;\">#include</span> <commctrl.h><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"hbapi.h\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"hbvm.h\"</span><br /><br />#ifdef __XHARBOUR__<br /><span style=\"color: #00D7D7;\">#define</span> HB_STORNI<span style=\"color: #000000;\">(</span> n, x, y <span style=\"color: #000000;\">)</span> hb_storni<span style=\"color: #000000;\">(</span> n, x, y <span style=\"color: #000000;\">)</span><br />#else<br /><span style=\"color: #00D7D7;\">#define</span> HB_STORNI<span style=\"color: #000000;\">(</span> n, x, y <span style=\"color: #000000;\">)</span> hb_storvni<span style=\"color: #000000;\">(</span> n, x, y <span style=\"color: #000000;\">)</span><br />#endif<br /><br />void WndBoxDraw<span style=\"color: #000000;\">(</span> HDC, LPRECT, HPEN, HPEN, int, BOOL <span style=\"color: #000000;\">)</span>;<br />void cDrawCursor<span style=\"color: #000000;\">(</span> HWND, LPRECT, long, COLORREF <span style=\"color: #000000;\">)</span>;<br />void DrawCheck<span style=\"color: #000000;\">(</span> HDC, LPRECT, HPEN, int, BOOL <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #00C800;\">static</span> void GoToPoint<span style=\"color: #000000;\">(</span> HDC, int, int <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #00C800;\">static</span> void DegradColor<span style=\"color: #000000;\">(</span> HDC, RECT *, COLORREF, COLORREF <span style=\"color: #000000;\">)</span>;<br /><br />LRESULT CALLBACK WndProcBrw<span style=\"color: #000000;\">(</span> HWND hWnd, UINT <span style=\"color: #0000ff;\">message</span>, WPARAM wParam, LPARAM lParam <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">static</span> PHB_SYMB pSymbol = <span style=\"color: #00C800;\">NULL</span>;<br /> long int r;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> !pSymbol <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> pSymbol = hb_dynsymSymbol<span style=\"color: #000000;\">(</span> hb_dynsymGet<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"EVENTS\"</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> pSymbol <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> hb_vmPushSymbol<span style=\"color: #000000;\">(</span> pSymbol <span style=\"color: #000000;\">)</span>;<br /> hb_vmPushNil<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> hb_vmPushLong<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>LONG<span style=\"color: #000000;\">)</span> hWnd <span style=\"color: #000000;\">)</span>;<br /> hb_vmPushLong<span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">message</span> <span style=\"color: #000000;\">)</span>;<br /> hb_vmPushLong<span style=\"color: #000000;\">(</span> wParam <span style=\"color: #000000;\">)</span>;<br /> hb_vmPushLong<span style=\"color: #000000;\">(</span> lParam <span style=\"color: #000000;\">)</span>;<br /> hb_vmDo<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> r = hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">-1</span> <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> r != <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> r;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">(</span> DefWindowProc<span style=\"color: #000000;\">(</span>hWnd, <span style=\"color: #0000ff;\">message</span>, wParam, lParam<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><span style=\"color: #000000;\">}</span><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">(</span> REGISTER_CLASS <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> WNDCLASS WndClass;<br /><br /> HBRUSH hbrush; <span style=\"color: #B900B9;\">//= (HBRUSH)( COLOR_BTNFACE + 1 ) ;</span><br /><br /> <span style=\"color: #B900B9;\">// WndClass.style = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS ;</span><br /><br /> WndClass.<span style=\"color: #0000ff;\">style</span> = CS_DBLCLKS;<br /> WndClass.lpfnWndProc = WndProcBrw;<br /> WndClass.cbClsExtra = <span style=\"color: #000000;\">0</span>;<br /> WndClass.cbWndExtra = <span style=\"color: #000000;\">0</span>;<br /> WndClass.hInstance = GetModuleHandle<span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">NULL</span> <span style=\"color: #000000;\">)</span>;<br /> WndClass.hIcon = <span style=\"color: #000000;\">0</span>;<br /> WndClass.hCursor = LoadCursor<span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">NULL</span>, IDC_ARROW <span style=\"color: #000000;\">)</span>;<br /> hbrush = <span style=\"color: #000000;\">(</span> ISNIL<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> ? <span style=\"color: #000000;\">0</span> : <span style=\"color: #000000;\"><span style=\"color: #000000;\">(</span>HBRUSH</span><span style=\"color: #000000;\">)</span> hb_parnl<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> WndClass.hbrBackground = hbrush;<br /> WndClass.lpszMenuName = <span style=\"color: #00C800;\">NULL</span>;<br /> WndClass.lpszClassName = hb_parc<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> !RegisterClass<span style=\"color: #000000;\">(</span>&WndClass<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> MessageBox<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"Window Registration Failed!\"</span>, <span style=\"color: #ff0000;\">\"Error!\"</span>, MB_ICONEXCLAMATION | MB_OK | MB_SYSTEMMODAL <span style=\"color: #000000;\">)</span>;<br /> ExitProcess<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> hb_retnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>LONG<span style=\"color: #000000;\">)</span> hbrush <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">(</span> _CREATEWINDOWEX <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> HWND hWnd;<br /> DWORD dwExStyle = hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> LPCSTR cClass = <span style=\"color: #000000;\">(</span> LPCSTR <span style=\"color: #000000;\">)</span> hb_parc<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>;<br /> LPCSTR cTitle = <span style=\"color: #000000;\">(</span> LPCSTR <span style=\"color: #000000;\">)</span> hb_parc<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span>;<br /> int nStyle = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">)</span>;<br /> int x = <span style=\"color: #000000;\">(</span> ISNIL<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">)</span> ? CW_USEDEFAULT : <span style=\"color: #000000;\">hb_parni</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> int y = <span style=\"color: #000000;\">(</span> ISNIL<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">)</span> ? CW_USEDEFAULT : <span style=\"color: #000000;\">hb_parni</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> int nWidth = <span style=\"color: #000000;\">(</span> ISNIL<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">7</span><span style=\"color: #000000;\">)</span> ? CW_USEDEFAULT : <span style=\"color: #000000;\">hb_parni</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">7</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> int nHeight = <span style=\"color: #000000;\">(</span> ISNIL<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">)</span> ? CW_USEDEFAULT : <span style=\"color: #000000;\">hb_parni</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> HWND hWndParent = <span style=\"color: #000000;\">(</span> HWND <span style=\"color: #000000;\">)</span> hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">)</span>;<br /> HMENU hMenu = <span style=\"color: #000000;\">(</span> HMENU <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">NULL</span>;<br /> HANDLE hInstance = GetModuleHandle<span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">NULL</span> <span style=\"color: #000000;\">)</span>;<br /><br /> hWnd = CreateWindowEx<span style=\"color: #000000;\">(</span> dwExStyle, cClass, cTitle, nStyle, x, y, nWidth, nHeight, hWndParent, hMenu, <span style=\"color: #000000;\">(</span>HINSTANCE<span style=\"color: #000000;\">)</span> hInstance, <span style=\"color: #00C800;\">NULL</span> <span style=\"color: #000000;\">)</span>;<br /><br /> hb_retnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>LONG<span style=\"color: #000000;\">)</span> hWnd <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span><br /><br />void MaskRegion<span style=\"color: #000000;\">(</span> HDC hdc, RECT *rct, COLORREF cTransparentColor, COLORREF cBackgroundColor <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> HDC hdcTemp, hdcObject, hdcBack, hdcMem;<br /> POINT ptSize;<br /> COLORREF cColor;<br /> HBITMAP bmAndObject, bmAndBack, bmBackOld, bmObjectOld, bmAndTemp, bmTempOld, bmAndMem, bmMemOld;<br /> HBRUSH hBrush, hBrOld;<br /><br /> ptSize.x = rct->right - rct->left + <span style=\"color: #000000;\">1</span>;<br /> ptSize.y = rct->bottom - rct->top + <span style=\"color: #000000;\">1</span>;<br /><br /> hBrush = CreateSolidBrush<span style=\"color: #000000;\">(</span> cBackgroundColor <span style=\"color: #000000;\">)</span>;<br /><br /> hdcTemp = CreateCompatibleDC<span style=\"color: #000000;\">(</span> hdc <span style=\"color: #000000;\">)</span>;<br /> hdcObject = CreateCompatibleDC<span style=\"color: #000000;\">(</span> hdc <span style=\"color: #000000;\">)</span>;<br /> hdcBack = CreateCompatibleDC<span style=\"color: #000000;\">(</span> hdc <span style=\"color: #000000;\">)</span>;<br /> hdcMem = CreateCompatibleDC<span style=\"color: #000000;\">(</span> hdc <span style=\"color: #000000;\">)</span>;<br /><br /> bmAndTemp = CreateCompatibleBitmap<span style=\"color: #000000;\">(</span> hdc, ptSize.x, ptSize.y <span style=\"color: #000000;\">)</span>;<br /> bmAndMem = CreateCompatibleBitmap<span style=\"color: #000000;\">(</span> hdc, ptSize.x, ptSize.y <span style=\"color: #000000;\">)</span>;<br /> bmAndObject = CreateBitmap<span style=\"color: #000000;\">(</span> ptSize.x, ptSize.y, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #00C800;\">NULL</span> <span style=\"color: #000000;\">)</span>;<br /> bmAndBack = CreateBitmap<span style=\"color: #000000;\">(</span> ptSize.x, ptSize.y, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #00C800;\">NULL</span> <span style=\"color: #000000;\">)</span>;<br /><br /> bmTempOld = SelectObject<span style=\"color: #000000;\">(</span> hdcTemp, bmAndTemp <span style=\"color: #000000;\">)</span>;<br /> bmMemOld = SelectObject<span style=\"color: #000000;\">(</span> hdcMem, bmAndMem <span style=\"color: #000000;\">)</span>;<br /> bmBackOld = SelectObject<span style=\"color: #000000;\">(</span> hdcBack, bmAndBack <span style=\"color: #000000;\">)</span>;<br /> bmObjectOld = SelectObject<span style=\"color: #000000;\">(</span> hdcObject, bmAndObject <span style=\"color: #000000;\">)</span>;<br /><br /> hBrOld = SelectObject<span style=\"color: #000000;\">(</span> hdcMem, hBrush <span style=\"color: #000000;\">)</span>;<br /><br /> BitBlt<span style=\"color: #000000;\">(</span> hdcTemp, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, ptSize.x, ptSize.y, hdc, rct->left, rct->top, SRCCOPY <span style=\"color: #000000;\">)</span>;<br /><br /> SetMapMode<span style=\"color: #000000;\">(</span> hdcTemp, GetMapMode<span style=\"color: #000000;\">(</span>hdc<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /><br /> cColor = SetBkColor<span style=\"color: #000000;\">(</span> hdcTemp, cTransparentColor <span style=\"color: #000000;\">)</span>;<br /><br /> BitBlt<span style=\"color: #000000;\">(</span> hdcObject, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, ptSize.x, ptSize.y, hdcTemp, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, SRCCOPY <span style=\"color: #000000;\">)</span>;<br /><br /> SetBkColor<span style=\"color: #000000;\">(</span> hdcTemp, cColor <span style=\"color: #000000;\">)</span>;<br /><br /> BitBlt<span style=\"color: #000000;\">(</span> hdcBack, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, ptSize.x, ptSize.y, hdcObject, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, NOTSRCCOPY <span style=\"color: #000000;\">)</span>;<br /> PatBlt<span style=\"color: #000000;\">(</span> hdcMem, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, ptSize.x, ptSize.y, PATCOPY <span style=\"color: #000000;\">)</span>;<br /> BitBlt<span style=\"color: #000000;\">(</span> hdcMem, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, ptSize.x, ptSize.y, hdcObject, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, SRCAND <span style=\"color: #000000;\">)</span>;<br /> BitBlt<span style=\"color: #000000;\">(</span> hdcTemp, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, ptSize.x, ptSize.y, hdcBack, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, SRCAND <span style=\"color: #000000;\">)</span>;<br /> BitBlt<span style=\"color: #000000;\">(</span> hdcMem, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, ptSize.x, ptSize.y, hdcTemp, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, SRCPAINT <span style=\"color: #000000;\">)</span>;<br /> BitBlt<span style=\"color: #000000;\">(</span> hdc, rct->left, rct->top, ptSize.x, ptSize.y, hdcMem, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, SRCCOPY <span style=\"color: #000000;\">)</span>;<br /><br /> DeleteObject<span style=\"color: #000000;\">(</span> SelectObject<span style=\"color: #000000;\">(</span>hdcMem, hBrOld<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> DeleteObject<span style=\"color: #000000;\">(</span> SelectObject<span style=\"color: #000000;\">(</span>hdcTemp, bmTempOld<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> DeleteObject<span style=\"color: #000000;\">(</span> SelectObject<span style=\"color: #000000;\">(</span>hdcMem, bmMemOld<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> DeleteObject<span style=\"color: #000000;\">(</span> SelectObject<span style=\"color: #000000;\">(</span>hdcBack, bmBackOld<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> DeleteObject<span style=\"color: #000000;\">(</span> SelectObject<span style=\"color: #000000;\">(</span>hdcObject, bmObjectOld<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> DeleteDC<span style=\"color: #000000;\">(</span> hdcMem <span style=\"color: #000000;\">)</span>;<br /> DeleteDC<span style=\"color: #000000;\">(</span> hdcBack <span style=\"color: #000000;\">)</span>;<br /> DeleteDC<span style=\"color: #000000;\">(</span> hdcObject <span style=\"color: #000000;\">)</span>;<br /> DeleteDC<span style=\"color: #000000;\">(</span> hdcTemp <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span><br /><br />void DrawBitmap<span style=\"color: #000000;\">(</span> HDC hDC, HBITMAP hBitmap, WORD wRow, WORD wCol, WORD wWidth, WORD wHeight, DWORD dwRaster <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> HDC hDCmem = CreateCompatibleDC<span style=\"color: #000000;\">(</span> hDC <span style=\"color: #000000;\">)</span>;<br /> BITMAP bitmap;<br /> dwRaster = SRCCOPY;<br /><br /> SelectObject<span style=\"color: #000000;\">(</span> hDCmem, hBitmap <span style=\"color: #000000;\">)</span>;<br /> GetObject<span style=\"color: #000000;\">(</span> hBitmap, sizeof<span style=\"color: #000000;\">(</span>BITMAP<span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">(</span>LPVOID<span style=\"color: #000000;\">)</span> & bitmap <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> wWidth && <span style=\"color: #000000;\">(</span>wWidth != bitmap.bmWidth || wHeight != bitmap.bmHeight<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> StretchBlt<span style=\"color: #000000;\">(</span> hDC, wCol, wRow, wWidth, wHeight, hDCmem, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, bitmap.bmWidth, bitmap.bmHeight, dwRaster <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> BitBlt<span style=\"color: #000000;\">(</span> hDC, wCol, wRow, bitmap.bmWidth, bitmap.bmHeight, hDCmem, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, dwRaster <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> DeleteDC<span style=\"color: #000000;\">(</span> hDCmem <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span><br /><br />void DrawMasked<span style=\"color: #000000;\">(</span> HDC hDC, HBITMAP hbm, WORD wRow, WORD wCol <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> HDC hDcBmp = CreateCompatibleDC<span style=\"color: #000000;\">(</span> hDC <span style=\"color: #000000;\">)</span>;<br /> HDC hDcMask;<br /> HBITMAP hBmpMask, hOldBmp2, hOldBmp1 = SelectObject<span style=\"color: #000000;\">(</span> hDcBmp, hbm <span style=\"color: #000000;\">)</span>;<br /> BITMAP bm;<br /> COLORREF rgbBack;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> GetPixel<span style=\"color: #000000;\">(</span>hDcBmp, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> != GetSysColor<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">15</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> GetObject<span style=\"color: #000000;\">(</span> hbm, sizeof<span style=\"color: #000000;\">(</span>BITMAP<span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">(</span>LPSTR<span style=\"color: #000000;\">)</span> & bm <span style=\"color: #000000;\">)</span>;<br /> hDcMask = CreateCompatibleDC<span style=\"color: #000000;\">(</span> hDC <span style=\"color: #000000;\">)</span>;<br /> hBmpMask = CreateCompatibleBitmap<span style=\"color: #000000;\">(</span> hDcMask, bm.bmWidth, bm.bmHeight <span style=\"color: #000000;\">)</span>;<br /> hOldBmp2 = SelectObject<span style=\"color: #000000;\">(</span> hDcMask, hBmpMask <span style=\"color: #000000;\">)</span>;<br /> rgbBack = SetBkColor<span style=\"color: #000000;\">(</span> hDcBmp, GetPixel<span style=\"color: #000000;\">(</span>hDcBmp, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> BitBlt<span style=\"color: #000000;\">(</span> hDcMask, wRow, wCol, bm.bmWidth, bm.bmHeight, hDcBmp, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, SRCCOPY <span style=\"color: #000000;\">)</span>;<br /> SetBkColor<span style=\"color: #000000;\">(</span> hDcBmp, rgbBack <span style=\"color: #000000;\">)</span>;<br /><br /> BitBlt<span style=\"color: #000000;\">(</span> hDC, wRow, wCol, bm.bmWidth, bm.bmHeight, hDcBmp, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, SRCINVERT <span style=\"color: #000000;\">)</span>;<br /> BitBlt<span style=\"color: #000000;\">(</span> hDC, wRow, wCol, bm.bmWidth, bm.bmHeight, hDcMask, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, SRCAND <span style=\"color: #000000;\">)</span>;<br /> BitBlt<span style=\"color: #000000;\">(</span> hDC, wRow, wCol, bm.bmWidth, bm.bmHeight, hDcBmp, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, SRCINVERT <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #B900B9;\">//</span><br /><br /> BitBlt<span style=\"color: #000000;\">(</span> hDcBmp, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, bm.bmWidth, bm.bmHeight, hDC, wRow, wCol, SRCCOPY <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #B900B9;\">//</span><br /><br /> SelectObject<span style=\"color: #000000;\">(</span> hDcMask, hOldBmp2 <span style=\"color: #000000;\">)</span>;<br /> DeleteObject<span style=\"color: #000000;\">(</span> hBmpMask <span style=\"color: #000000;\">)</span>;<br /> DeleteDC<span style=\"color: #000000;\">(</span> hDcMask <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> SelectObject<span style=\"color: #000000;\">(</span> hDcBmp, hOldBmp1 <span style=\"color: #000000;\">)</span>;<br /> DeleteDC<span style=\"color: #000000;\">(</span> hDcBmp <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">(</span> TSDRAWCELL <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> HWND hWnd = <span style=\"color: #000000;\">(</span> HWND <span style=\"color: #000000;\">)</span> hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> HDC hDC = <span style=\"color: #000000;\">(</span> HDC <span style=\"color: #000000;\">)</span> hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>;<br /> int nRow = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span>;<br /> int nColumn = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">)</span>;<br /> int nWidth = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">)</span>;<br /> LPSTR cData = <span style=\"color: #000000;\">(</span> LPSTR <span style=\"color: #000000;\">)</span> hb_parc<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">)</span>;<br /> int nLen = hb_parclen<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">)</span>;<br /> DWORD nAlign = hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">)</span>;<br /> COLORREF clrFore = hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">)</span>;<br /> COLORREF clrBack = hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">)</span>;<br /> HFONT hFont = <span style=\"color: #000000;\">(</span> HFONT <span style=\"color: #000000;\">)</span> hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">)</span>;<br /> HBITMAP hBitMap = <span style=\"color: #000000;\">(</span> HBITMAP <span style=\"color: #000000;\">)</span> hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">11</span> <span style=\"color: #000000;\">)</span>;<br /> int nHeightCell = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">12</span> <span style=\"color: #000000;\">)</span>;<br /> BOOL b3DLook = hb_parl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">13</span> <span style=\"color: #000000;\">)</span>;<br /> int nLineStyle = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">14</span> <span style=\"color: #000000;\">)</span>;<br /> COLORREF clrLine = hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">15</span> <span style=\"color: #000000;\">)</span>;<br /> int nHeadFoot = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">16</span> <span style=\"color: #000000;\">)</span>;<br /> int nHeightHead = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">17</span> <span style=\"color: #000000;\">)</span>;<br /> int nHeightFoot = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">18</span> <span style=\"color: #000000;\">)</span>;<br /> int nHeightSuper = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">19</span> <span style=\"color: #000000;\">)</span>;<br /> int nHeightSpec = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">20</span> <span style=\"color: #000000;\">)</span>;<br /> BOOL bAdjBmp = hb_parl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">21</span> <span style=\"color: #000000;\">)</span>;<br /> BOOL bMultiLine = hb_parl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">22</span> <span style=\"color: #000000;\">)</span>;<br /> int nVAlign = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">23</span> <span style=\"color: #000000;\">)</span>;<br /> int nVertText = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">24</span> <span style=\"color: #000000;\">)</span>;<br /> COLORREF clrTo = hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">25</span> <span style=\"color: #000000;\">)</span>;<br /> BOOL bOpaque = hb_parl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">26</span> <span style=\"color: #000000;\">)</span>;<br /> HBRUSH wBrush = <span style=\"color: #000000;\">(</span> HBRUSH <span style=\"color: #000000;\">)</span> hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">27</span> <span style=\"color: #000000;\">)</span>;<br /> BOOL b3DInv = <span style=\"color: #000000;\">(</span> ISNIL<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">28</span><span style=\"color: #000000;\">)</span> ? <span style=\"color: #00C800;\">FALSE</span> : !hb_parl<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">28</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> BOOL b3D = <span style=\"color: #000000;\">(</span> ISNIL<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">28</span><span style=\"color: #000000;\">)</span> ? <span style=\"color: #00C800;\">FALSE</span> : <span style=\"color: #00C800;\">TRUE</span> <span style=\"color: #000000;\">)</span>;<br /> COLORREF nClr3DL = hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">29</span> <span style=\"color: #000000;\">)</span>;<br /> COLORREF nClr3DS = hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">30</span> <span style=\"color: #000000;\">)</span>;<br /> long lCursor = hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">31</span> <span style=\"color: #000000;\">)</span>;<br /><br /> int ixLayOut = HIWORD<span style=\"color: #000000;\">(</span> nAlign <span style=\"color: #000000;\">)</span>;<br /> int iAlign = LOWORD<span style=\"color: #000000;\">(</span> nAlign <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #B900B9;\">// int iTxtW = 0; //LOWORD( GetTextExtentPoint( hDC, cData, nLen,0 ) ) ;</span><br /><br /> BOOL bGrid = <span style=\"color: #000000;\">(</span> nLineStyle > <span style=\"color: #000000;\">0</span> ? <span style=\"color: #00C800;\">TRUE</span> : <span style=\"color: #00C800;\">FALSE</span> <span style=\"color: #000000;\">)</span>;<br /> BOOL bHeader = <span style=\"color: #000000;\">(</span> nHeadFoot == <span style=\"color: #000000;\">1</span> ? <span style=\"color: #00C800;\">TRUE</span> : <span style=\"color: #00C800;\">FALSE</span> <span style=\"color: #000000;\">)</span>;<br /> BOOL bFooter = <span style=\"color: #000000;\">(</span> nHeadFoot == <span style=\"color: #000000;\">2</span> ? <span style=\"color: #00C800;\">TRUE</span> : <span style=\"color: #00C800;\">FALSE</span> <span style=\"color: #000000;\">)</span>;<br /> BOOL bSuper = <span style=\"color: #000000;\">(</span> nHeadFoot == <span style=\"color: #000000;\">3</span> ? <span style=\"color: #00C800;\">TRUE</span> : <span style=\"color: #00C800;\">FALSE</span> <span style=\"color: #000000;\">)</span>;<br /> BOOL bSpecHd = <span style=\"color: #000000;\">(</span> nHeadFoot == <span style=\"color: #000000;\">4</span> ? <span style=\"color: #00C800;\">TRUE</span> : <span style=\"color: #00C800;\">FALSE</span> <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">//New SH</span><br /> BOOL bChecked = <span style=\"color: #000000;\">(</span> nVertText == <span style=\"color: #000000;\">3</span> ? <span style=\"color: #00C800;\">TRUE</span> : <span style=\"color: #00C800;\">FALSE</span> <span style=\"color: #000000;\">)</span>;<br /> BOOL bBrush = <span style=\"color: #00C800;\">FALSE</span>; <span style=\"color: #B900B9;\">//( wBrush > 0 ? TRUE : FALSE ) ;</span><br /> BOOL bDegrad = <span style=\"color: #000000;\">(</span> clrTo == clrBack ? <span style=\"color: #00C800;\">FALSE</span> : <span style=\"color: #00C800;\">TRUE</span> <span style=\"color: #000000;\">)</span>;<br /> HFONT hOldFont = <span style=\"color: #000000;\">0</span>;<br /> BOOL bDestroyDC = <span style=\"color: #00C800;\">FALSE</span>;<br /> HPEN hGrayPen = CreatePen<span style=\"color: #000000;\">(</span> PS_SOLID, <span style=\"color: #000000;\">1</span>, clrLine <span style=\"color: #000000;\">)</span>;<br /> HPEN hWhitePen = CreatePen<span style=\"color: #000000;\">(</span> PS_SOLID, <span style=\"color: #000000;\">1</span>, GetSysColor<span style=\"color: #000000;\">(</span>COLOR_BTNHIGHLIGHT<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /><br /> RECT rct;<br /> BITMAP bm;<br /> int nTop, nLeft, nBkOld, iFlags;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #0000ff;\">size</span>;<br /> int iTxtW = <span style=\"color: #000000;\">0</span>;<br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> GetTextExtentPoint32<span style=\"color: #000000;\">(</span>hDC, cData, nLen, &size<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> iTxtW = <span style=\"color: #0000ff;\">size</span>.cx;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> !hDC <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> bDestroyDC = <span style=\"color: #00C800;\">TRUE</span>;<br /> hDC = GetDC<span style=\"color: #000000;\">(</span> hWnd <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> hFont <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> hOldFont = SelectObject<span style=\"color: #000000;\">(</span> hDC, hFont <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> GetClientRect<span style=\"color: #000000;\">(</span> hWnd, &rct <span style=\"color: #000000;\">)</span>;<br /><br /> SetTextColor<span style=\"color: #000000;\">(</span> hDC, clrFore <span style=\"color: #000000;\">)</span>;<br /> SetBkColor<span style=\"color: #000000;\">(</span> hDC, clrBack <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> nRow == <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> bSpecHd <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> rct.top = <span style=\"color: #000000;\">(</span> nHeightHead + nHeightSuper - <span style=\"color: #000000;\">(</span>nHeightSuper ? <span style=\"color: #000000;\">1</span> : <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> rct.top = <span style=\"color: #000000;\">(</span> bHeader ? nHeightSuper - <span style=\"color: #000000;\">(</span>nHeightSuper ? <span style=\"color: #000000;\">1</span> : <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> : <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> rct.top = <span style=\"color: #000000;\">(</span> bFooter ? rct.bottom - nHeightFoot + <span style=\"color: #000000;\">1</span> : <span style=\"color: #000000;\">nHeightHead</span> + nHeightSuper - <span style=\"color: #000000;\">(</span>nHeightSuper ? <span style=\"color: #000000;\">1</span> : <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> + nHeightSpec + <span style=\"color: #000000;\">(</span>nHeightCell * <span style=\"color: #000000;\">(</span>nRow - <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> rct.bottom = rct.top + <span style=\"color: #000000;\">(</span> bHeader ? nHeightHead : <span style=\"color: #000000;\"><span style=\"color: #000000;\">(</span>bSuper</span> ? nHeightSuper : <span style=\"color: #000000;\">nHeightCell</span><span style=\"color: #000000;\">)</span> - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> rct.bottom = <span style=\"color: #000000;\">(</span> bSpecHd ? rct.bottom + nHeightSpec : <span style=\"color: #000000;\">rct</span>.bottom <span style=\"color: #000000;\">)</span> ;<br /><br /> <span style=\"color: #B900B9;\">/* Don't let left side go beyond rct.right of Client Rect. */</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> nColumn - <span style=\"color: #000000;\">(</span>rct.<span style=\"color: #0000ff;\">right</span> - rct.<span style=\"color: #0000ff;\">left</span><span style=\"color: #000000;\">)</span> <= <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> rct.<span style=\"color: #0000ff;\">left</span> = nColumn;<br /><br /> <span style=\"color: #B900B9;\">/* if nWidth == -1 or -2, it indicates the last column so go to limit,<br /> Don't let right side go beyond rct.right of Client Rect. */</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>nWidth >= <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> && <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>rct.<span style=\"color: #0000ff;\">left</span> + nWidth - rct.<span style=\"color: #0000ff;\">right</span><span style=\"color: #000000;\">)</span> <= <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #B900B9;\">// negative values have different meanings</span><br /> rct.<span style=\"color: #0000ff;\">right</span> = rct.<span style=\"color: #0000ff;\">left</span> + nWidth;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> !bDegrad <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> rct.bottom += <span style=\"color: #000000;\">(</span> bHeader ? <span style=\"color: #000000;\">0</span> : <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> rct.<span style=\"color: #0000ff;\">right</span> += <span style=\"color: #000000;\">1</span>;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> !bBrush <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> ExtTextOut<span style=\"color: #000000;\">(</span> hDC, rct.<span style=\"color: #0000ff;\">left</span>, rct.top, ETO_OPAQUE | ETO_CLIPPED, &rct, <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> FillRect<span style=\"color: #000000;\">(</span> hDC, &rct, wBrush <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> rct.bottom -= <span style=\"color: #000000;\">(</span> bHeader ? <span style=\"color: #000000;\">0</span> : <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> rct.<span style=\"color: #0000ff;\">right</span> -= <span style=\"color: #000000;\">1</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> DegradColor<span style=\"color: #000000;\">(</span> hDC, &rct, clrBack, clrTo <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> hBitMap <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> !bAdjBmp <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> GetObject<span style=\"color: #000000;\">(</span> hBitMap, sizeof<span style=\"color: #000000;\">(</span>BITMAP<span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">(</span>LPSTR<span style=\"color: #000000;\">)</span> & bm <span style=\"color: #000000;\">)</span>;<br /> nTop = rct.top + <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>rct.bottom - rct.top + <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> - <span style=\"color: #000000;\">(</span> bm.bmHeight / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">switch</span><span style=\"color: #000000;\">(</span> ixLayOut <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// bitmap layout x coordinate</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">0</span>: <span style=\"color: #B900B9;\">// column left</span><br /> nLeft = rct.<span style=\"color: #0000ff;\">left</span>;<br /> <span style=\"color: #00C800;\">break</span>;<br /><br /> <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">1</span>: <span style=\"color: #B900B9;\">// column center (text -if any- may overwrite the bitmap)</span><br /> nLeft = rct.<span style=\"color: #0000ff;\">left</span> + <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>rct.<span style=\"color: #0000ff;\">right</span> - rct.<span style=\"color: #0000ff;\">left</span> + <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> - <span style=\"color: #000000;\">(</span> bm.bmWidth / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> - <span style=\"color: #000000;\">1</span>;<br /> <span style=\"color: #00C800;\">break</span>;<br /><br /> <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">2</span>: <span style=\"color: #B900B9;\">// column right</span><br /> nLeft = rct.<span style=\"color: #0000ff;\">right</span> - <span style=\"color: #000000;\">(</span> bm.bmWidth + <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">break</span>;<br /><br /> <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">3</span>: <span style=\"color: #B900B9;\">// left of centered text</span><br /> nLeft = <span style=\"color: #0000ff;\">max</span><span style=\"color: #000000;\">(</span> rct.<span style=\"color: #0000ff;\">left</span>, rct.<span style=\"color: #0000ff;\">left</span> + <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>rct.<span style=\"color: #0000ff;\">right</span> - rct.<span style=\"color: #0000ff;\">left</span> + <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span> / <span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> - <span style=\"color: #000000;\">(</span>iTxtW / <span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> - bm.bmWidth - <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">break</span>;<br /><br /> <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">4</span>: <span style=\"color: #B900B9;\">// right of centered text</span><br /> nLeft = rct.<span style=\"color: #0000ff;\">left</span> + <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>rct.<span style=\"color: #0000ff;\">right</span> - rct.<span style=\"color: #0000ff;\">left</span> + <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #000000;\">(</span> iTxtW / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #000000;\">2</span>;<br /> <span style=\"color: #00C800;\">break</span>;<br /><br /> <span style=\"color: #00C800;\">default</span>: <span style=\"color: #B900B9;\">// a value > 4 means specific pixel location from column left</span><br /> nLeft = rct.<span style=\"color: #0000ff;\">left</span> + ixLayOut;<br /> <span style=\"color: #00C800;\">break</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> nTop = rct.top;<br /> nLeft = rct.<span style=\"color: #0000ff;\">left</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> b3DLook <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> bAdjBmp <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> nTop = rct.top + <span style=\"color: #000000;\">1</span>;<br /> DrawBitmap<span style=\"color: #000000;\">(</span> hDC, hBitMap, nTop, rct.<span style=\"color: #0000ff;\">left</span> - <span style=\"color: #000000;\">1</span>, rct.<span style=\"color: #0000ff;\">right</span> - rct.<span style=\"color: #0000ff;\">left</span> + <span style=\"color: #000000;\">1</span>, rct.bottom - rct.top - <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>;<br /> hBitMap = <span style=\"color: #000000;\">0</span>;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> !bOpaque <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> MaskRegion<span style=\"color: #000000;\">(</span> hDC, &rct, GetPixel<span style=\"color: #000000;\">(</span>hDC, nLeft, nTop<span style=\"color: #000000;\">)</span>, GetBkColor<span style=\"color: #000000;\">(</span>hDC<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> bOpaque <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> DrawBitmap<span style=\"color: #000000;\">(</span> hDC, hBitMap, nTop, nLeft, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> DrawMasked<span style=\"color: #000000;\">(</span> hDC, hBitMap, nTop, nLeft <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> bAdjBmp <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> DrawBitmap<span style=\"color: #000000;\">(</span> hDC, hBitMap, rct.top, rct.<span style=\"color: #0000ff;\">left</span> - <span style=\"color: #000000;\">2</span>, rct.<span style=\"color: #0000ff;\">right</span> - rct.<span style=\"color: #0000ff;\">left</span> + <span style=\"color: #000000;\">3</span>, rct.bottom - rct.top - <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>;<br /> hBitMap = <span style=\"color: #000000;\">0</span>;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> !bOpaque <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> MaskRegion<span style=\"color: #000000;\">(</span> hDC, &rct, GetPixel<span style=\"color: #000000;\">(</span>hDC, nLeft, nTop<span style=\"color: #000000;\">)</span>, GetBkColor<span style=\"color: #000000;\">(</span>hDC<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> bOpaque <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> DrawBitmap<span style=\"color: #000000;\">(</span> hDC, hBitMap, nTop, nLeft, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> DrawMasked<span style=\"color: #000000;\">(</span> hDC, hBitMap, nTop, nLeft <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> nLen > <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> iAlign == DT_LEFT <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> rct.<span style=\"color: #0000ff;\">left</span> += <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> + <span style=\"color: #000000;\">(</span>hBitMap && ixLayOut == <span style=\"color: #000000;\">0</span> ? bm.bmWidth + <span style=\"color: #000000;\">1</span> : <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> iAlign == DT_RIGHT <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> rct.<span style=\"color: #0000ff;\">right</span> -= <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> + <span style=\"color: #000000;\">(</span>hBitMap && ixLayOut == <span style=\"color: #000000;\">2</span> ? bm.bmWidth + <span style=\"color: #000000;\">1</span> : <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> nVertText == <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> rct.<span style=\"color: #0000ff;\">right</span> += <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">4</span> * nLen <span style=\"color: #000000;\">)</span>;<br /> rct.bottom += <span style=\"color: #000000;\">8</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> iFlags = iAlign | DT_NOPREFIX | nVAlign * <span style=\"color: #000000;\">4</span> | <span style=\"color: #000000;\">(</span> bMultiLine && nVAlign < <span style=\"color: #000000;\">2</span> ? <span style=\"color: #000000;\">0</span> : <span style=\"color: #000000;\">DT_SINGLELINE</span> <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>nVertText == <span style=\"color: #000000;\">3</span> || nVertText == <span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> DrawCheck<span style=\"color: #000000;\">(</span> hDC, &rct, hWhitePen, iAlign, bChecked <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> nBkOld = SetBkMode<span style=\"color: #000000;\">(</span> hDC, TRANSPARENT <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> b3D <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> rct.top -= <span style=\"color: #000000;\">1</span>;<br /> rct.<span style=\"color: #0000ff;\">left</span> -= <span style=\"color: #000000;\">1</span>;<br /> rct.bottom -= <span style=\"color: #000000;\">1</span>;<br /> rct.<span style=\"color: #0000ff;\">right</span> -= <span style=\"color: #000000;\">1</span>;<br /><br /> SetTextColor<span style=\"color: #000000;\">(</span> hDC, b3DInv ? nClr3DS : <span style=\"color: #000000;\">nClr3DL</span> <span style=\"color: #000000;\">)</span>;<br /> DrawText<span style=\"color: #000000;\">(</span> hDC, cData, nLen, &rct, iFlags <span style=\"color: #000000;\">)</span>;<br /><br /> rct.top += <span style=\"color: #000000;\">2</span>;<br /> rct.<span style=\"color: #0000ff;\">left</span> += <span style=\"color: #000000;\">2</span>;<br /> rct.bottom += <span style=\"color: #000000;\">2</span>;<br /> rct.<span style=\"color: #0000ff;\">right</span> += <span style=\"color: #000000;\">2</span>;<br /><br /> SetTextColor<span style=\"color: #000000;\">(</span> hDC, b3DInv ? nClr3DL : <span style=\"color: #000000;\">nClr3DS</span> <span style=\"color: #000000;\">)</span>;<br /> DrawText<span style=\"color: #000000;\">(</span> hDC, cData, nLen, &rct, iFlags <span style=\"color: #000000;\">)</span>;<br /><br /> rct.top -= <span style=\"color: #000000;\">1</span>;<br /> rct.<span style=\"color: #0000ff;\">left</span> -= <span style=\"color: #000000;\">1</span>;<br /> rct.bottom -= <span style=\"color: #000000;\">1</span>;<br /> rct.<span style=\"color: #0000ff;\">right</span> -= <span style=\"color: #000000;\">1</span>;<br /><br /> SetTextColor<span style=\"color: #000000;\">(</span> hDC, clrFore <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> DrawText<span style=\"color: #000000;\">(</span> hDC, cData, nLen, &rct, iFlags <span style=\"color: #000000;\">)</span>;<br /> SetBkMode<span style=\"color: #000000;\">(</span> hDC, nBkOld <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> iAlign == DT_LEFT <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> rct.<span style=\"color: #0000ff;\">left</span> -= <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> + <span style=\"color: #000000;\">(</span>hBitMap && ixLayOut == <span style=\"color: #000000;\">0</span> ? bm.bmWidth + <span style=\"color: #000000;\">1</span> : <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> iAlign == DT_RIGHT <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> rct.<span style=\"color: #0000ff;\">right</span> += <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> + <span style=\"color: #000000;\">(</span>hBitMap && ixLayOut == <span style=\"color: #000000;\">2</span> ? bm.bmWidth + <span style=\"color: #000000;\">1</span> : <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> nVertText == <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> rct.<span style=\"color: #0000ff;\">right</span> -= <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">4</span> * nLen <span style=\"color: #000000;\">)</span>;<br /> rct.bottom -= <span style=\"color: #000000;\">8</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> b3DLook <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> bHeader = <span style=\"color: #000000;\">(</span> bSuper ? bSuper : <span style=\"color: #000000;\">bHeader</span> <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>nWidth != <span style=\"color: #000000;\">-2</span><span style=\"color: #000000;\">)</span> && bGrid <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #B900B9;\">// -1 draw gridline in phantom column; -2 don't draw gridline in phantom column</span><br /> WndBoxDraw<span style=\"color: #000000;\">(</span> hDC, &rct, hWhitePen, hGrayPen, b3DLook ? <span style=\"color: #000000;\">4</span> : <span style=\"color: #000000;\">nLineStyle</span>, bHeader <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> lCursor > <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> cDrawCursor<span style=\"color: #000000;\">(</span> hWnd, &rct, lCursor, clrFore <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> bHeader = <span style=\"color: #000000;\">(</span> bFooter ? bFooter : <span style=\"color: #000000;\"><span style=\"color: #000000;\">(</span>bHeader</span> || bSuper<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>nWidth != <span style=\"color: #000000;\">-2</span><span style=\"color: #000000;\">)</span> && bGrid <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #B900B9;\">// -1 draw gridline in phantom column; -2 don't draw gridline in phantom column</span><br /> WndBoxDraw<span style=\"color: #000000;\">(</span> hDC, &rct, hGrayPen, hGrayPen, nLineStyle, bHeader <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> lCursor > <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> cDrawCursor<span style=\"color: #000000;\">(</span> hWnd, &rct, lCursor, clrFore <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /><br /> DeleteObject<span style=\"color: #000000;\">(</span> hGrayPen <span style=\"color: #000000;\">)</span>;<br /> DeleteObject<span style=\"color: #000000;\">(</span> hWhitePen <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> hFont <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hOldFont <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> bDestroyDC <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> ReleaseDC<span style=\"color: #000000;\">(</span> hWnd, hDC <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><span style=\"color: #000000;\">}</span><br /><br />void WndBoxDraw<span style=\"color: #000000;\">(</span> HDC hDC, RECT *rct, HPEN hPUpLeft, HPEN hPBotRit, int nLineStyle, BOOL bHeader <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> HPEN hOldPen = SelectObject<span style=\"color: #000000;\">(</span> hDC, hPUpLeft <span style=\"color: #000000;\">)</span>;<br /> HPEN hBlack = CreatePen<span style=\"color: #000000;\">(</span> PS_SOLID, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">switch</span><span style=\"color: #000000;\">(</span> nLineStyle <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">0</span>:<br /> <span style=\"color: #00C800;\">break</span>;<br /><br /> <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">1</span>:<br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hPBotRit <span style=\"color: #000000;\">)</span>;<br /> GoToPoint<span style=\"color: #000000;\">(</span> hDC, rct->left, rct->bottom - <span style=\"color: #000000;\">(</span>bHeader ? <span style=\"color: #000000;\">1</span> : <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> LineTo<span style=\"color: #000000;\">(</span> hDC, rct->right - <span style=\"color: #000000;\">1</span>, rct->bottom - <span style=\"color: #000000;\">(</span>bHeader ? <span style=\"color: #000000;\">1</span> : <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> LineTo<span style=\"color: #000000;\">(</span> hDC, rct->right - <span style=\"color: #000000;\">1</span>, rct->top - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> bHeader <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> LineTo<span style=\"color: #000000;\">(</span> hDC, rct->left - <span style=\"color: #000000;\">1</span>, rct->top - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">break</span>;<br /><br /> <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">2</span>:<br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hPBotRit <span style=\"color: #000000;\">)</span>;<br /> GoToPoint<span style=\"color: #000000;\">(</span> hDC, rct->right - <span style=\"color: #000000;\">1</span>, rct->bottom <span style=\"color: #000000;\">)</span>;<br /> LineTo<span style=\"color: #000000;\">(</span> hDC, rct->right - <span style=\"color: #000000;\">1</span>, rct->top - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">break</span>;<br /><br /> <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">3</span>:<br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hPBotRit <span style=\"color: #000000;\">)</span>;<br /> GoToPoint<span style=\"color: #000000;\">(</span> hDC, rct->left, rct->bottom <span style=\"color: #000000;\">)</span>;<br /> LineTo<span style=\"color: #000000;\">(</span> hDC, rct->right, rct->bottom <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">break</span>;<br /><br /> <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">4</span>:<br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hPUpLeft <span style=\"color: #000000;\">)</span>;<br /> GoToPoint<span style=\"color: #000000;\">(</span> hDC, rct->left, rct->bottom <span style=\"color: #000000;\">)</span>;<br /> LineTo<span style=\"color: #000000;\">(</span> hDC, rct->left, rct->top <span style=\"color: #000000;\">)</span>;<br /> LineTo<span style=\"color: #000000;\">(</span> hDC, rct->right, rct->top <span style=\"color: #000000;\">)</span>;<br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hPBotRit <span style=\"color: #000000;\">)</span>;<br /> GoToPoint<span style=\"color: #000000;\">(</span> hDC, rct->left, rct->bottom - <span style=\"color: #000000;\">(</span>bHeader ? <span style=\"color: #000000;\">1</span> : <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> LineTo<span style=\"color: #000000;\">(</span> hDC, rct->right - <span style=\"color: #000000;\">1</span>, rct->bottom - <span style=\"color: #000000;\">(</span>bHeader ? <span style=\"color: #000000;\">1</span> : <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> LineTo<span style=\"color: #000000;\">(</span> hDC, rct->right - <span style=\"color: #000000;\">1</span>, rct->top - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">break</span>;<br /><br /> <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">5</span>:<br /> rct->top += <span style=\"color: #000000;\">1</span>;<br /> rct->left += <span style=\"color: #000000;\">1</span>;<br /> rct->bottom -= <span style=\"color: #000000;\">1</span>;<br /> rct->right -= <span style=\"color: #000000;\">1</span>;<br /> DrawFocusRect<span style=\"color: #000000;\">(</span> hDC, rct <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">break</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hOldPen <span style=\"color: #000000;\">)</span>;<br /> DeleteObject<span style=\"color: #000000;\">(</span> hBlack <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span><br /><br />HARBOUR HB_FUN_TSBRWSCROLL<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> HWND hWnd = <span style=\"color: #000000;\">(</span> HWND <span style=\"color: #000000;\">)</span> hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> int iRows = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>;<br /> HFONT hFont = <span style=\"color: #000000;\">(</span> HFONT <span style=\"color: #000000;\">)</span> hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span>;<br /> int nHeightCell = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">)</span>;<br /> int nHeightHead = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">)</span>;<br /> int nHeightFoot = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">)</span>;<br /> int nHeightSuper = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">)</span>;<br /> int nHeightSpecHd = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">)</span>;<br /><br /> HFONT hOldFont = <span style=\"color: #000000;\">0</span>;<br /> HDC hDC = GetDC<span style=\"color: #000000;\">(</span> hWnd <span style=\"color: #000000;\">)</span>;<br /> RECT rct;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> hFont <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> hOldFont = SelectObject<span style=\"color: #000000;\">(</span> hDC, hFont <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> GetClientRect<span style=\"color: #000000;\">(</span> hWnd, &rct <span style=\"color: #000000;\">)</span>;<br /><br /> rct.top += <span style=\"color: #000000;\">(</span> nHeightHead + nHeightSuper - <span style=\"color: #000000;\">(</span>nHeightSuper ? <span style=\"color: #000000;\">1</span> : <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span>+ nHeightSpecHd - <span style=\"color: #000000;\">(</span>nHeightSpecHd ? <span style=\"color: #000000;\">1</span> : <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">// exclude heading from scrolling</span><br /> rct.bottom -= nHeightFoot; <span style=\"color: #B900B9;\">// exclude footing from scrolling</span><br /> rct.bottom -= <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>rct.bottom - rct.top + <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span> % nHeightCell <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">// exclude unused portion at bottom</span><br /> ScrollWindowEx<span style=\"color: #000000;\">(</span> hWnd, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">(</span> int <span style=\"color: #000000;\">)</span> -<span style=\"color: #000000;\">(</span>nHeightCell * iRows<span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">0</span>, &rct, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> hFont <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hOldFont <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> ReleaseDC<span style=\"color: #000000;\">(</span> hWnd, hDC <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span><br /><br />HARBOUR HB_FUN_TSBRWHSCROLL<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> HWND hWnd = <span style=\"color: #000000;\">(</span> HWND <span style=\"color: #000000;\">)</span> hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> WORD wCols = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>;<br /> int nLeft = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span>;<br /> int nRight = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">)</span>;<br /><br /> HDC hDC = GetDC<span style=\"color: #000000;\">(</span> hWnd <span style=\"color: #000000;\">)</span>;<br /> RECT rct;<br /><br /> GetClientRect<span style=\"color: #000000;\">(</span> hWnd, &rct <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> nLeft <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> rct.<span style=\"color: #0000ff;\">left</span> = nLeft;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> nRight <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> rct.<span style=\"color: #0000ff;\">right</span> = nRight;<br /> <span style=\"color: #000000;\">}</span><br /><br /> ScrollWindowEx<span style=\"color: #000000;\">(</span> hWnd, wCols, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, &rct, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>;<br /><br /> ReleaseDC<span style=\"color: #000000;\">(</span> hWnd, hDC <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span><br /><br />HARBOUR HB_FUN_ROWFROMPIX<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> HWND hWnd = <span style=\"color: #000000;\">(</span> HWND <span style=\"color: #000000;\">)</span> hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> int iPixR = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>;<br /> int iCell = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span>;<br /> int iHead = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">)</span>;<br /> int iFoot = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">)</span>;<br /> int iSupH = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">)</span>;<br /> int iSpcH = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">)</span>;<br /><br /> RECT rct;<br /> int iRow;<br /><br /> GetClientRect<span style=\"color: #000000;\">(</span> hWnd, &rct <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> iPixR <= <span style=\"color: #000000;\">(</span>rct.top + iHead + iSupH<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> iRow = <span style=\"color: #000000;\">0</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> iPixR >= <span style=\"color: #000000;\">(</span>rct.top + iHead + iSupH <span style=\"color: #000000;\">)</span> && iPixR <= <span style=\"color: #000000;\">(</span>rct.top + iHead + iSupH + iSpcH<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> iRow = <span style=\"color: #000000;\">-2</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> iPixR >= <span style=\"color: #000000;\">(</span>rct.bottom - iFoot<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> iRow = <span style=\"color: #000000;\">-1</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> rct.top += <span style=\"color: #000000;\">(</span> iHead + iSupH + iSpcH <span style=\"color: #000000;\">)</span>;<br /> iRow = <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>iPixR - rct.top<span style=\"color: #000000;\">)</span> / iCell <span style=\"color: #000000;\">)</span> + <span style=\"color: #000000;\">1</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> hb_retni<span style=\"color: #000000;\">(</span> iRow <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span><br /><br />HARBOUR HB_FUN_SBGETHEIGHT<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//SBGetHeigh( hWnd, hFont, nTotal )</span><br /><span style=\"color: #000000;\">{</span><br /> HWND hWnd = <span style=\"color: #000000;\">(</span> HWND <span style=\"color: #000000;\">)</span> hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> HFONT hFont = <span style=\"color: #000000;\">(</span> HFONT <span style=\"color: #000000;\">)</span> hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>;<br /> int iTotal = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span>;<br /><br /> TEXTMETRIC tm;<br /><br /> RECT rct;<br /> HDC hDC = GetDC<span style=\"color: #000000;\">(</span> hWnd <span style=\"color: #000000;\">)</span>;<br /> HFONT hOldFont;<br /> LONG lTotHeight, lReturn;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> iTotal < <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> hFont <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> hOldFont = SelectObject<span style=\"color: #000000;\">(</span> hDC, hFont <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> GetTextMetrics<span style=\"color: #000000;\">(</span> hDC, &tm <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> hFont <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hOldFont <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> ReleaseDC<span style=\"color: #000000;\">(</span> hWnd, hDC <span style=\"color: #000000;\">)</span>;<br /> lReturn = <span style=\"color: #000000;\">(</span> iTotal == <span style=\"color: #000000;\">1</span> ? tm.tmAveCharWidth : <span style=\"color: #000000;\">tm</span>.tmHeight <span style=\"color: #000000;\">)</span>;<br /> hb_retnl<span style=\"color: #000000;\">(</span> lReturn <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> GetWindowRect<span style=\"color: #000000;\">(</span> hWnd, &rct <span style=\"color: #000000;\">)</span>;<br /> lTotHeight = rct.bottom - rct.top + <span style=\"color: #000000;\">1</span>;<br /> ReleaseDC<span style=\"color: #000000;\">(</span> hWnd, hDC <span style=\"color: #000000;\">)</span>;<br /> hb_retnl<span style=\"color: #000000;\">(</span> lTotHeight <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><span style=\"color: #000000;\">}</span><br /><br />HARBOUR HB_FUN_COUNTROWS<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// ( hWnd, nHeightCell, nHeightHead,</span><br /><br /><span style=\"color: #B900B9;\">// nHeightFoot, nHeightSuper, nHeightSpec ) -> nRows</span><br /><br /><span style=\"color: #000000;\">{</span><br /> HWND hWnd = <span style=\"color: #000000;\">(</span> HWND <span style=\"color: #000000;\">)</span> hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> int iCell = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>;<br /><br /> int iHead = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span>;<br /> int iFoot = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">)</span>;<br /> int iSupH = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">)</span>;<br /> int iSpcH = hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">)</span>;<br /><br /> RECT rct;<br /> int iRows, iFree;<br /><br /> GetClientRect<span style=\"color: #000000;\">(</span> hWnd, &rct <span style=\"color: #000000;\">)</span>;<br /><br /> iFree = rct.bottom - rct.top + <span style=\"color: #000000;\">1</span> - iSupH - iHead - iFoot - iSpcH;<br /> iRows = iFree / iCell;<br /><br /> hb_retni<span style=\"color: #000000;\">(</span> iRows <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span><br /><br />HARBOUR HB_FUN_SBMPHEIGHT<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// ( hBmp )</span><br /><span style=\"color: #000000;\">{</span><br /> HBITMAP hBmp = <span style=\"color: #000000;\">(</span> HBITMAP <span style=\"color: #000000;\">)</span> hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> BITMAP bm;<br /><br /> GetObject<span style=\"color: #000000;\">(</span> hBmp, sizeof<span style=\"color: #000000;\">(</span>BITMAP<span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">(</span>LPSTR<span style=\"color: #000000;\">)</span> & bm <span style=\"color: #000000;\">)</span>;<br /><br /> hb_retni<span style=\"color: #000000;\">(</span> bm.bmHeight <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span><br /><br />HARBOUR HB_FUN_SBMPWIDTH<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> HBITMAP hBmp = <span style=\"color: #000000;\">(</span> HBITMAP <span style=\"color: #000000;\">)</span> hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> BITMAP bm;<br /><br /> GetObject<span style=\"color: #000000;\">(</span> hBmp, sizeof<span style=\"color: #000000;\">(</span>BITMAP<span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">(</span>LPSTR<span style=\"color: #000000;\">)</span> & bm <span style=\"color: #000000;\">)</span>;<br /><br /> hb_retni<span style=\"color: #000000;\">(</span> bm.bmWidth <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span><br /><br />void DrawCheck<span style=\"color: #000000;\">(</span> HDC hDC, LPRECT rct, HPEN hWhitePen, int nAlign, BOOL bChecked <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> RECT lrct;<br /> HPEN hOldPen;<br /> HBRUSH hOldBrush;<br /><br /> HBRUSH hGrayBrush = CreateSolidBrush<span style=\"color: #000000;\">(</span> RGB<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> HBRUSH hWhiteBrush = CreateSolidBrush<span style=\"color: #000000;\">(</span> RGB<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> HPEN hBlackPen = CreatePen<span style=\"color: #000000;\">(</span> PS_SOLID, <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> HPEN hLGrayPen = CreatePen<span style=\"color: #000000;\">(</span> PS_SOLID, <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> HPEN hGrayPen = CreatePen<span style=\"color: #000000;\">(</span> PS_SOLID, <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">128</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /><br /> hOldBrush = SelectObject<span style=\"color: #000000;\">(</span> hDC, hGrayBrush <span style=\"color: #000000;\">)</span>;<br /><br /> lrct.top = rct->top + <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>rct->bottom - rct->top + <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span> / <span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> - <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">switch</span><span style=\"color: #000000;\">(</span> nAlign <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">0</span>: lrct.<span style=\"color: #0000ff;\">left</span> = rct->left; <span style=\"color: #00C800;\">break</span>;<br /> <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">1</span>: lrct.<span style=\"color: #0000ff;\">left</span> = rct->left + <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>rct->right - rct->left + <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> - <span style=\"color: #000000;\">8</span>; <span style=\"color: #00C800;\">break</span>;<br /> <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">2</span>: lrct.<span style=\"color: #0000ff;\">left</span> = rct->right - <span style=\"color: #000000;\">16</span>; <span style=\"color: #00C800;\">break</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> lrct.bottom = lrct.top + <span style=\"color: #000000;\">16</span>;<br /> lrct.<span style=\"color: #0000ff;\">right</span> = lrct.<span style=\"color: #0000ff;\">left</span> + <span style=\"color: #000000;\">16</span>;<br /><br /> lrct.<span style=\"color: #0000ff;\">left</span> -= <span style=\"color: #000000;\">1</span>;<br /> lrct.top -= <span style=\"color: #000000;\">1</span>;<br /> lrct.<span style=\"color: #0000ff;\">right</span> += <span style=\"color: #000000;\">1</span>;<br /> lrct.bottom += <span style=\"color: #000000;\">1</span>;<br /><br /> hOldPen = SelectObject<span style=\"color: #000000;\">(</span> hDC, hBlackPen <span style=\"color: #000000;\">)</span>;<br /> Rectangle<span style=\"color: #000000;\">(</span> hDC, lrct.<span style=\"color: #0000ff;\">left</span>, lrct.top, lrct.<span style=\"color: #0000ff;\">right</span>, lrct.bottom <span style=\"color: #000000;\">)</span>;<br /><br /> lrct.<span style=\"color: #0000ff;\">left</span> += <span style=\"color: #000000;\">1</span>;<br /> lrct.top += <span style=\"color: #000000;\">1</span>;<br /> lrct.<span style=\"color: #0000ff;\">right</span> -= <span style=\"color: #000000;\">1</span>;<br /> lrct.bottom -= <span style=\"color: #000000;\">1</span>;<br /><br /> FillRect<span style=\"color: #000000;\">(</span> hDC, &lrct, hGrayBrush <span style=\"color: #000000;\">)</span>;<br /><br /> lrct.top += <span style=\"color: #000000;\">2</span>;<br /> lrct.<span style=\"color: #0000ff;\">left</span> += <span style=\"color: #000000;\">2</span>;<br /> lrct.<span style=\"color: #0000ff;\">right</span> -= <span style=\"color: #000000;\">1</span>;<br /> lrct.bottom -= <span style=\"color: #000000;\">1</span>;<br /><br /> FillRect<span style=\"color: #000000;\">(</span> hDC, &lrct, hWhiteBrush <span style=\"color: #000000;\">)</span>;<br /><br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hOldBrush <span style=\"color: #000000;\">)</span>;<br /> DeleteObject<span style=\"color: #000000;\">(</span> hGrayBrush <span style=\"color: #000000;\">)</span>;<br /> DeleteObject<span style=\"color: #000000;\">(</span> hWhiteBrush <span style=\"color: #000000;\">)</span>;<br /><br /> lrct.<span style=\"color: #0000ff;\">right</span> -= <span style=\"color: #000000;\">1</span>;<br /> lrct.bottom -= <span style=\"color: #000000;\">1</span>;<br /><br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hGrayPen <span style=\"color: #000000;\">)</span>;<br /> Rectangle<span style=\"color: #000000;\">(</span> hDC, lrct.<span style=\"color: #0000ff;\">left</span>, lrct.top, lrct.<span style=\"color: #0000ff;\">right</span>, lrct.bottom <span style=\"color: #000000;\">)</span>;<br /><br /> lrct.top += <span style=\"color: #000000;\">1</span>;<br /> lrct.<span style=\"color: #0000ff;\">left</span> += <span style=\"color: #000000;\">1</span>;<br /> lrct.<span style=\"color: #0000ff;\">right</span> -= <span style=\"color: #000000;\">1</span>;<br /> lrct.bottom -= <span style=\"color: #000000;\">1</span>;<br /><br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hBlackPen <span style=\"color: #000000;\">)</span>;<br /> Rectangle<span style=\"color: #000000;\">(</span> hDC, lrct.<span style=\"color: #0000ff;\">left</span>, lrct.top, lrct.<span style=\"color: #0000ff;\">right</span>, lrct.bottom <span style=\"color: #000000;\">)</span>;<br /><br /> lrct.top += <span style=\"color: #000000;\">1</span>;<br /> lrct.<span style=\"color: #0000ff;\">left</span> += <span style=\"color: #000000;\">1</span>;<br /><br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hWhitePen <span style=\"color: #000000;\">)</span>;<br /> Rectangle<span style=\"color: #000000;\">(</span> hDC, lrct.<span style=\"color: #0000ff;\">left</span>, lrct.top, lrct.<span style=\"color: #0000ff;\">right</span>, lrct.bottom <span style=\"color: #000000;\">)</span>;<br /><br /> lrct.top += <span style=\"color: #000000;\">1</span>;<br /> lrct.<span style=\"color: #0000ff;\">right</span> -= <span style=\"color: #000000;\">2</span>;<br /> lrct.bottom -= <span style=\"color: #000000;\">1</span>;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> bChecked <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> GoToPoint<span style=\"color: #000000;\">(</span> hDC, lrct.<span style=\"color: #0000ff;\">right</span>, lrct.top <span style=\"color: #000000;\">)</span>;<br /><br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hBlackPen <span style=\"color: #000000;\">)</span>;<br /><br /> LineTo<span style=\"color: #000000;\">(</span> hDC, lrct.<span style=\"color: #0000ff;\">right</span> - <span style=\"color: #000000;\">4</span>, lrct.bottom - <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span>;<br /> LineTo<span style=\"color: #000000;\">(</span> hDC, lrct.<span style=\"color: #0000ff;\">right</span> - <span style=\"color: #000000;\">6</span>, lrct.bottom - <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">)</span>;<br /><br /> GoToPoint<span style=\"color: #000000;\">(</span> hDC, lrct.<span style=\"color: #0000ff;\">right</span>, lrct.top + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> LineTo<span style=\"color: #000000;\">(</span> hDC, lrct.<span style=\"color: #0000ff;\">right</span> - <span style=\"color: #000000;\">4</span>, lrct.bottom - <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>;<br /> LineTo<span style=\"color: #000000;\">(</span> hDC, lrct.<span style=\"color: #0000ff;\">right</span> - <span style=\"color: #000000;\">6</span>, lrct.bottom - <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">)</span>;<br /><br /> GoToPoint<span style=\"color: #000000;\">(</span> hDC, lrct.<span style=\"color: #0000ff;\">right</span>, lrct.top + <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>;<br /> LineTo<span style=\"color: #000000;\">(</span> hDC, lrct.<span style=\"color: #0000ff;\">right</span> - <span style=\"color: #000000;\">4</span>, lrct.bottom - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> LineTo<span style=\"color: #000000;\">(</span> hDC, lrct.<span style=\"color: #0000ff;\">right</span> - <span style=\"color: #000000;\">6</span>, lrct.bottom - <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hOldPen <span style=\"color: #000000;\">)</span>;<br /> DeleteObject<span style=\"color: #000000;\">(</span> hGrayPen <span style=\"color: #000000;\">)</span>;<br /> DeleteObject<span style=\"color: #000000;\">(</span> hLGrayPen <span style=\"color: #000000;\">)</span>;<br /> DeleteObject<span style=\"color: #000000;\">(</span> hBlackPen <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span><br /><br /><span style=\"color: #00C800;\">static</span> void GoToPoint<span style=\"color: #000000;\">(</span> HDC hDC, int ix, int iy <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> POINT <span style=\"color: #0000ff;\">pt</span>;<br /><br /> MoveToEx<span style=\"color: #000000;\">(</span> hDC, ix, iy, &pt <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span><br /><br /><span style=\"color: #00C800;\">static</span> void DegradColor<span style=\"color: #000000;\">(</span> HDC hDC, RECT *rori, COLORREF cFrom, COLORREF cTo <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> int clr1r, clr1g, clr1b, clr2r, clr2g, clr2b;<br /> signed int iEle, iRed, iGreen, iBlue;<br /> int iTot = <span style=\"color: #000000;\">(</span> rori->bottom + <span style=\"color: #000000;\">2</span> - rori->top <span style=\"color: #000000;\">)</span>;<br /> BOOL bDir;<br /> RECT rct;<br /> HBRUSH hOldBrush, hBrush;<br /><br /> rct.top = rori->top;<br /> rct.<span style=\"color: #0000ff;\">left</span> = rori->left;<br /> rct.bottom = rori->bottom;<br /> rct.<span style=\"color: #0000ff;\">right</span> = rori->right;<br /><br /> clr1r = GetRValue<span style=\"color: #000000;\">(</span> cFrom <span style=\"color: #000000;\">)</span>;<br /> clr1g = GetGValue<span style=\"color: #000000;\">(</span> cFrom <span style=\"color: #000000;\">)</span>;<br /> clr1b = GetBValue<span style=\"color: #000000;\">(</span> cFrom <span style=\"color: #000000;\">)</span>;<br /><br /> clr2r = GetRValue<span style=\"color: #000000;\">(</span> cTo <span style=\"color: #000000;\">)</span>;<br /> clr2g = GetGValue<span style=\"color: #000000;\">(</span> cTo <span style=\"color: #000000;\">)</span>;<br /> clr2b = GetBValue<span style=\"color: #000000;\">(</span> cTo <span style=\"color: #000000;\">)</span>;<br /><br /> iRed = <span style=\"color: #0000ff;\">abs</span><span style=\"color: #000000;\">(</span> clr2r - clr1r <span style=\"color: #000000;\">)</span>;<br /> iGreen = <span style=\"color: #0000ff;\">abs</span><span style=\"color: #000000;\">(</span> clr2g - clr1g <span style=\"color: #000000;\">)</span>;<br /> iBlue = <span style=\"color: #0000ff;\">abs</span><span style=\"color: #000000;\">(</span> clr2b - clr1b <span style=\"color: #000000;\">)</span>;<br /><br /> iRed = <span style=\"color: #000000;\">(</span> iRed < <span style=\"color: #000000;\">0</span> ? <span style=\"color: #000000;\">0</span> : <span style=\"color: #000000;\"><span style=\"color: #000000;\">(</span>iRed</span> / iTot<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> iGreen = <span style=\"color: #000000;\">(</span> iGreen < <span style=\"color: #000000;\">0</span> ? <span style=\"color: #000000;\">0</span> : <span style=\"color: #000000;\"><span style=\"color: #000000;\">(</span>iGreen</span> / iTot<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> iBlue = <span style=\"color: #000000;\">(</span> iBlue < <span style=\"color: #000000;\">0</span> ? <span style=\"color: #000000;\">0</span> : <span style=\"color: #000000;\"><span style=\"color: #000000;\">(</span>iBlue</span> / iTot<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /><br /> rct.bottom = rct.top + <span style=\"color: #000000;\">1</span>;<br /><br /> hBrush = CreateSolidBrush<span style=\"color: #000000;\">(</span> RGB<span style=\"color: #000000;\">(</span>clr1r, clr1g, clr1b<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> hOldBrush = SelectObject<span style=\"color: #000000;\">(</span> hDC, hBrush <span style=\"color: #000000;\">)</span>;<br /> FillRect<span style=\"color: #000000;\">(</span> hDC, &rct, hBrush <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">for</span><span style=\"color: #000000;\">(</span> iEle = <span style=\"color: #000000;\">1</span>; iEle < iTot; iEle++ <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> bDir = <span style=\"color: #000000;\">(</span> clr2r >= clr1r ? <span style=\"color: #00C800;\">TRUE</span> : <span style=\"color: #00C800;\">FALSE</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> bDir <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> clr1r += iRed;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> clr1r -= iRed;<br /> <span style=\"color: #000000;\">}</span><br /><br /> clr1r = <span style=\"color: #000000;\">(</span> clr1r < <span style=\"color: #000000;\">0</span> ? <span style=\"color: #000000;\">0</span> : <span style=\"color: #000000;\">clr1r</span> > <span style=\"color: #000000;\">255</span> ? <span style=\"color: #000000;\">255</span> : <span style=\"color: #000000;\">clr1r</span> <span style=\"color: #000000;\">)</span>;<br /><br /> bDir = <span style=\"color: #000000;\">(</span> clr2g >= clr1g ? <span style=\"color: #00C800;\">TRUE</span> : <span style=\"color: #00C800;\">FALSE</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> bDir <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> clr1g += iGreen;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> clr1g -= iGreen;<br /> <span style=\"color: #000000;\">}</span><br /><br /> clr1g = <span style=\"color: #000000;\">(</span> clr1g < <span style=\"color: #000000;\">0</span> ? <span style=\"color: #000000;\">0</span> : <span style=\"color: #000000;\">clr1g</span> > <span style=\"color: #000000;\">255</span> ? <span style=\"color: #000000;\">255</span> : <span style=\"color: #000000;\">clr1g</span> <span style=\"color: #000000;\">)</span>;<br /><br /> bDir = <span style=\"color: #000000;\">(</span> clr2b >= clr1b ? <span style=\"color: #00C800;\">TRUE</span> : <span style=\"color: #00C800;\">FALSE</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> bDir <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> clr1b += iBlue;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> clr1b -= iBlue;<br /> <span style=\"color: #000000;\">}</span><br /><br /> clr1b = <span style=\"color: #000000;\">(</span> clr1b < <span style=\"color: #000000;\">0</span> ? <span style=\"color: #000000;\">0</span> : <span style=\"color: #000000;\">clr1b</span> > <span style=\"color: #000000;\">255</span> ? <span style=\"color: #000000;\">255</span> : <span style=\"color: #000000;\">clr1b</span> <span style=\"color: #000000;\">)</span>;<br /><br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hOldBrush <span style=\"color: #000000;\">)</span>;<br /> DeleteObject<span style=\"color: #000000;\">(</span> hBrush <span style=\"color: #000000;\">)</span>;<br /> hBrush = CreateSolidBrush<span style=\"color: #000000;\">(</span> RGB<span style=\"color: #000000;\">(</span>clr1r, clr1g, clr1b<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hBrush <span style=\"color: #000000;\">)</span>;<br /> FillRect<span style=\"color: #000000;\">(</span> hDC, &rct, hBrush <span style=\"color: #000000;\">)</span>;<br /><br /> rct.top++;<br /> rct.bottom++;<br /> <span style=\"color: #000000;\">}</span><br /><br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hOldBrush <span style=\"color: #000000;\">)</span>;<br /> DeleteObject<span style=\"color: #000000;\">(</span> hBrush <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span><br /><br />void cDrawCursor<span style=\"color: #000000;\">(</span> HWND hWnd, RECT *rctc, long lCursor, COLORREF nClr <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> HDC hDC;<br /> HRGN hReg;<br /> COLORREF lclr = <span style=\"color: #000000;\">(</span> lCursor == <span style=\"color: #000000;\">1</span> ? RGB<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">)</span> : <span style=\"color: #000000;\">lCursor</span> == <span style=\"color: #000000;\">2</span> ? nClr : <span style=\"color: #000000;\">lCursor</span> <span style=\"color: #000000;\">)</span>;<br /> HBRUSH hBr;<br /> RECT rct;<br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> lCursor != <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> hBr = CreateSolidBrush<span style=\"color: #000000;\">(</span> lclr <span style=\"color: #000000;\">)</span>;<br /> hReg = CreateRectRgn<span style=\"color: #000000;\">(</span> rctc->left, rctc->top, rctc->right - <span style=\"color: #000000;\">1</span>, rctc->bottom <span style=\"color: #000000;\">)</span>;<br /> hDC = GetDCEx<span style=\"color: #000000;\">(</span> hWnd, hReg, DCX_CACHE <span style=\"color: #000000;\">)</span>;<br /><br /> FrameRgn<span style=\"color: #000000;\">(</span> hDC, hReg, hBr, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>;<br /><br /> ReleaseDC<span style=\"color: #000000;\">(</span> hWnd, hDC <span style=\"color: #000000;\">)</span>;<br /> DeleteObject<span style=\"color: #000000;\">(</span> hReg <span style=\"color: #000000;\">)</span>;<br /> DeleteObject<span style=\"color: #000000;\">(</span> hBr <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> rct.top = rctc->top + <span style=\"color: #000000;\">1</span>;<br /> rct.<span style=\"color: #0000ff;\">left</span> = rctc->left + <span style=\"color: #000000;\">1</span>;<br /> rct.bottom = rctc->bottom - <span style=\"color: #000000;\">1</span>;<br /> rct.<span style=\"color: #0000ff;\">right</span> = rctc->right - <span style=\"color: #000000;\">1</span>;<br /><br /> hDC = GetDC<span style=\"color: #000000;\">(</span> hWnd <span style=\"color: #000000;\">)</span>;<br /> DrawFocusRect<span style=\"color: #000000;\">(</span> hDC, &rct <span style=\"color: #000000;\">)</span>;<br /> ReleaseDC<span style=\"color: #000000;\">(</span> hWnd, hDC <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><span style=\"color: #000000;\">}</span><br /><br />HARBOUR HB_FUN_GETSCRLRANGE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// ( hWnd, nFlags )</span><br /><span style=\"color: #000000;\">{</span><br /> int iMin = <span style=\"color: #000000;\">0</span>, iMax = <span style=\"color: #000000;\">0</span>;<br /><br /> GetScrollRange<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>HWND<span style=\"color: #000000;\">)</span> hb_parnl<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span>, <span style=\"color: #B900B9;\">// its hWnd</span><br /> hb_parni<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span>, <span style=\"color: #B900B9;\">// Scroll bar flags</span><br /> &iMin, &iMax <span style=\"color: #000000;\">)</span>;<br /><br /> hb_reta<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">// { nMin, nMax }</span><br /> HB_STORNI<span style=\"color: #000000;\">(</span> iMin, <span style=\"color: #000000;\">-1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> HB_STORNI<span style=\"color: #000000;\">(</span> iMax, <span style=\"color: #000000;\">-1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span><br /><br />HARBOUR HB_FUN_GETSCRLPOS<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// ( hWnd, nFlags )</span><br /><span style=\"color: #000000;\">{</span><br /> hb_retni<span style=\"color: #000000;\">(</span> GetScrollPos<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>HWND<span style=\"color: #000000;\">)</span> hb_parnl<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span>, <span style=\"color: #B900B9;\">// its hWnd</span><br /> hb_parni<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">// Scroll bar flags</span><br /><span style=\"color: #000000;\">}</span><br /><br />HARBOUR HB_FUN_INITEDSPINNER<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> HWND hwnd;<br /> HWND hedit;<br /> HWND hupdown;<br /> int <span style=\"color: #0000ff;\">Style</span> = WS_CHILD | UDS_ARROWKEYS | UDS_ALIGNRIGHT | UDS_SETBUDDYINT | UDS_NOTHOUSANDS |WS_VISIBLE |UDS_HOTTRACK ;<span style=\"color: #B900B9;\">//| UDS_AUTOBUDDY ;</span><br /><br /> INITCOMMONCONTROLSEX i;<br /><br /> i.dwSize = sizeof<span style=\"color: #000000;\">(</span> INITCOMMONCONTROLSEX <span style=\"color: #000000;\">)</span>;<br /> InitCommonControlsEx<span style=\"color: #000000;\">(</span> &i <span style=\"color: #000000;\">)</span>;<br /><br /> hwnd = <span style=\"color: #000000;\">(</span> HWND <span style=\"color: #000000;\">)</span> hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> hedit = <span style=\"color: #000000;\">(</span> HWND <span style=\"color: #000000;\">)</span> hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>;<br /><br /> hupdown = CreateUpDownControl<span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Style</span>,hb_parni<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">)</span>,hb_parni<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">15</span>,hb_parni<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">)</span>,hwnd, <span style=\"color: #000000;\">777</span>,GetModuleHandle<span style=\"color: #000000;\">(</span><span style=\"color: #00C800;\">NULL</span><span style=\"color: #000000;\">)</span>,<br /> hedit,hb_parni<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">)</span>,hb_parni<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">7</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span>;<br /> SendMessage<span style=\"color: #000000;\">(</span> hupdown, UDM_SETRANGE32, <span style=\"color: #000000;\">(</span>WPARAM<span style=\"color: #000000;\">)</span> hb_parni<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">7</span><span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">(</span>LPARAM<span style=\"color: #000000;\">)</span> hb_parni<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /><br /> hb_retnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>LONG<span style=\"color: #000000;\">)</span> hupdown <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span><br /><br />HARBOUR HB_FUN_SETINCREMENTSPINNER<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /><br /> UDACCEL inc;<br /> SendMessage<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>HWND<span style=\"color: #000000;\">)</span> hb_parnl<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span>, UDM_GETACCEL, <span style=\"color: #000000;\">(</span>WPARAM<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">(</span>LPARAM<span style=\"color: #000000;\">)</span> & inc <span style=\"color: #000000;\">)</span>;<br /> inc.nInc = hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>;<br /> SendMessage<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>HWND<span style=\"color: #000000;\">)</span> hb_parnl<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span>, UDM_SETACCEL, <span style=\"color: #000000;\">(</span>WPARAM<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">(</span>LPARAM<span style=\"color: #000000;\">)</span> & inc <span style=\"color: #000000;\">)</span>;<br /><br /><span style=\"color: #000000;\">}</span><br /><br /> </div>[/code:3a235eaw]\n \nThanks in advance.",
"time": "10:51",
"topic": "Compiling TSButton with MinGW gcc",
"username": "concentra"
}
] | Compiling TSButton with MinGW gcc |
[
{
"date": "2011-11-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Ok,\n\nI going to compile tsbrowse and feedback in asap\n\nRegards,",
"time": "14:54",
"topic": "Compiling TSButton with MinGW gcc",
"username": "nnicanor"
}
] | Compiling TSButton with MinGW gcc |
[
{
"date": "2011-11-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks.",
"time": "10:17",
"topic": "Compiling TSButton with MinGW gcc",
"username": "concentra"
}
] | Compiling TSButton with MinGW gcc |
[
{
"date": "2011-11-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\n\n Need help with TsButtons & MinGW . Creating of library - succesfull , but trying to build application with tsbutton library I'm getting errors . Sbuh3m.a here Tsbutton lib for MinGw \n\n[quote:1ck3q8jc]\nhbmk2: Linking... Ts.exe\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x9040): multiple definition of `HB_FUN_LIGHTCOLOR'\nC:/Fwh/lib/fivehgc.lib(COLORTON.o):COLORTON.C:(.text+0x341): first defined here\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x10bb): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x10c9): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x10ec): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x10fc): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x110a): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x1118): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x1168): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x1178): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x1186): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x1194): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x11cf): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x11df): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x11ed): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x11fd): more undefined references to `_parni' follow\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x121d): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2c42): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2c50): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2c5e): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2c6c): undefined reference to `_parc'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2c7c): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2c8a): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2c9a): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2caa): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2cbd): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2cd0): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2ce3): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2cf3): undefined reference to `ISLOGICAL'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2d0d): undefined reference to `ISLOGICAL'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2d20): undefined reference to `ISLOGICAL'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2d3a): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2d4a): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2d5d): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2d70): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2d80): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x2d93): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x30af): undefined reference to `_parclen'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x33f8): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x340d): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x3e60): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x3e6e): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x3f2d): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x3f3b): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x3f7a): undefined reference to `_retni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x3fab): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x3fb9): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x3fc7): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x3fd5): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x3fe3): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x4033): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x4041): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x404f): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x405f): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x406f): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x437a): undefined reference to `_parclen'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x4e9f): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x4eaf): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x4ebf): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x4ecf): undefined reference to `_parc'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x4edf): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x4eef): undefined reference to `ISNUM'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x4f09): undefined reference to `ISNUM'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x4f1d): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x4f2b): undefined reference to `ISNUM'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x4f3f): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x4f4d): undefined reference to `ISNUM'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x4f61): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x4f73): undefined reference to `ISCHAR'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x4f83): undefined reference to `_parclen'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5138): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x51f2): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5200): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5213): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5223): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5233): undefined reference to `_parc'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5246): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5256): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5269): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5277): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x528a): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x529a): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x52aa): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x52b8): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x52c8): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x52db): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x52eb): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x52fe): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x530e): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x531e): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5331): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5341): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5351): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5364): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5377): undefined reference to `ISLOGICAL'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5394): undefined reference to `ISLOGICAL'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x53af): undefined reference to `ISNUM'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x53c3): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x53d6): undefined reference to `ISNUM'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x53ea): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x53fd): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5410): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5423): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5436): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5449): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x545c): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x546c): undefined reference to `ISNUM'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5486): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5499): undefined reference to `ISNUM'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x5798): undefined reference to `_parl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x57f8): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x8dde): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x8df0): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x8e04): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x8e1b): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x8e32): more undefined references to `_parni' follow\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x8fa9): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x8fb9): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x8fc7): undefined reference to `ISNUM'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x8fdc): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x9060): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x906e): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x913f): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x914d): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x915b): undefined reference to `_parnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x916b): more undefined references to `_parnl' follow\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x917b): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x918b): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x9199): undefined reference to `_parni'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x3eec): undefined reference to `_retnl'\nffmpeg/lib/Sbuh3m.a(bpaint.o):bpaint.c:(.text+0x9128): undefined reference to `_retnl'\ncollect2: ld returned 1 exit status\nhbmk2: Error: Running linker. 1\ngcc.exe .hbmk/win/mingw/Koni.o .hbmk/win/mingw/_hbmkaut_Koni.o .hbmk/win/mingw/Koni.reso -mconsole -Wl,--start-group -lcomctl32 -lcomdlg32 -lgdi32 -lhbcplr -lhbct -lhbmzip -lhbpcre -lhbsqlit3 -lhbtip -lhbwin -lhbzlib -lmsimg32 -lodbc32 -lole32 -loleaut32 -luser32 -luuid -lvfw32 -lwinmm -lwinspool -lwsock32 -lgtgui -lkernel32 -lpsapi -lwin32k -loledlg -lstdc++ -lmfcuia32 -lversion -lhbcommon -lhbcpage -lhbhsx -lhblang -lhbmacro -lhbmainstd -lhbpp -lhbrdd -lhbsix -lhbusrrdd -lhbvm -lrddcdx -lrddfpt -lrddntx -lxhb -lfivehg -lfivehgc -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainstd -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib ffmpeg/lib/Sbuh3m.a ffmpeg/lib/libavcodec.dll.a ffmpeg/lib/libavformat.dll.a ffmpeg/lib/libavutil.dll.a -Wl,--end-group -oTs.exe -Lc:/hrb/lib/win/mingw -Lc:/hrb/bin -LC:/Fwh/lib\n[/quote:1ck3q8jc]\n\n hbp for lib :\n[quote:1ck3q8jc]\n-n\n-omylib\n-hblib\n-inc\n-incpath=include\\\n-incpath=..\\include\\\n-l..\\lib\\fivehg\n-l..\\lib\\fivehgc\n\nclasses\\TSBAR.PRG\nclasses\\TSBUTTON.PRG\nclasses\\TSGradie.PRG\nclasses\\TSLINES.PRG\nclasses\\TSRADIO.PRG\nclasses\\TSTSAY.PRG\nfunction\\RGB2HSL.PRG\nfunction\\bpaint.c\n[/quote:1ck3q8jc]\n\n What I must to do to avoid errors ? \n\n Many thanks in advance !",
"time": "07:37",
"topic": "Compiling TSButton with MinGW gcc",
"username": "Rimantas"
}
] | Compiling TSButton with MinGW gcc |
[
{
"date": "2011-11-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rimantas, seems that nobody else is interested in TsBrowse/TsButton and MinGW...\nAnd Manuel disappears from time to time...\n \nBut after studying the C code I managed to compile the TsBrowse C code.\nSo, lets try to do this.\nFirst in bpaint.c change all references of \n _parclen, _parl, _parni, _parnl, etc.\n to \n hb_parclen, hb_parl, hb_parni, hb_parnl, hb_etc.\nAnd do the same with _retnl.\n\nSeems that this changed in Harbour some time ago.\nI will see the other issues and will post here ASAP.\n \n[[]] Mauricio Ventura Faria",
"time": "11:25",
"topic": "Compiling TSButton with MinGW gcc",
"username": "concentra"
}
] | Compiling TSButton with MinGW gcc |
[
{
"date": "2011-11-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rimantas, what version of TsButton are you using ?",
"time": "11:26",
"topic": "Compiling TSButton with MinGW gcc",
"username": "concentra"
}
] | Compiling TSButton with MinGW gcc |
[
{
"date": "2011-11-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "And for ISLOGICAL, ISNUM and ISCHAR put this defines in top of .C.\n\n#define S_LNUM 0x0002\n#define S_DNUM 0x0008\n#define S_LOG 0x0080\n#define S_CHAR 0x0400\n#define S_ANYNUM ( S_LNUM | S_DNUM )\n\n#define ISCHAR( s ) ( hb_param( s, S_CHAR ) != NULL )\n#define ISNUM( s ) ( hb_param( s, S_ANYNUM ) != NULL )\n#define ISLOGICAL( s ) ( hb_param( s, S_LOG ) != NULL )\n\n[[]]",
"time": "12:08",
"topic": "Compiling TSButton with MinGW gcc",
"username": "concentra"
}
] | Compiling TSButton with MinGW gcc |
[
{
"date": "2011-11-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"concentra\":4i9rqc8i]And for ISLOGICAL, ISNUM and ISCHAR put this defines in top of .C.\n\n#define S_LNUM 0x0002\n#define S_DNUM 0x0008\n#define S_LOG 0x0080\n#define S_CHAR 0x0400\n#define S_ANYNUM ( S_LNUM | S_DNUM )\n\n#define ISCHAR( s ) ( hb_param( s, S_CHAR ) != NULL )\n#define ISNUM( s ) ( hb_param( s, S_ANYNUM ) != NULL )\n#define ISLOGICAL( s ) ( hb_param( s, S_LOG ) != NULL )\n\n[[]][/quote:4i9rqc8i] \n\n Wowww ! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> \n\n Thanks concentra for your support ! It seems that together we will do something good ! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->) I'm using the latest TsButton 7 version . Sorry , but with TsBrowse I'm not working , with xBrowse only . But buttons are needfulls fronm TsButtons . So if I'll know something usefull I'll let you know here .. <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> \n\n With best regards !",
"time": "14:48",
"topic": "Compiling TSButton with MinGW gcc",
"username": "Rimantas"
}
] | Compiling TSButton with MinGW gcc |
[
{
"date": "2009-11-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Compiling under \nWINDOWS 7 /AntiVir Guard installed\nI get sometimes a warning: HTML-Scriptvirus HTML/Crypted.Gen. in one of the c-files.\n\nDoes someone know what this could be?\nThanks in advance\nOtto",
"time": "20:27",
"topic": "Compiling WINDOWS 7 /AntiVir Guard",
"username": "Otto"
}
] | Compiling WINDOWS 7 /AntiVir Guard |
[
{
"date": "2009-11-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Does it tell you which file it doesn't like?",
"time": "01:11",
"topic": "Compiling WINDOWS 7 /AntiVir Guard",
"username": "MichaelMo"
}
] | Compiling WINDOWS 7 /AntiVir Guard |
[
{
"date": "2009-11-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Michael, it was a c-file created from my source code.\nI will post more when I see the warning again.\nBest regards,\nOtto",
"time": "14:46",
"topic": "Compiling WINDOWS 7 /AntiVir Guard",
"username": "Otto"
}
] | Compiling WINDOWS 7 /AntiVir Guard |
[
{
"date": "2009-11-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "It's clearly a false alarm by AntiVir Guard.\n\nEMG",
"time": "19:54",
"topic": "Compiling WINDOWS 7 /AntiVir Guard",
"username": "Enrico Maria Giordano"
}
] | Compiling WINDOWS 7 /AntiVir Guard |
[
{
"date": "2009-11-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Michael, hello Enrico,\n\ntoday I never saw the warning. I noticed that AntiVir Guard made 6 or 7 updates yesterday.\n\nMaybe they changed something.\n\nBest regards,\nOtto",
"time": "20:31",
"topic": "Compiling WINDOWS 7 /AntiVir Guard",
"username": "Otto"
}
] | Compiling WINDOWS 7 /AntiVir Guard |
[
{
"date": "2009-11-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Now the warning is back.\nBest regards,\nOtto\n[img:v8wt3pm6]http://www.atzwanger-software.com/fw/Unbenannt.JPG[/img:v8wt3pm6]",
"time": "09:42",
"topic": "Compiling WINDOWS 7 /AntiVir Guard",
"username": "Otto"
}
] | Compiling WINDOWS 7 /AntiVir Guard |
[
{
"date": "2009-11-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "You should write to the AntiVir Guard staff to report the false alarm, attaching the offending C source code.\n\nEMG",
"time": "10:57",
"topic": "Compiling WINDOWS 7 /AntiVir Guard",
"username": "Enrico Maria Giordano"
}
] | Compiling WINDOWS 7 /AntiVir Guard |
[
{
"date": "2009-11-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I suppose that is it possible that it is not a false alarm and that some virus is adding code to the compiler output. Either way I would send it to the AV company for analysis.\n\nJames",
"time": "16:46",
"topic": "Compiling WINDOWS 7 /AntiVir Guard",
"username": "James Bott"
}
] | Compiling WINDOWS 7 /AntiVir Guard |
[
{
"date": "2009-11-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Possible maybe yes, but very far from probable.\n\nEMG",
"time": "19:02",
"topic": "Compiling WINDOWS 7 /AntiVir Guard",
"username": "Enrico Maria Giordano"
}
] | Compiling WINDOWS 7 /AntiVir Guard |
[
{
"date": "2009-11-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Enrico, hello james,\n\nI will send the file to AntiVir Guard.\nBut today the warning only appeared once and I missed to save the output – file.\nBest regards,\nOtto",
"time": "19:16",
"topic": "Compiling WINDOWS 7 /AntiVir Guard",
"username": "Otto"
}
] | Compiling WINDOWS 7 /AntiVir Guard |
[
{
"date": "2014-01-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello ,\n\nFWH1305\n\nUsing buildh.bat the aplication is built , but \n\n\"Cannot start the aplication (0xc000007b) ...\"\n\nFrank",
"time": "15:59",
"topic": "Compiling erp2.prg (test tDolphin)",
"username": "Franklin Demont"
}
] | Compiling erp2.prg (test tDolphin) |
[
{
"date": "2014-01-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "usualmente cuando la version de la dll libmysql.dll con la libreria extraida de la misma no corresponden en su version.\n\ndeberas extraer la lib con implib.exe\n\nsalu2\ncarlos vargas",
"time": "22:48",
"topic": "Compiling erp2.prg (test tDolphin)",
"username": "carlos vargas"
}
] | Compiling erp2.prg (test tDolphin) |
[
{
"date": "2008-10-05",
"forum": "FiveWin for Pocket PC",
"text": "Antonio\r\nAre there any parameters to warn undefined variables just like -w used to do in old clipper compiler?\r\nJohn \r\nRegards",
"time": "19:11",
"topic": "Compiling parameters",
"username": "johnlinares"
}
] | Compiling parameters |
[
{
"date": "2008-10-05",
"forum": "FiveWin for Pocket PC",
"text": "Just call Harbour.exe without parameters and you will see all the available parameters:\r\n\r\n/w[<level>] set warning level number (0..3, default 1)",
"time": "19:55",
"topic": "Compiling parameters",
"username": "Antonio Linares"
}
] | Compiling parameters |
[
{
"date": "2012-08-21",
"forum": "FiveLinux / FiveDroid (Android)",
"text": "Hello Antonio \nI followed all notes in <!-- m --><a class=\"postlink\" href=\"http://www.fivetechsoft.com/wiki/doku.php?id=fivelinux_installation\">http://www.fivetechsoft.com/wiki/doku.p ... stallation</a><!-- m --> \nwhen I try to compile I have this error [code=fw:cu0zy3bq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">compiling...<br />Harbour <span style=\"color: #000000;\">2.1</span>.0rc2 <span style=\"color: #000000;\">(</span>Rev. <span style=\"color: #000000;\">16643</span><span style=\"color: #000000;\">)</span><br />Copyright <span style=\"color: #000000;\">(</span>c<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">1999</span><span style=\"color: #000000;\">-2011</span>, http:<span style=\"color: #B900B9;\">//harbour-project.org/</span><br />Compiling <span style=\"color: #ff0000;\">'tutor01.prg'</span>...<br />Lines <span style=\"color: #000000;\">1114</span>, Functions/Procedures <span style=\"color: #000000;\">1</span><br />Generating C source output <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'tutor01.c'</span>... Done.<br />compiling C module...<br />linking...<br />./../lib/libfivec.a<span style=\"color: #000000;\">(</span>buttons.o<span style=\"color: #000000;\">)</span>: <span style=\"color: #000000;\">In</span> <span style=\"color: #00C800;\">function</span> `HB_FUN_CREATEBUTTON<span style=\"color: #ff0000;\">':<br />buttons.c:(.text+0x2f): undefined reference to `gtk_button_new_from_stock'</span><br />buttons.c:<span style=\"color: #000000;\"><span style=\"color: #000000;\">(</span></span>.<span style=\"color: #0000ff;\">text</span>+0x265<span style=\"color: #000000;\">)</span>: <span style=\"color: #000000;\">undefined</span> reference <span style=\"color: #0000ff;\">to</span> `g_type_check_instance_cast<span style=\"color: #ff0000;\">'<br />buttons.c:(.text+0x270): undefined reference to `g_list_last'</span><br /> </div>[/code:cu0zy3bq]\n\nMAurizio",
"time": "15:07",
"topic": "Compiling problem - SOLVED",
"username": "Maurizio"
}
] | Compiling problem - SOLVED |
[
{
"date": "2012-08-27",
"forum": "FiveLinux / FiveDroid (Android)",
"text": "<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?p=21060#p21060\">viewtopic.php?p=21060#p21060</a><!-- l -->",
"time": "10:11",
"topic": "Compiling problem - SOLVED",
"username": "Antonio Linares"
}
] | Compiling problem - SOLVED |
[
{
"date": "2010-12-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi all,\nwith the last 1.2.1 (6717) xharbour version there are problems with static declaration on the head of the prg:\n\n[color=#FF0000:28zsozm0]k:\\XHARBOUR\\Bin\\Harbour.Exe K:\\ACTIVEXP\\SOURCE\\ACTIVE.PRG -m -n -es2 -ik:\\XHARBOUR\\Include -dHB_API_MACROS -dHB_FM_STATISTICS_OFF -dHB_STACK_MACROS -ik:\\XHARBOUR\\Contrib\\What32\\Include;k:\\fwh\\include -oK:\\ACTIVEXP\\Obj\\ACTIVE.c\n\nxHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6717)\nCopyright 1999-2010, <!-- m --><a class=\"postlink\" href=\"http://www.xharbour.org\">http://www.xharbour.org</a><!-- m --> <!-- m --><a class=\"postlink\" href=\"http://www.harbour-project.org/\">http://www.harbour-project.org/</a><!-- m -->\nCompiling 'K:\\ACTIVEXP\\SOURCE\\ACTIVE.PRG'...\nk:\\fwh\\include\\FiveWin.ch(441) Error E0001 Statement not allowed outside of procedure or function\nK:\\ACTIVEXP\\SOURCE\\ACTIVE.PRG(17) Error E0004 STATIC declaration follows executable statement\nK:\\ACTIVEXP\\SOURCE\\ACTIVE.PRG(18) Error E0004 STATIC declaration follows executable statement\n3 errors\n\nNo code generated[/color:28zsozm0]\n\nThis is my prg:\n\n\n\n#include \"FiveWin.ch\"\n#include \"UrlLink.ch\"\n#include \"menu.ch\"\n\n#define SRCPAINT 15597702 // 0xEE0086\n#define SRCAND 8913094\n\n#DEFINE CLOCK_ON \"Shows the clock at the MsgBar...\"\n#DEFINE CLOCK_OFF \"Hides the clock at the MsgBar...\"\n#DEFINE DATE_ON \"Shows the Date at the MsgBar...\"\n#DEFINE DATE_OFF \"Hides the Date at the MsgBar...\"\n#DEFINE KEYB_ON \"Shows the Keyboard status at the MsgBar...\"\n#DEFINE KEYB_OFF \"Hides the KeyBoard status at the MsgBar...\"\n\nSTATIC oDlg,oBmp,oBar,ownd\nstatic oToolBar\n\nFUNCTION Main()\n\nownd:=0\nset exact on\n..\n.\n..\n\n\n\nAny ideas ?",
"time": "13:56",
"topic": "Compiling problem with xharbour 1.2.1 (6717)",
"username": "Marco Turco"
}
] | Compiling problem with xharbour 1.2.1 (6717) |
[
{
"date": "2010-12-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "These are the lines 440 and 441 in fivewin.ch:\n[code=fw:1ya40gem]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">/*----------------------------------------------------------------------------//<br />!short: COMBOBOX */</span><br /> </div>[/code:1ya40gem]\nPlease substitute these two lines with two blank lines and try.",
"time": "15:58",
"topic": "Compiling problem with xharbour 1.2.1 (6717)",
"username": "nageswaragunupudi"
}
] | Compiling problem with xharbour 1.2.1 (6717) |
[
{
"date": "2010-12-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi, this problem is solved with thanks.\n\nI am trying BCC 558 and the lib UUID.LIB seems isn't included in this BCC version, any ideas ?\nThanks in advance.\n\nTurbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland\nFatal: Unable to open file 'UUID.LIB'",
"time": "17:23",
"topic": "Compiling problem with xharbour 1.2.1 (6717)",
"username": "Marco Turco"
}
] | Compiling problem with xharbour 1.2.1 (6717) |
[
{
"date": "2010-12-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "solved",
"time": "18:17",
"topic": "Compiling problem with xharbour 1.2.1 (6717)",
"username": "Marco Turco"
}
] | Compiling problem with xharbour 1.2.1 (6717) |
[
{
"date": "2012-09-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Converting a big application to harbour i have problems with : \n roundrec.c \n[code=fw:i7pbfu59]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">/* TSLines Class, rounded rectangle paint routine<br /> Author: Manuel Mercado<br /> January 1st, 2002 */</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> __HARBOUR__<br /><br /><span style=\"color: #00D7D7;\">#include</span> <WinTen.h><br /><span style=\"color: #00D7D7;\">#include</span> <Windows.h><br /><span style=\"color: #00D7D7;\">#include</span> <ClipApi.h><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br />#ifndef __HARBOUR__<br /> CLIPPER RECTROUND<span style=\"color: #000000;\">(</span> PARAMS <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// ( hDC, nLeft, nTop, nRight, nBottom,</span><br /> <span style=\"color: #B900B9;\">// nWidth, nHeight )</span><br />#else<br /> HARBOUR HB_FUN_RECTROUND<span style=\"color: #000000;\">(</span> PARAMS <span style=\"color: #000000;\">)</span><br />#endif<br /><br /><span style=\"color: #000000;\">{</span><br /> _retl<span style=\"color: #000000;\">(</span> RoundRect<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> HDC <span style=\"color: #000000;\">)</span> _parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>, _parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>, _parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span>, _parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">)</span>,<br /> _parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">)</span>, _parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">)</span>, _parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ;<br /><span style=\"color: #000000;\">}</span><br /> </div>[/code:i7pbfu59]\n\nErrors : \nError E2238 B:\\HB31\\Include\\clipdefs.h 84: Multiple declaration for 'WORD'\nError E2344 B:\\BCC582\\Include\\windef.h 155: Earlier declaration of 'WORD'\nError E2238 B:\\HB31\\Include\\clipdefs.h 86: Multiple declaration for 'PWORD'\nError E2344 B:\\BCC582\\Include\\windef.h 164: Earlier declaration of 'PWORD'\nError E2238 B:\\HB31\\Include\\clipdefs.h 106: Multiple declaration for 'BOOL'\nError E2344 B:\\BCC582\\Include\\windef.h 153: Earlier declaration of 'BOOL'\nError E2238 B:\\HB31\\Include\\clipdefs.h 109: Multiple declaration for 'PBOOL'\nError E2344 B:\\BCC582\\Include\\windef.h 158: Earlier declaration of 'PBOOL'\nError E2238 B:\\HB31\\Include\\clipdefs.h 118: Multiple declaration for 'HANDLE'\nError E2344 B:\\BCC582\\Include\\winnt.h 335: Earlier declaration of 'HANDLE'",
"time": "14:57",
"topic": "Compiling roundrec.c for harbour",
"username": "Franklin Demont"
}
] | Compiling roundrec.c for harbour |
[
{
"date": "2012-09-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[code=fw:154mpsan]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00D7D7;\">#include</span> <hbapi.h><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">(</span> ROUNDRECT <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> hb_retl<span style=\"color: #000000;\">(</span> RoundRect<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> HDC <span style=\"color: #000000;\">)</span> hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>, hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>, hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span>, hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">)</span>,<br /> hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">)</span>, hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">)</span>, hb_parnl<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ;<br /><span style=\"color: #000000;\">}</span><br /> </div>[/code:154mpsan]",
"time": "15:17",
"topic": "Compiling roundrec.c for harbour",
"username": "Antonio Linares"
}
] | Compiling roundrec.c for harbour |
[
{
"date": "2012-09-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio ,\n\nThanks , but still warnings :\n\nWarning W8065 roundrec.c 15: Call to function 'hb_parnl' with no prototype in function HB_FUNC\nWarning W8065 roundrec.c 16: Call to function 'hb_parnl' with no prototype in function HB_FUNC\nWarning W8070 roundrec.c 17: Function should return a value in function HB_FUNC\nWarning W8057 roundrec.c 17: Parameter 'ROUNDRECT' is never used in function HB_FUNC\n\nHB_FUNC( ROUNDRECT )\n{\n hb_retl( RoundRect( ( HDC ) hb_parnl( 1 ), hb_parnl( 2 ), hb_parnl( 3 ), hb_parnl( 4 ),\n hb_parnl( 5 ), hb_parnl( 6 ), hb_parnl( 7 ) ) ) ;\n}",
"time": "17:27",
"topic": "Compiling roundrec.c for harbour",
"username": "Franklin Demont"
}
] | Compiling roundrec.c for harbour |
[
{
"date": "2012-09-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "It seems as you have not included #include <hbapi.h>\n\nis it in scope when you compile ?",
"time": "21:55",
"topic": "Compiling roundrec.c for harbour",
"username": "Antonio Linares"
}
] | Compiling roundrec.c for harbour |
[
{
"date": "2012-09-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio ,\n\nI had also an external .\n\nI downloaded TsButtun and now it is ok.\n\nThe batch-file to build the lib must be changed (missing a prg-file )\n\nFrank",
"time": "09:35",
"topic": "Compiling roundrec.c for harbour",
"username": "Franklin Demont"
}
] | Compiling roundrec.c for harbour |
[
{
"date": "2021-01-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I'm trying to compile tDolphin for xHARBOR using SETENVX.BAT but it has error 2 in win-make. Has anyone ever experienced this?\n\nThanks",
"time": "01:38",
"topic": "Compiling tDolphin",
"username": "ctoas"
}
] | Compiling tDolphin |
[
{
"date": "2021-01-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Qual erro ?",
"time": "20:41",
"topic": "Compiling tDolphin",
"username": "MGA"
}
] | Compiling tDolphin |
[
{
"date": "2021-01-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I gave up using",
"time": "21:56",
"topic": "Compiling tDolphin",
"username": "ctoas"
}
] | Compiling tDolphin |
[
{
"date": "2007-06-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear friends,\n\nI did my first steps compiling a project with xHarbour and BCC under Vista. If i use only the standard lib of FWH, everything works fine, but if i try to link in third party libs (like TWbrowse of Hernan), these lib are not propely linked in and i get a runtime error using the replaced functions.\n\nI´m using xMate for compiling.\n\nDid anyone notice this behavior ?\n\nI compile as administrator, so there should be no problems with rights.\n\nkind regrads\nStefan",
"time": "10:26",
"topic": "Compiling under Vista",
"username": "StefanHaupt"
}
] | Compiling under Vista |
[
{
"date": "2007-06-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Stefan,\n\n> these lib are not propely linked\n\nwhy ? what errors or warnings do you get ?\n\n> in and i get a runtime error using the replaced functions.\n\nwhat runtime error ?",
"time": "11:33",
"topic": "Compiling under Vista",
"username": "Antonio Linares"
}
] | Compiling under Vista |
[
{
"date": "2007-06-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nit´s very curious. I don´t get any errors or warning messages during link.\n\nExample:\n\nIf i link the version of hernan´s twbrowse and i´m using a variable declared in this new class i get this error:\n error/BASE 1005: message not found: TWBROWSE_LHSCROLL\n\nlHScroll cannot be found in the original TwBrowse class, so the new lib is not linked in. Every new lib, which is replacing functions from the original libs (with the same names) does not seem to work.\n\nThis is the trace.log:\n*** WARNING! Function: TGRAPH in Module: TGRAPH.PRG is hidden by previously registered Module: TGRAPH.PRG\n*** WARNING! Function: TSMTP in Module: tsmtp.prg is hidden by previously registered Module: TSMTP.PRG\n*** WARNING! Function: TPOP3 in Module: tpop3.prg is hidden by previously registered Module: TPop3.PRG\n*** WARNING! Function: TSOCKET in Module: tsocket.prg is hidden by previously registered Module: TSOCKET.PRG\n*** WARNING! Function: MENUBEGIN in Module: PDMENU.PRG is hidden by previously registered Module: PDMENU.PRG\n*** WARNING! Function: MENUADDITEM in Module: PDMENU.PRG is hidden by previously registered Module: PDMENU.PRG\n*** WARNING! Function: MENUEND in Module: PDMENU.PRG is hidden by previously registered Module: PDMENU.PRG\n*** WARNING! Function: LASTMENU in Module: PDMENU.PRG is hidden by previously registered Module: PDMENU.PRG\n*** WARNING! Function: LASTITEMPOS in Module: PDMENU.PRG is hidden by previously registered Module: PDMENU.PRG\n*** WARNING! Function: TMENU in Module: MENU.PRG is hidden by previously registered Module: MENU.PRG\n*** WARNING! Function: MEMOEDIT in Module: memoedit.prg is hidden by previously registered Module: MemoEdit.PRG\n*** WARNING! Function: GETNEW in Module: tgetint.prg is hidden by previously registered Module: TCLIPGET.PRG\n\n\n\nThe link order should be ok\n.....\nd:\\Borland\\BCC55\\Lib\\C0W32.OBJ, +\nD:\\Projekte\\WIN\\WT\\bin\\Wt32.Exe, +\nD:\\Projekte\\WIN\\WT\\Debug\\Wt32.Map, +\nD:\\FwH\\LIBx\\XP_Menu.Lib +\nD:\\FWH\\Libx\\TwBrw32x.LIB +\nD:\\FwH\\LIBx\\Tsbrw613.LIB +\nD:\\FwH\\LIBx\\FwTools32.Lib +\nD:\\FwH\\LIBx\\SButtonX.LIB +\nD:\\FWH\\lib\\Fivehx.lib +\nD:\\FWH\\lib\\Fivehc.lib +\nd:\\xHARBOUR71\\Lib\\rtl.lib +\n....\n\n\n\nkind regards\nStefan",
"time": "17:02",
"topic": "Compiling under Vista",
"username": "StefanHaupt"
}
] | Compiling under Vista |
[
{
"date": "2007-06-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "It´s seems this behavior does only occur in projects with more than 20 or 25 source files. Smaller projects or little samples are working fine.\n\nMaybe the linker of bcc has problems under vista with to many files.\n\nBTW, i made these tests on two different pc´s with vista business to exclude problems with the pc or vista installation.\n\nkind regards\nStefan",
"time": "17:30",
"topic": "Compiling under Vista",
"username": "StefanHaupt"
}
] | Compiling under Vista |
[
{
"date": "2007-06-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Stefan,\n\nYou may rename Hernan browse as Class THBrowse, so there are no conflicts with FWH Class TWBrowse",
"time": "20:02",
"topic": "Compiling under Vista",
"username": "Antonio Linares"
}
] | Compiling under Vista |
[
{
"date": "2007-06-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nyes, that would be a workaround, but would not solve the problem. And, besides a lot work (i´m replacing the menu system,too, and some other functions), this would cancel the possibility of replacing functions just by linking the changed modul.\n\nAnother point is that it´s working under XP and though it´s a 1:1 copy there are errors under Vista.\n\nI will do some further investigations and report the results here.\n\nkind regards\nStefan",
"time": "08:36",
"topic": "Compiling under Vista",
"username": "StefanHaupt"
}
] | Compiling under Vista |
[
{
"date": "2007-06-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Ok, I did some tests over the weekend. \n\nIt really seemes to depend on the number of prg files you use. The magical number is in my case 24. With more than 24 prg files linking does not work correctly. No matter what size the files have, only the number of files is important.\n\nPlease, can anyone confirm this behaviour ?\n\nI´m using the bcc55 compiler\n\nkind regards\nStefan",
"time": "08:41",
"topic": "Compiling under Vista",
"username": "StefanHaupt"
}
] | Compiling under Vista |
[
{
"date": "2011-07-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Steps I did to allow me to compile fwh\\samples using hbmk2\n\n[b:2tt0sz5p]i.[/b:2tt0sz5p] Ensure there's only 1 C compiler along my path and it's the one I want to use. Add harbour's path too.\n[b:2tt0sz5p]ii.[/b:2tt0sz5p] Copy fwh.hbc below to the root of FWH (modified from fwh.hbc found at harbour\\utils\\hbmk2\\examples) \n[code=fw:2tt0sz5p]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">#<br /># $Id: <span style=\"color: #000000;\">fwh</span>.hbc <span style=\"color: #000000;\">11227</span> <span style=\"color: #000000;\">2009</span><span style=\"color: #000000;\">-06</span><span style=\"color: #000000;\">-05</span> <span style=\"color: #000000;\">16</span>:<span style=\"color: #000000;\">55</span>:43Z vszakats $<br />#<br /><br /># Copy this file <span style=\"color: #0000ff;\">to</span> FWH root dir and include it in hbmk2<br /># command line <span style=\"color: #0000ff;\">to</span> build an app:<br /># > hbmk2 test.prg C:\\fwh\\fwh.hbc<br /><br />xhb.hbc<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>incpaths=include<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libpaths=lib<br /><br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>gt=gtgui<br /><br /><br /><span style=\"color: #000000;\">{</span>msvc<span style=\"color: #000000;\">}</span>libs=fivehm fivehcm xhb<br /><span style=\"color: #000000;\">{</span>allmingw<span style=\"color: #000000;\">}</span>libs=fivehg fivehgc xhb<br /><span style=\"color: #000000;\">{</span>bcc<span style=\"color: #000000;\">}</span>libs=fiveh fivehc xhb<br /><br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=comctl32<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=comdlg32<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=gdi32<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=hbcplr<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=hbct<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=hbmzip<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=hbpcre<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=hbsqlit3<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=hbtip<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=hbwin<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=hbzlib<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=msimg32<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=odbc32<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=ole32<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=oleaut32<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=user32<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=uuid<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=vfw32<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=winmm<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=winspool<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=wsock32</div>[/code:2tt0sz5p]\n\nNote that the above .hbc doesn't contain harbour core libraries. Do not add it in as it's added by hbmk2 automatically.\n\n[b:2tt0sz5p]iii.[/b:2tt0sz5p] In fwh\\samples, I created the following batch file, -.bat\n[code=fw:2tt0sz5p]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">hbmk2 %<span style=\"color: #000000;\">1</span> %<span style=\"color: #000000;\">2</span> %<span style=\"color: #000000;\">3</span> c:\\fwh\\fwh.hbc</div>[/code:2tt0sz5p]\n\nSo now at command prompt I just need to type:\n>- invoice <Enter>\n\nThere. Now if I were to change my C compiler, the only thing I should need to do is adjusting the path to the C compiler that I want to use.",
"time": "06:21",
"topic": "Compiling using hbmk2",
"username": "hua"
}
] | Compiling using hbmk2 |
[
{
"date": "2011-07-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Here's how I build my private library by using hbmk2.\n\ni. Create a mylib.hbp\n[code=fw:vfoxlcwj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />-n<br />-omylib<br />-hblib<br />-ic:\\fwh\\include;c:\\harbour\\include<br />xhb.hbc<br /><br />a.prg<br />b.c<br />c.prg<br /> </div>[/code:vfoxlcwj]\n\nSo later I just do:\n>hbmk2 mylib.hbp\n\nI guess a lot of improvement could still be done to how I configure things as I'm still new with using hbmk2",
"time": "07:56",
"topic": "Compiling using hbmk2",
"username": "hua"
}
] | Compiling using hbmk2 |
[
{
"date": "2012-07-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Antonio \nI'm trying minigw with buildg.bat ( Fw 12.4) \n\nthis is my path :\n\nif \"%fwh%\" == \"\" set fwh=.\\..\n\nset hdir=c:\\HB30\nset hdirc=%hdir%\\bin\\harbour.exe\nset hlibs=%hdir%\\lib\\win\\mingw\nset mingw=C:\\hb30\\comp\\mingw\nset path=C:\\hb30\\comp\\mingw\\bin\n\n\n\nthis is the error \n \n\n\n??????????????????????????????????????????????????????????????????????????????\n? FiveWin for Harbour 12.04 and GCC - Apr. 2012 Harbour development power ??\n? (c) FiveTech, 1993-2012 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7 ??\n???????????????????????????????????????????????????????????????????????????????\n ?????????????????????????????????????????????????????????????????????????????\nCompiling...\nHarbour 3.0.0 (Rev. 16951)\nCopyright (c) 1999-2011, <!-- m --><a class=\"postlink\" href=\"http://harbour-project.org/\">http://harbour-project.org/</a><!-- m -->\nCompiling 'ALERT.prg' and generating preprocessed output to 'ALERT.ppo'...\nLines 5272, Functions/Procedures 2\nGenerating C source output to 'ALERT.c'... Done.\n.\\..\\lib/fivehgc.lib(PROFILE.o):PROFILE.C:(.text+0x5d): undefined reference to `__chkstk_ms'\n.\\..\\lib/fivehgc.lib(PROFILE.o):PROFILE.C:(.text+0x177): undefined reference to `__chkstk_ms'\n.\\..\\lib/fivehgc.lib(C5CNEW.o):C5CNEW.C:(.text+0x63bd): undefined reference to `__chkstk_ms'\ncollect2: ld returned 1 exit status\n* Link errors *\n\n\nRegards Maurizio",
"time": "08:21",
"topic": "Compiling with minigw",
"username": "Maurizio"
}
] | Compiling with minigw |
[
{
"date": "2012-07-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Maurizio,\n\nThose problems have been solved on FWH 12.06:\n\n[img:g41ecnug]http://img819.imageshack.us/img819/7688/capturevwi.png[/img:g41ecnug]",
"time": "11:22",
"topic": "Compiling with minigw",
"username": "Antonio Linares"
}
] | Compiling with minigw |
[
{
"date": "2012-07-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio , \n\nOK with 12.06 works ,\n\nis possible compilink with hbmk2.exe ? \n\nI Try with gccmake.zip \n\n[quote:18uw5g9e]HB:C:\\fwh_06\\1>go\n\nHB:C:\\fwh_06\\1>PATH=C:\\hb30\\comp\\mingw\\bin;C:\\hb30\\comp\\mingw\\bin;C:\\hb30\\comp\\mingw\\bin;C:\\hb30\\comp\\mingw\\bin;C:\\MinGW\\bin;C:\\\nMinGW\\bin;C:\\MinGW\\bin;C:\\hb30\\comp\\mingw\\bin\n\nHB:C:\\fwh_06\\1>if not exist obj md obj\n\nHB:C:\\fwh_06\\1>win-make -ftest.mak\nif not exist obj mkdir obj\nc:\\HB30\\bin\\harbour.exe one.prg -oobj/one.c -n -Ic:\\HB30\\include -Ic:\\fwh_06\\include\nHarbour 3.0.0 (Rev. 16951)\nCopyright (c) 1999-2011, <!-- m --><a class=\"postlink\" href=\"http://harbour-project.org/\">http://harbour-project.org/</a><!-- m -->\nCompiling 'one.prg'...\nLines 3874, Functions/Procedures 1\nGenerating C source output to 'obj/one.c'... Done.\nif not exist obj mkdir obj\nc:\\HB30\\bin\\harbour.exe two.prg -oobj/two.c -n -Ic:\\HB30\\include -Ic:\\fwh_06\\include\nHarbour 3.0.0 (Rev. 16951)\nCopyright (c) 1999-2011, <!-- m --><a class=\"postlink\" href=\"http://harbour-project.org/\">http://harbour-project.org/</a><!-- m -->\nCompiling 'two.prg'...\nLines 3, Functions/Procedures 1\nGenerating C source output to 'obj/two.c'... Done.\ngcc -c -oobj/one.o -Ic:\\HB30\\include obj/one.c\ngcc -c -oobj/two.o -Ic:\\HB30\\include obj/two.c\ngcc -c -oobj/three.o -Ic:\\HB30\\include three.c\nif not exist one.rc C:\\hb30\\comp\\mingw\\bin\\gcc -otest.exe ./obj/one.o ./obj/two.o ./obj/three.o \\\n-Wall -s -mwindows -LC:\\hb30\\comp\\mingw\\lib -Lc:\\HB30\\lib\\win\\mingw -Lc:\\fwh_06\\lib -mno-cygwin -Wl,--start-group -lfivehg -lfiv\nehgc -lgtgui -ldll -lsocket -luser32 -lwinspool -lcomctl32 -lcomdlg32 -lgdi32 -lole32 -loleaut32 -luuid -lwinmm -lvfw32 -lwsock3\n2 -lmsimg32 -llibhbbtree -lhbclipsm -lhbcommon -lhbcpage -lhbcplr -lhbct -lhbcurl -lhbfbird -lhbgd -lhbhpdf -lhbhsx -lhblang -lh\nbmacro -lhbmainstd -lhbmisc -lhbmsql -lhbmysql -lmysqldll -lhbmzip -lhbnf -lhbodbc -lodbc32 -lhbpcre -lhbpgsql -lhbpp -lhbrdd -l\nhbrtl -lhbsix -lhbsqlit3 -lhbtip -lhbusrrdd -lhbvm -lhbvpdf -lhbw32 -lhbzlib -lrddado -lrddads -lrddcdx -lrddfpt -lrddntx -lxhb\n-Wl,--end-group\nc:/hb30/comp/mingw/bin/../lib/gcc/mingw32/4.5.2-dw2/../../../../mingw32/bin/ld.exe: cannot find -ldll\nc:/hb30/comp/mingw/bin/../lib/gcc/mingw32/4.5.2-dw2/../../../../mingw32/bin/ld.exe: cannot find -lsocket\nc:/hb30/comp/mingw/bin/../lib/gcc/mingw32/4.5.2-dw2/../../../../mingw32/bin/ld.exe: cannot find -llibhbbtree\nc:/hb30/comp/mingw/bin/../lib/gcc/mingw32/4.5.2-dw2/../../../../mingw32/bin/ld.exe: cannot find -lhbmsql\nc:/hb30/comp/mingw/bin/../lib/gcc/mingw32/4.5.2-dw2/../../../../mingw32/bin/ld.exe: cannot find -lmysqldll\nc:/hb30/comp/mingw/bin/../lib/gcc/mingw32/4.5.2-dw2/../../../../mingw32/bin/ld.exe: cannot find -lhbvpdf\nc:/hb30/comp/mingw/bin/../lib/gcc/mingw32/4.5.2-dw2/../../../../mingw32/bin/ld.exe: cannot find -lhbw32\nc:/hb30/comp/mingw/bin/../lib/gcc/mingw32/4.5.2-dw2/../../../../mingw32/bin/ld.exe: cannot find -lrddado\ncollect2: ld returned 1 exit status\nwin-make: *** [test.exe] Error 1\nHB:C:\\fwh_06\\1>\n[/quote:18uw5g9e]\n\n\nMaurizio",
"time": "15:51",
"topic": "Compiling with minigw",
"username": "Maurizio"
}
] | Compiling with minigw |
[
{
"date": "2012-07-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Maurizio,\n\nThis is the closer I have just tried:\n\nset path=c:\\mingw\\bin\nc:\\harbour\\bin\\hbmk2 tutor02 -compiler=mingw -ic:\\fwh\\include -lfivehg.a -lfivehgc.a -lhbwin.a -Lc:\\fwh\\lib\n\nI understand that hbmk2 is easy, but its sources are really complex in case that it may not work as desired...\n\nI do prefer FWH buildg.bat, much simpler and easy to modify",
"time": "16:36",
"topic": "Compiling with minigw",
"username": "Antonio Linares"
}
] | Compiling with minigw |
[
{
"date": "2012-07-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank Antonio , \n\nI also prefer to use FWH buildg.bat \n\nbut with FWH\\makes\\gccmake.zip and win-make.exe I have the errors above \n\nMaurizio",
"time": "16:58",
"topic": "Compiling with minigw",
"username": "Maurizio"
}
] | Compiling with minigw |
[
{
"date": "2012-07-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Maurizio,\n\nThis Makefile seems to be working fine <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[code=fw:13z8ow3f]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"># gcc make example <span style=\"color: #00C800;\">for</span> Windows, developed by FiveTech Software<br /><br />hdir=c:\\harbour<br />hdirc=$<span style=\"color: #000000;\">(</span>hdir<span style=\"color: #000000;\">)</span>\\bin\\harbour.exe<br />hlibs=$<span style=\"color: #000000;\">(</span>hdir<span style=\"color: #000000;\">)</span>\\lib\\gcc<br />fwh=c:\\fwh<br />mingw=c:\\mingw<br />fwfiles=-lfivehg -lfivehgc<br />winfiles=-luser32 -lwinspool -lkernel32 -lcomctl32 -lcomdlg32 -lgdi32 -lgdiplus -lole32 -loleaut32 -lpsapi -loledlg -lmfcuia32 -lmsimg32 -lwin32k -lstdc++ -lversion -luuid -lwinmm -lvfw32 -lwsock32<br />hbfiles=-lhbcommon -lhbcpage -lhbcplr -lhbct -lhbhpdf \\<br /> -lhbhsx -lhblang -lhbmacro -lhbmainstd -lhbmisc -lhbmzip \\<br /> -lhbnf -lhbodbc -lodbc32 -lhbpcre -lhbpp -lhbrdd -lhbrtl -lhbsix -lhbsqlit3 \\<br /> -lhbtip -lhbusrrdd -lhbvm -lhbwin -lhbzlib -lrddcdx -lrddfpt -lrddntx -lxhb<br />libraries=$<span style=\"color: #000000;\">(</span>winfiles<span style=\"color: #000000;\">)</span> $<span style=\"color: #000000;\">(</span>fwfiles<span style=\"color: #000000;\">)</span> -lgtgui $<span style=\"color: #000000;\">(</span>hbfiles<span style=\"color: #000000;\">)</span><br />libspath=-L$<span style=\"color: #000000;\">(</span>mingw<span style=\"color: #000000;\">)</span>\\lib -L$<span style=\"color: #000000;\">(</span>hlibs<span style=\"color: #000000;\">)</span> -L$<span style=\"color: #000000;\">(</span>fwh<span style=\"color: #000000;\">)</span>\\lib<br /><br />all : <span style=\"color: #000000;\">test</span>.exe<br /> test.exe<br /><br />PRG_OBJS = ./obj/one.c \\<br /> ./obj/two.c<br /><br />C_OBJS = ./obj/one.o \\<br /> ./obj/two.o \\<br /> ./obj/three.o<br /><br />test.exe : $<span style=\"color: #000000;\">(</span>PRG_OBJS<span style=\"color: #000000;\">)</span> $<span style=\"color: #000000;\">(</span>C_OBJS<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> not exist one.rc $<span style=\"color: #000000;\">(</span>mingw<span style=\"color: #000000;\">)</span>\\bin\\gcc -otest.exe ./obj/one.o ./obj/two.o ./obj/three.o \\<br /> -Wall -s -mwindows $<span style=\"color: #000000;\">(</span>libspath<span style=\"color: #000000;\">)</span> -mno-cygwin -Wl,--start-group $<span style=\"color: #000000;\">(</span>libraries<span style=\"color: #000000;\">)</span> -Wl,--end-group<br /> <span style=\"color: #00C800;\">if</span> exist one.rc $<span style=\"color: #000000;\">(</span>mingw<span style=\"color: #000000;\">)</span>\\bin\\gcc -otest.exe ./obj/one.o ./obj/two.o ./obj/three.o _one.o \\<br /> -Wall -s $<span style=\"color: #000000;\">(</span>libspath<span style=\"color: #000000;\">)</span> -mno-cygwin -Wl,--start-group $<span style=\"color: #000000;\">(</span>libraries<span style=\"color: #000000;\">)</span> -Wl,--end-group<br /><br />./obj/%.c : %.prg<br /> <span style=\"color: #00C800;\">if</span> not exist obj mkdir obj<br /> $<span style=\"color: #000000;\">(</span>hdir<span style=\"color: #000000;\">)</span>\\bin\\harbour.exe $< -o$@ -n -I$<span style=\"color: #000000;\">(</span>hdir<span style=\"color: #000000;\">)</span>\\include -I$<span style=\"color: #000000;\">(</span>fwh<span style=\"color: #000000;\">)</span>\\include<br /> <br />./obj/%.o : ./obj/%.c<br /> $<span style=\"color: #000000;\">(</span>mingw<span style=\"color: #000000;\">)</span>\\bin\\gcc -c -o$@ -I$<span style=\"color: #000000;\">(</span>hdir<span style=\"color: #000000;\">)</span>\\include $< <br /> <br />./obj/%.o : %.c<br /> gcc -c -o$@ -I$<span style=\"color: #000000;\">(</span>hdir<span style=\"color: #000000;\">)</span>\\include $< <br /> </div>[/code:13z8ow3f]",
"time": "17:20",
"topic": "Compiling with minigw",
"username": "Antonio Linares"
}
] | Compiling with minigw |
[
{
"date": "2012-07-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I have been using hbmk2 from a nightly build downloaded from harbour site with no problem.\nVersion: Harbour 3.2.0dev (Rev. 17445)\nCompiler: MinGW GNU C 4.6.1 (32-bit)\nI use a simple .bat file.\n[code=fw:31qim33x]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />SET PATH=e:\\hb32\\comp\\mingw;e:\\hb32\\bin\\;C:\\WINDOWS;C:\\WINDOWS\\SYSTEM32<br />hbmk2 -inc -ldflag=<span style=\"color: #000000;\">{</span>allgcc<span style=\"color: #000000;\">}</span>-Wl,--allow-multiple-definition -ic:\\fwh\\include -iincludes vav.hbm c:\\fwh\\fwhgc.hbc<br /> </div>[/code:31qim33x]\nwhere includes is a directory of my application directory.\n\nvav.hbm\n[code=fw:31qim33x]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />C:\\PROJETOS\\VAVLOG\\SOURCES\\VAV.PRG<br />C:\\PROJETOS\\VAVLOG\\SOURCES\\VAV_PRV.PRG<br />C:\\PROJETOS\\VAVLOG\\SOURCES\\VAV_PRN.PRG<br />... all prgs<br />C:\\PROJETOS\\VAVLOG\\RES\\VAV.RES <br /> </div>[/code:31qim33x]\n\nfwhgc.hbc\n[code=fw:31qim33x]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libpaths=lib<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>incpaths=include<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>gt=gtgui<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=kernel32 comctl32 comdlg32 gdi32 ole32 oleaut32 psapi msimg32 win32k oledlg stdc++ mfcuia32 version uuid winmm vfw32 wsock32 gcc<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=hbwin hbct xhb hbmemio hbmisc png hbtip<br /><span style=\"color: #000000;\">{</span>win<span style=\"color: #000000;\">}</span>libs=fivehg fivehgc<br /> </div>[/code:31qim33x]\n \nI use hbmk2 with BCC582 and MSVC too.",
"time": "20:54",
"topic": "Compiling with minigw",
"username": "ADutheil"
}
] | Compiling with minigw |
[
{
"date": "2012-07-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "André,\n\nThanks! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "12:37",
"topic": "Compiling with minigw",
"username": "Antonio Linares"
}
] | Compiling with minigw |
[
{
"date": "2012-07-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Antonio , \n\nwith these changes your make works \n[code=fw:1cp1l695]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"># gcc make example <span style=\"color: #00C800;\">for</span> Windows, developed by FiveTech Software<br /><br /><br />hdir=c:\\HB30<br />hdirc=$<span style=\"color: #000000;\">(</span>hdir<span style=\"color: #000000;\">)</span>\\bin<br />hlibs=$<span style=\"color: #000000;\">(</span>hdir<span style=\"color: #000000;\">)</span>\\lib\\win\\mingw<br />fwh=c:\\fwh_06<br />mingw=C:\\hb30\\comp\\mingw<br /><br /><br /><br />fwfiles=-lfivehg -lfivehgc<br />winfiles=-luser32 -lwinspool -lkernel32 -lcomctl32 -lcomdlg32 -lgdi32 -lgdiplus -lole32 -loleaut32 -lpsapi -loledlg -lmfcuia32 -lmsimg32 -lwin32k -lstdc++ -lversion -luuid -lwinmm -lvfw32 -lwsock32<br />hbfiles=-lhbcommon -lhbcpage -lhbcplr -lhbct -lhbhpdf \\<br /> -lhbhsx -lhblang -lhbmacro -lhbmainstd -lhbmisc -lhbmzip \\<br /> -lhbnf -lhbodbc -lodbc32 -lhbpcre -lhbpp -lhbrdd -lhbrtl -lhbsix -lhbsqlit3 \\<br /> -lhbtip -lhbusrrdd -lhbvm -lhbwin -lhbzlib -lrddcdx -lrddfpt -lrddntx -lxhb<br />libraries=$<span style=\"color: #000000;\">(</span>winfiles<span style=\"color: #000000;\">)</span> $<span style=\"color: #000000;\">(</span>fwfiles<span style=\"color: #000000;\">)</span> -lgtgui $<span style=\"color: #000000;\">(</span>hbfiles<span style=\"color: #000000;\">)</span><br />libspath=-L$<span style=\"color: #000000;\">(</span>mingw<span style=\"color: #000000;\">)</span>\\lib -L$<span style=\"color: #000000;\">(</span>hlibs<span style=\"color: #000000;\">)</span> -L$<span style=\"color: #000000;\">(</span>fwh<span style=\"color: #000000;\">)</span>\\lib<br /><br />all : <span style=\"color: #000000;\">test</span>.exe<br /> test.exe<br /><br />PRG_OBJS = ./obj/one.c \\<br /> ./obj/two.c<br /><br />C_OBJS = ./obj/one.o \\<br /> ./obj/two.o \\<br /> ./obj/three.o<br /><br />test.exe : $<span style=\"color: #000000;\">(</span>PRG_OBJS<span style=\"color: #000000;\">)</span> $<span style=\"color: #000000;\">(</span>C_OBJS<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> not exist one.rc $<span style=\"color: #000000;\">(</span>mingw<span style=\"color: #000000;\">)</span>\\bin\\gcc -otest.exe ./obj/one.o ./obj/two.o ./obj/three.o \\<br /> -Wall -s -mwindows $<span style=\"color: #000000;\">(</span>libspath<span style=\"color: #000000;\">)</span> -mno-cygwin -Wl,--start-group $<span style=\"color: #000000;\">(</span>libraries<span style=\"color: #000000;\">)</span> -Wl,--end-group<br /> <span style=\"color: #00C800;\">if</span> exist one.rc $<span style=\"color: #000000;\">(</span>mingw<span style=\"color: #000000;\">)</span>\\bin\\gcc -otest.exe ./obj/one.o ./obj/two.o ./obj/three.o _one.o \\<br /> -Wall -s $<span style=\"color: #000000;\">(</span>libspath<span style=\"color: #000000;\">)</span> -mno-cygwin -Wl,--start-group $<span style=\"color: #000000;\">(</span>libraries<span style=\"color: #000000;\">)</span> -Wl,--end-group<br /><br />./obj/%.c : %.prg<br /> <span style=\"color: #00C800;\">if</span> not exist obj mkdir obj<br /> $<span style=\"color: #000000;\">(</span>hdirc<span style=\"color: #000000;\">)</span>\\harbour.exe $< -o$@ -n -I$<span style=\"color: #000000;\">(</span>hdir<span style=\"color: #000000;\">)</span>\\include -I$<span style=\"color: #000000;\">(</span>fwh<span style=\"color: #000000;\">)</span>\\include<br /> <br />./obj/%.o : ./obj/%.c<br /> gcc -c -o$@ -I$<span style=\"color: #000000;\">(</span>hdir<span style=\"color: #000000;\">)</span>\\include $< <br /> <br />./obj/%.o : %.c<br /> gcc -c -o$@ -I$<span style=\"color: #000000;\">(</span>hdir<span style=\"color: #000000;\">)</span>\\include $< </div>[/code:1cp1l695]\n\n\nThanks \n\n\n\nHello André \n\nNow I will try your nmake \n\nThanks",
"time": "14:28",
"topic": "Compiling with minigw",
"username": "Maurizio"
}
] | Compiling with minigw |
[
{
"date": "2012-07-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Maurizio,\n\nYes, you have to set your own paths into it <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "14:42",
"topic": "Compiling with minigw",
"username": "Antonio Linares"
}
] | Compiling with minigw |
[
{
"date": "2012-07-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio \n\nin your make the problems are : \nhdirc=$(hdir)\\bin\\harbour.exe\nyou have to change in \nhdirc=$(hdir)\\bin\n\n\nin the FWH LIB for minigw missing some function :\nTWEBCAM()\nMAPILOGOFF()\nMAPISENDMAIL()\n\nThanks MAurizo",
"time": "17:16",
"topic": "Compiling with minigw",
"username": "Maurizio"
}
] | Compiling with minigw |
[
{
"date": "2012-07-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio ,\n\ndo you cann try FHW\\samples\\TESTMAIL.PRG ? does't work .\n\nMaurizio",
"time": "14:08",
"topic": "Compiling with minigw",
"username": "Maurizio"
}
] | Compiling with minigw |
[
{
"date": "2012-07-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Maurizio,\n\nI am emailing you a modified Fivehcg.lib, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "15:08",
"topic": "Compiling with minigw",
"username": "Antonio Linares"
}
] | Compiling with minigw |
[
{
"date": "2011-04-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "When I attempt to compile an xharbour / Fivewin for xHarbour app on me Windows 7 32 bit laptop I get this error.\n\nType: C >>>xhb.exe -o\"EtExcel.c\" -m -n -p -q -gc0 -I\"C:\\fwh\\include\" -I\"c:\\xhb\\include\" -I\"c:\\xhb\\include\\w32\" \"EtExcel.prg\"<<<\nType: C >>>Couldn't build: EtExcel.obj<<<\n\nAnyone know how to correct this, works fine on my Windows XP workstation.",
"time": "00:42",
"topic": "Compiling xHarbour Oct 2006 on Windows 7 32 bit",
"username": "byron.hopp"
}
] | Compiling xHarbour Oct 2006 on Windows 7 32 bit |
[
{
"date": "2013-04-29",
"forum": "Off Topic / Otros temas",
"text": "La semana pasada fui a una charla, y me enseñaron una herramienta, sonar, <!-- m --><a class=\"postlink\" href=\"http://www.sonarsource.org/\">http://www.sonarsource.org/</a><!-- m --> ,que entre otras cosas nos indica la complejidad ciclomática del software, <!-- m --><a class=\"postlink\" href=\"https://es.wikipedia.org/wiki/Complejidad_ciclom%C3%A1tica\">https://es.wikipedia.org/wiki/Complejid ... %C3%A1tica</a><!-- m -->\n\n¿ Alguien usa/usado alguna herramienta para aplicarla a Harbour ?",
"time": "09:27",
"topic": "Complejidad ciclomatica",
"username": "thefull"
}
] | Complejidad ciclomatica |
[
{
"date": "2013-04-29",
"forum": "Off Topic / Otros temas",
"text": "Rafa,\n\nLa primera vez que lo veo pero tambien me parece muy interesante, gracias! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nHas conseguido usar el software Sonar ?",
"time": "12:04",
"topic": "Complejidad ciclomatica",
"username": "Antonio Linares"
}
] | Complejidad ciclomatica |
[
{
"date": "2009-07-17",
"forum": "FiveWin para Harbour/xHarbour",
"text": "En vista que no hubo respuesta al requerimiento de trozo de codigo para manejar un CDROM, hago otra pregunta.... ¿Conoce alguien una aplicaciòn que me permita ver el interior de las DLL que vienen con Windows? Me parece que debo buscar dentro de las rutinas del Windows para ver què modulos contienen y, de ser posible, ver què rutinas se debe utilizar para manejar el CDROM. Acepto sugerencias de cualquier tipo! <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->",
"time": "01:17",
"topic": "Complemento .... Manejando CDROM",
"username": "Armando Picon"
}
] | Complemento .... Manejando CDROM |
[
{
"date": "2009-07-17",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Armando Picon,\n\nLa ExplorerLib de Andrés Reyes te servirá.\n\ncodigo-base.blogspot.com\n\nsaludos",
"time": "02:56",
"topic": "Complemento .... Manejando CDROM",
"username": "wmormar"
}
] | Complemento .... Manejando CDROM |
[
{
"date": "2009-07-17",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Me parece, que talvez usando el objeto WMI encuentres ayuda, \nWMI nos permite obtener informacion sobre casi cualquier cosa de windows\npodria buscar informacion de \"unidades de discos que sean de tipo unidad optica no removibles\".\nlas consultas son incluso tipo consultas SQL (te dejo un ejemplo).\n\nbusca en el foro como crear un objeto WMI, luego en google como buscar x tipo de dispositivo usando ese objeto WMI.\nMuchos de los ejemplos de google son con Visual Basic Script, pero son facilmente convertidos a sintaxis xbase.\n\nejemplo:\n[code=fw:8lm8hc2o]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oWMI := CreateObject <span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"wbemScripting.SwbemLocator\"</span><span style=\"color: #000000;\">)</span><br />oWMICon := oWMI:<span style=\"color: #000000;\">ConnectServer</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br />oADSServ := oWMICon:<span style=\"color: #000000;\">ExecQuery</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Select * from Win32_Service where DisplayName = 'Advantage Database Server'\"</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">IF</span> oADSServ:<span style=\"color: #000000;\">State</span> == <span style=\"color: #ff0000;\">\"Stopped\"</span><br /><br />oADSServ:<span style=\"color: #000000;\">StartService</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #B900B9;\">//NOTA:ejemplo tomado de Objeto Persitente</span><br /> </div>[/code:8lm8hc2o]\n\nEsta Direccion te lleva al MSDN \n[url:8lm8hc2o]http://msdn.microsoft.com/en-us/library/aa394582%28VS.85%29.aspx[/url:8lm8hc2o]",
"time": "15:54",
"topic": "Complemento .... Manejando CDROM",
"username": "carlos vargas"
}
] | Complemento .... Manejando CDROM |
[
{
"date": "2009-07-17",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"wmormar\":2h0jefsw]Armando Picon,\n\nLa ExplorerLib de Andrés Reyes te servirá.\n\ncodigo-base.blogspot.com\n\nsaludos[/quote:2h0jefsw]\n\nHe probado la aplicaciòn de Andrès y solamente opera con .LIB y no con .DLL",
"time": "17:53",
"topic": "Complemento .... Manejando CDROM",
"username": "Armando Picon"
}
] | Complemento .... Manejando CDROM |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.