messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2015-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "I will test it when it arrives. Thank you.", "time": "18:27", "topic": "Build with Visual Studio 2015 errors", "username": "TimStone" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks to you for your great feedback and for making us aware of the new MS tools <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "18:38", "topic": "Build with Visual Studio 2015 errors", "username": "Antonio Linares" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "The only problem is that these new FWH libs are not backwards compatible. I just tested them\n\nThey require the new Harbour and VS2015", "time": "18:46", "topic": "Build with Visual Studio 2015 errors", "username": "Antonio Linares" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI have no problem with that. VS 2015 is on a test machine with Win 10. My current \"production\" computer will not be affected. I simply copy source code from the production machine to the test machine where the new libs will be found.\n\nTim", "time": "19:30", "topic": "Build with Visual Studio 2015 errors", "username": "TimStone" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "very good <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "19:35", "topic": "Build with Visual Studio 2015 errors", "username": "Antonio Linares" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "OK ...\n\nI still have 3 problems: UNDEFINED\n\n__vaCopy in _hb_vsnprintf found in hbcommon.lib\n\n__iob_func in hbssl.lib ( I don't think you rebuilt this one )\n\n_except_handler4_ommon in MSVCRTD.lib though I told it not to link this file by default ... it still goes to it.\n\nTim", "time": "20:12", "topic": "Build with Visual Studio 2015 errors", "username": "TimStone" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nPlease try to link vcruntime.lib too", "time": "20:23", "topic": "Build with Visual Studio 2015 errors", "username": "Antonio Linares" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "That took care of the MSVCRT issue, but not hbssl and hbcommon libs.", "time": "21:05", "topic": "Build with Visual Studio 2015 errors", "username": "TimStone" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nI have never built hbssl myself, so I will have to check how to do it...\n\nAs far as I know we have to use OpenSSL\n\nmaybe some hbssl user can help us here", "time": "21:29", "topic": "Build with Visual Studio 2015 errors", "username": "Antonio Linares" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "I am trying to build it this way:\n\nc:\\harbour\\contrib\\hbssl>c:\\harbour\\bin\\hbmk2 hbssl -comp=msvc\nhbmk2: Building sub-project (level 2): hbssls.hbp\nhbmk2[hbssls]: Warning: Missing dependency: openssl\n\nSurely Rafa Carmona or another FWH user may be able to help us on this", "time": "13:19", "topic": "Build with Visual Studio 2015 errors", "username": "Antonio Linares" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, creo, pero no lo he usado nunca, que has de tener instalado el OpenSSl en C:\\OpenSSl...\nHe encontrado esto\n ¿ <!-- m --><a class=\"postlink\" href=\"http://www.openssl.org/source/openssl-0.9.8h.tar.gz\">http://www.openssl.org/source/openssl-0.9.8h.tar.gz</a><!-- m --> ?\nPero no se si es la version a utilizar\n\n<!-- m --><a class=\"postlink\" href=\"http://p-nand-q.com/programming/windows/building_openssl_with_visual_studio_2013.html\">http://p-nand-q.com/programming/windows ... _2013.html</a><!-- m -->", "time": "13:48", "topic": "Build with Visual Studio 2015 errors", "username": "cnavarro" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal,\n\nThese are the steps that Rafa Carmona explained:\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=6&t=23539&p=157479&hilit=openssl#p126479\">viewtopic.php?f=6&t=23539&p=157479&hilit=openssl#p126479</a><!-- l -->\n\nLets see if we can build it...", "time": "14:38", "topic": "Build with Visual Studio 2015 errors", "username": "Antonio Linares" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "[url:1muzlab6]http&#58;//developer&#46;covenanteyes&#46;com/building-openssl-for-visual-studio/[/url:1muzlab6]", "time": "09:40", "topic": "Build with Visual Studio 2015 errors", "username": "Antonio Linares" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Before calling:\n\nnmake -f ms\\nt.mak \n\nthis call must be done:\n\ncall \"%ProgramFiles(x86)%\\Microsoft Visual Studio 14.0\\VC\\vcvarsall.bat\"\n\nand I get this error:\n[quote:1r9t1jxr]C:\\openssl>nmake -f ms\\nt.mak\n\nMicrosoft (R) Program Maintenance Utility Version 14.00.22310.1\nCopyright (C) Microsoft Corporation. All rights reserved.\n\nBuilding OpenSSL\n cl /Fotmp32\\cryptlib.obj -Iinc32 -Itmp32 /MT /Ox /O2 /Ob2 /W3 /WX /Gs0 /GF /Gy /no\n32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPREC\n -DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_CMS -DOPENSSL_NO_JPAKE -\nRB5 -DOPENSSL_NO_DYNAMIC_ENGINE /Zl -c .\\crypto\\cryptlib.c\ncryptlib.c\n.\\crypto\\cryptlib.c(556): error C2220: warning treated as error - no 'object' file generate\n.\\crypto\\cryptlib.c(556): warning C4456: declaration of 'h' hides previous local declaratio\n.\\crypto\\cryptlib.c(474): note: see declaration of 'h'\nNMAKE : fatal error U1077: '\"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.\nStop.[/quote:1r9t1jxr]\n\nSuggestions are welcome <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "09:59", "topic": "Build with Visual Studio 2015 errors", "username": "Antonio Linares" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Error solved removing the word \"HANDLE\" from line 556\n\nCompiling...", "time": "10:02", "topic": "Build with Visual Studio 2015 errors", "username": "Antonio Linares" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Next error:\n\n[quote:1jc9cons] cl /Fotmp32\\b_print.obj -Iinc32 -Itmp32 /MT /Ox /O2 /Ob2 /W3 /WX /Gs0 /GF /Gy /nol\n2_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECA\n-DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_CMS -DOPENSSL_NO_JPAKE -D\nB5 -DOPENSSL_NO_DYNAMIC_ENGINE /Zl -c .\\crypto\\bio\\b_print.c\nb_print.c\n.\\crypto\\bio\\b_print.c(381): error C2220: warning treated as error - no 'object' file gener\n.\\crypto\\bio\\b_print.c(381): warning C4267: '=': conversion from 'size_t' to 'short', possi\nNMAKE : fatal error U1077: '\"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.\nStop.[/quote:1jc9cons]", "time": "10:03", "topic": "Build with Visual Studio 2015 errors", "username": "Antonio Linares" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Solved changing line 381 of c:\\openssl\\crypto\\bio\\b_print.c this way:\n\n*num = ( short ) currlen;\n\nNext error:\n[quote:1v0chur3] cl /Fotmp32\\rand_win.obj -Iinc32 -Itmp32 /MT /Ox /O2 /Ob2 /W3 /WX /Gs0 /GF /Gy /no\n32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPREC\n -DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_CMS -DOPENSSL_NO_JPAKE -\nRB5 -DOPENSSL_NO_DYNAMIC_ENGINE /Zl -c .\\crypto\\rand\\rand_win.c\nrand_win.c\n.\\crypto\\rand\\rand_win.c(404): error C2220: warning treated as error - no 'object' file gen\n.\\crypto\\rand\\rand_win.c(404): warning C4456: declaration of 'm' hides previous local decla\n.\\crypto\\rand\\rand_win.c(201): note: see declaration of 'm'\nNMAKE : fatal error U1077: '\"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.\nStop.[/quote:1v0chur3]", "time": "10:07", "topic": "Build with Visual Studio 2015 errors", "username": "Antonio Linares" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Solved comenting the line 404 of c:\\openssl\\crypto\\rand\\rand_win.c \n\n// MODULEENTRY32 m;\n\nnext error:\n[quote:dfss9ztf] cl /Fotmp32\\rand_win.obj -Iinc32 -Itmp32 /MT /Ox /O2 /Ob2 /W3 /WX /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN\n32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE /Fdout32 -DOPENSSL_NO_CAMELLIA\n -DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_CMS -DOPENSSL_NO_JPAKE -DOPENSSL_NO_CAPIENG -DOPENSSL_NO_K\nRB5 -DOPENSSL_NO_DYNAMIC_ENGINE /Zl -c .\\crypto\\rand\\rand_win.c\nrand_win.c\n.\\crypto\\rand\\rand_win.c(544): error C2039: 'dwSize': is not a member of '_MEMORYSTATUS'\nC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\um\\winbase.h(545): note: see declaration of '_MEMORYSTATUS'\n.\\crypto\\rand\\rand_win.c(547): warning C4133: 'function': incompatible types - from 'MEMORYSTATUS *' to 'LPMODULEENTRY32'\n.\\crypto\\rand\\rand_win.c(549): error C2039: 'dwSize': is not a member of '_MEMORYSTATUS'\nC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\um\\winbase.h(545): note: see declaration of '_MEMORYSTATUS'\n.\\crypto\\rand\\rand_win.c(549): error C2198: 'RAND_add': too few arguments for call\n.\\crypto\\rand\\rand_win.c(550): warning C4133: 'function': incompatible types - from 'MEMORYSTATUS *' to 'LPMODULEENTRY32'\nNMAKE : fatal error U1077: '\"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.EXE\"' : return code '0x2'\nStop.[/quote:dfss9ztf]", "time": "10:14", "topic": "Build with Visual Studio 2015 errors", "username": "Antonio Linares" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Solved with these changes in c:\\openssl\\crypto\\rand\\rand_win.c line 544:\n\n[code=fw:1witi5wg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// m.dwSize = sizeof(MODULEENTRY32);</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span>good<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; starttime = GetTickCount<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span>module_first<span style=\"color: #000000;\">&#40;</span>handle, <span style=\"color: #000000;\">&#40;</span> LPMODULEENTRY32 <span style=\"color: #000000;\">&#41;</span> &m<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">do</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RAND_add<span style=\"color: #000000;\">&#40;</span>&m, sizeof<span style=\"color: #000000;\">&#40;</span>MODULEENTRY32<span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">while</span> <span style=\"color: #000000;\">&#40;</span>module_next<span style=\"color: #000000;\">&#40;</span>handle, <span style=\"color: #000000;\">&#40;</span> LPMODULEENTRY32 <span style=\"color: #000000;\">&#41;</span> &m<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&& <span style=\"color: #000000;\">&#40;</span>!good<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|| <span style=\"color: #000000;\">&#40;</span>GetTickCount<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> - starttime<span style=\"color: #000000;\">&#41;</span> < MAXDELAY<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span>close_snap<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; close_snap<span style=\"color: #000000;\">&#40;</span>handle<span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CloseHandle<span style=\"color: #000000;\">&#40;</span>handle<span style=\"color: #000000;\">&#41;</span>;<br />&nbsp;</div>[/code:1witi5wg]", "time": "10:37", "topic": "Build with Visual Studio 2015 errors", "username": "Antonio Linares" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Next error:\n\n[quote:2ba9etr4] link /nologo /subsystem:console /opt:ref /out:out32\\constant_time_test.exe @C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\nmF6\nD2.tmp\nconstant_time_test.obj : error LNK2019: unresolved external symbol ___iob_func referenced in function _main\nC:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\LIB\\OLDNAMES.lib : warning LNK4272: library machine type 'UNKNOWN' con\nflicts with target machine type 'X86'\nout32\\constant_time_test.exe : fatal error LNK1120: 1 unresolved externals\nNMAKE : fatal error U1077: '\"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\link.EXE\"' : return code '0x460'\nStop.[/quote:2ba9etr4]\n\niob_func again...", "time": "10:41", "topic": "Build with Visual Studio 2015 errors", "username": "Antonio Linares" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "These libs have been already built:\n\nc:\\openssl\\out32\\libeay32.lib\n\nc:\\openssl\\out32\\ssleay32.lib\n\nNot sure what else we need now...", "time": "10:45", "topic": "Build with Visual Studio 2015 errors", "username": "Antonio Linares" } ]
Build with Visual Studio 2015 errors
[ { "date": "2015-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "According to hbssl.hbp we need these DLLs:\n\n-depimplibs=openssl:../out32dll/libeay32.dll\n-depimplibs=openssl:../out32dll/ssleay32.dll\n-depimplibs=openssl:../dll/libeay32.dll\n-depimplibs=openssl:../dll/ssleay32.dll\n-depimplibs=openssl:../libeay32.dll\n-depimplibs=openssl:../ssleay32.dll\n\nWe may try to solve the iob_func error and see if the DLLs get built. \n\nNot sure yet why the iob_func error is happening this time", "time": "11:51", "topic": "Build with Visual Studio 2015 errors", "username": "Antonio Linares" } ]
Build with Visual Studio 2015 errors
[ { "date": "2022-04-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Using hbmk2.exe to build our FWH app 32 bits using Microsoft Visual Studio Community 2022:\n\ntest.hbp\n[code=fw:37lszryg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">-gui<br /><br />-Ic:\\fwh\\include<br /><br />test.prg<br /><br />-Lc:\\fwh\\lib<br /><br />-lFiveH32<br />-lFiveHC32<br /><br />-lgdiplus<br />-lole32<br />-lOleDlg<br />-lversion<br /><br />xhb.hbc<br />hbct.hbc<br />hbwin.hbc<br />hbmzip.hbc<br />hbziparc.hbc<br />hbfoxpro.hbc<br /><br />-ldflag=/NODEFAULTLIB:<span style=\"color: #000000;\">msvcrt</span><br /><br />test.rc<br /> </div>[/code:37lszryg]\n\ngo32.bat\n[code=fw:37lszryg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">call <span style=\"color: #ff0000;\">\"%ProgramFiles%<span style=\"color: #000000;\">\\M</span>icrosoft Visual Studio<span style=\"color: #000000;\">\\2</span>022<span style=\"color: #000000;\">\\C</span>ommunity<span style=\"color: #000000;\">\\V</span>C<span style=\"color: #000000;\">\\A</span>uxiliary<span style=\"color: #000000;\">\\B</span>uild<span style=\"color: #000000;\">\\v</span>cvarsall.bat\"</span> x86<br />c:\\harbour\\bin\\hbmk2 test.hbp -comp=msvc<br />test.exe</div>[/code:37lszryg]\n\ntest.prg\n[code=fw:37lszryg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oBmpTiled, oWnd, oMsgBar<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> BITMAP oBmpTiled <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"background\"</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MENU</span> BuildMenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"My app\"</span><br /><br />   BuildBar<span style=\"color: #000000;\">&#40;</span> oWnd <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> MSGBAR oMsgBar <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"My app\"</span> NOINSET<br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span> ;<br />      <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> DrawTiled<span style=\"color: #000000;\">&#40;</span> hDC, oWnd, oBmpTiled <span style=\"color: #000000;\">&#41;</span><br /><br />   oBmpTiled:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> BuildMenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oMenu<br /><br />   <span style=\"color: #0000ff;\">MENU</span> oMenu<br />      <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Files\"</span><br />   <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><span style=\"color: #00C800;\">return</span> oMenu   <br /><br /><span style=\"color: #00C800;\">function</span> BuildBar<span style=\"color: #000000;\">&#40;</span> oWnd <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oBar<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oWnd 3D <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">70</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:37lszryg]\n\ntest.rc\n[code=fw:37lszryg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">background BITMAP c:\\fwh\\<span style=\"color: #0000ff;\">bitmaps</span>\\backgrnd\\iosbg.bmp</div>[/code:37lszryg]", "time": "07:00", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "Antonio Linares" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-19", "forum": "FiveWin for Harbour/xHarbour", "text": "64 bits version using FWH 64 and MSVC 64 bits:\n\ntest64.hbp\n[code=fw:1vo4spti]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">-gui<br /><br />-Ic:\\fwh\\include<br /><br />test.prg<br /><br />-Lc:\\fwh\\lib<br /><br />-lFiveH64<br />-lFiveHC64<br /><br />-lgdiplus<br />-lole32<br />-lOleDlg<br />-lversion<br /><br />xhb.hbc<br />hbct.hbc<br />hbwin.hbc<br />hbmzip.hbc<br />hbziparc.hbc<br />hbfoxpro.hbc<br /><br />-ldflag=/NODEFAULTLIB:<span style=\"color: #000000;\">msvcrt</span><br /><br />test.rc<br /> </div>[/code:1vo4spti]\n\ngo64.bat\n[code=fw:1vo4spti]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">call <span style=\"color: #ff0000;\">\"%ProgramFiles%<span style=\"color: #000000;\">\\M</span>icrosoft Visual Studio<span style=\"color: #000000;\">\\2</span>022<span style=\"color: #000000;\">\\C</span>ommunity<span style=\"color: #000000;\">\\V</span>C<span style=\"color: #000000;\">\\A</span>uxiliary<span style=\"color: #000000;\">\\B</span>uild<span style=\"color: #000000;\">\\v</span>cvarsall.bat\"</span> amd64<br />c:\\harbour\\bin\\hbmk2 test64.hbp -comp=msvc64<br />test.exe</div>[/code:1vo4spti]\n\ntest.prg (same code as previous msg)\n[code=fw:1vo4spti]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oBmpTiled, oWnd, oMsgBar<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> BITMAP oBmpTiled <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"background\"</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MENU</span> BuildMenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"My app\"</span><br /><br />   BuildBar<span style=\"color: #000000;\">&#40;</span> oWnd <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> MSGBAR oMsgBar <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"My app\"</span> NOINSET<br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span> ;<br />      <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> DrawTiled<span style=\"color: #000000;\">&#40;</span> hDC, oWnd, oBmpTiled <span style=\"color: #000000;\">&#41;</span><br /><br />   oBmpTiled:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> BuildMenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oMenu<br /><br />   <span style=\"color: #0000ff;\">MENU</span> oMenu<br />      <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Files\"</span><br />   <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><span style=\"color: #00C800;\">return</span> oMenu   <br /><br /><span style=\"color: #00C800;\">function</span> BuildBar<span style=\"color: #000000;\">&#40;</span> oWnd <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oBar<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oWnd 3D <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">70</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:1vo4spti]\n\ntest.rc\n[code=fw:1vo4spti]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">background BITMAP c:\\fwh\\<span style=\"color: #0000ff;\">bitmaps</span>\\backgrnd\\iosbg.bmp</div>[/code:1vo4spti]", "time": "08:13", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "Antonio Linares" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Antonio,\n\nWhat is the advantage of hbmk2.exe?", "time": "07:45", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "Horizon" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Hakan,\n\nSimplicity and easy of use", "time": "10:53", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "Antonio Linares" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Good Morning Antonio,\nI can´t find download for MSVC 2019. Could I try it with MSVC 2022?\n\nWhich option should us choose in this screen?\n[img:sbspese7]https&#58;//i&#46;imgur&#46;com/4qrUWuK&#46;jpg[/img:sbspese7]", "time": "12:24", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "vilian" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Vilian,\n\n> Could I try it with MSVC 2022 ?\n\nPlease use 2022\n\nPlease select \"desenvolvimiento para desktop com C++\"", "time": "17:48", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "Antonio Linares" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you Antonio,\n\nI'm tryng to compile a little samples, but it's showing the error message bellow:\n[code=fw:3qyopxlp]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #000000;\">&#91;</span>vcvarsall.bat<span style=\"color: #000000;\">&#93;</span> Environment initialized <span style=\"color: #00C800;\">for</span>: <span style=\"color: #ff0000;\">'x86'</span><br />hbmk2<span style=\"color: #000000;\">&#91;</span>testsql07<span style=\"color: #000000;\">&#93;</span>: <span style=\"color: #000000;\">Warning</span>: <span style=\"color: #000000;\">Cannot</span> find xhb.hbc <span style=\"color: #000000;\">&#40;</span>referenced <span style=\"color: #0000ff;\">from</span> testsql07.hbp<span style=\"color: #000000;\">&#41;</span><br />hbmk2<span style=\"color: #000000;\">&#91;</span>testsql07<span style=\"color: #000000;\">&#93;</span>: <span style=\"color: #000000;\">Warning</span>: <span style=\"color: #000000;\">Cannot</span> find hbct.hbc <span style=\"color: #000000;\">&#40;</span>referenced <span style=\"color: #0000ff;\">from</span> testsql07.hbp<span style=\"color: #000000;\">&#41;</span><br />hbmk2<span style=\"color: #000000;\">&#91;</span>testsql07<span style=\"color: #000000;\">&#93;</span>: <span style=\"color: #000000;\">Warning</span>: <span style=\"color: #000000;\">Cannot</span> find hbwin.hbc <span style=\"color: #000000;\">&#40;</span>referenced <span style=\"color: #0000ff;\">from</span> testsql07.hbp<span style=\"color: #000000;\">&#41;</span><br />hbmk2<span style=\"color: #000000;\">&#91;</span>testsql07<span style=\"color: #000000;\">&#93;</span>: <span style=\"color: #000000;\">Warning</span>: <span style=\"color: #000000;\">Cannot</span> find hbmzip.hbc <span style=\"color: #000000;\">&#40;</span>referenced <span style=\"color: #0000ff;\">from</span> testsql07.hbp<span style=\"color: #000000;\">&#41;</span><br />hbmk2<span style=\"color: #000000;\">&#91;</span>testsql07<span style=\"color: #000000;\">&#93;</span>: <span style=\"color: #000000;\">Warning</span>: <span style=\"color: #000000;\">Cannot</span> find hbziparc.hbc <span style=\"color: #000000;\">&#40;</span>referenced <span style=\"color: #0000ff;\">from</span> testsql07.hbp<span style=\"color: #000000;\">&#41;</span><br />hbmk2<span style=\"color: #000000;\">&#91;</span>testsql07<span style=\"color: #000000;\">&#93;</span>: <span style=\"color: #000000;\">Warning</span>: <span style=\"color: #000000;\">Cannot</span> find hbfoxpro.hbc <span style=\"color: #000000;\">&#40;</span>referenced <span style=\"color: #0000ff;\">from</span> testsql07.hbp<span style=\"color: #000000;\">&#41;</span></div>[/code:3qyopxlp]\n\nI'm using this content into testsql07.hbp:\n[code=fw:3qyopxlp]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">-gui<br /><br />-Ic:\\fwh21\\include<br /><br />testsql07.prg<br /><br />-Lc:\\fwh21\\lib<br /><br />-lFiveH32<br />-lFiveHC32<br /><br />-lgdiplus<br />-lole32<br />-lOleDlg<br />-lversion<br /><br />xhb.hbc<br />hbct.hbc<br />hbwin.hbc<br />hbmzip.hbc<br />hbziparc.hbc<br />hbfoxpro.hbc<br /><br />-ldflag=/NODEFAULTLIB:<span style=\"color: #000000;\">msvcrt</span></div>[/code:3qyopxlp]\n\nWhere can i find these files that are missing?", "time": "18:25", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "vilian" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Vilian,\n\nPlease do this:\n\ngit clone <!-- m --><a class=\"postlink\" href=\"https://github.com/harbour/core\">https://github.com/harbour/core</a><!-- m --> harbour\n\nso it gets cloned at c:\\harbour", "time": "18:27", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "Antonio Linares" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you <!-- s;) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";)\" title=\"Wink\" /><!-- s;) -->", "time": "19:04", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "vilian" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Hola Antonio,\nHe seguido los pasos que indicas, pero tengo el siguiente error, usando el test.prg:\n[img:ailgwjjz]https&#58;//tssemsa&#46;com/sistemas/img/msvcharb&#46;jpg[/img:ailgwjjz]\n\nQue no encuentra la funcion BuildMenu()\n\nEstoy utilizando el Harboour de MSVC20201019, Visual Studio 2022 y FWH22.03\n\nSaludos\n\nCarlos.", "time": "15:15", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "csincuir" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Ya esta solucionado Antonio.\nLe cambie el nombre a la funcion BuildMenu de tu Ejemplo a MenuSis y enlazo correctamente, y genero el ejecutable sin problema\nNo se porque no encontraba la funcion con el nombre original?\n\nSaludos cordiales\n\nCarlos", "time": "21:46", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "csincuir" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Carlos,\n\nYa habiamos detectado ese bug y está arreglado para el próximo build de FWH <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEfectivamente la solución es cambiar el nombre de la función BuildMenu()", "time": "07:35", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "Antonio Linares" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Enterado Antonio, gracias.\nSeguiré ahora con tratar de armar un proyecto que ya tengo funcionando con Borland, y que quiero ahora tener con MSVC.\n\nSaludos\n\nCarlos.", "time": "19:10", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "csincuir" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-23", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":27h9xqew]Vilian,\n\nPlease do this:\n\ngit clone <!-- m --><a class=\"postlink\" href=\"https://github.com/harbour/core\">https://github.com/harbour/core</a><!-- m --> harbour\n\nso it gets cloned at c:\\harbour[/quote:27h9xqew]\n\nHi Antonio,\n\nAfter cloning, what should I do? There is not any binary file bin directory. Should I compile? How?\n\nThanks.", "time": "09:39", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "Horizon" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Hakan,\n\nPlease use these batch files to build Harbour 32 and 64 bits using Visual Studio Community 2022:\n\ncopy them into c:\\harbour\n\nYou have to download OpenSSL 32 and 64 bits from here: [url:g3tvgk0z]https&#58;//slproweb&#46;com/products/Win32OpenSSL&#46;html[/url:g3tvgk0z] and\ncurl from here: [url:g3tvgk0z]https&#58;//curl&#46;se/download&#46;html[/url:g3tvgk0z]\n\ngo32.bat\n[code=fw:g3tvgk0z]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">call <span style=\"color: #ff0000;\">\"%ProgramFiles%<span style=\"color: #000000;\">\\M</span>icrosoft Visual Studio<span style=\"color: #000000;\">\\2</span>022<span style=\"color: #000000;\">\\C</span>ommunity<span style=\"color: #000000;\">\\V</span>C<span style=\"color: #000000;\">\\A</span>uxiliary<span style=\"color: #000000;\">\\B</span>uild<span style=\"color: #000000;\">\\v</span>cvarsall.bat\"</span> x86<br />set HB_COMPILER=msvc<br />set HB_BUILD_MODE=c<br />set HB_USER_PRGFLAGS=-l-<br />set HB_BUILD_CONTRIBS<br /><br />rem set HB_BUILD_DEBUG=yes<br />rem set HB_TR_LEVEL=debug<br />rem set HB_USER_CFLAGS=-DHB_TR_LEVEL_DEBUG<br /><br />set HB_WITH_OPENSSL=c:\\OpenSSL-Win32\\include<br />set HB_WITH_CURL=c:\\curl\\include<br />set HB_OPENSSL_STATIC=yes      <br />set HB_STATIC_OPENSSL=yes  <br />set HB_STATIC_CURL=yes<br />set HB_WITH_LIBHARU<br />set HB_BUILD_DYN=no<br />set HB_BUILD_CONTRIB_DYN=no<br />del .\\src\\common\\obj\\win\\msvc\\hbver.obj<br />del .\\src\\common\\obj\\win\\msvc\\hbver_dyn.obj<br />del .\\src\\common\\obj\\win\\msvc\\hbverdsp.obj<br />win-make.exe<br />copy c:\\harbour\\lib\\win\\msvc\\libcurl-x32.lib c:\\harbour\\lib\\win\\msvc\\libcurl.lib<br />copy c:\\harbour\\lib\\win\\msvc\\libssl-1_1-x32.lib c:\\harbour\\lib\\win\\msvc\\ssleay32.lib<br />copy c:\\harbour\\lib\\win\\msvc\\libcrypto-1_1-x32.lib c:\\harbour\\lib\\win\\msvc\\libcrypto.lib</div>[/code:g3tvgk0z]\ngo64.bat\n[code=fw:g3tvgk0z]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">call <span style=\"color: #ff0000;\">\"%ProgramFiles%<span style=\"color: #000000;\">\\M</span>icrosoft Visual Studio<span style=\"color: #000000;\">\\2</span>022<span style=\"color: #000000;\">\\C</span>ommunity<span style=\"color: #000000;\">\\V</span>C<span style=\"color: #000000;\">\\A</span>uxiliary<span style=\"color: #000000;\">\\B</span>uild<span style=\"color: #000000;\">\\v</span>cvarsall.bat\"</span> amd64<br />set HB_COMPILER=msvc64<br />set HB_BUILD_MODE=c<br />set HB_USER_PRGFLAGS=-l-<br />set HB_BUILD_CONTRIBS<br /><br />rem set HB_BUILD_DEBUG=yes<br />rem set HB_TR_LEVEL=debug<br />rem set HB_USER_CFLAGS=-DHB_TR_LEVEL_DEBUG<br /><br />set HB_WITH_OPENSSL=c:\\OpenSSL-Win64\\include<br />set HB_WITH_CURL=c:\\curl\\include<br />set HB_OPENSSL_STATIC=yes      <br />set HB_STATIC_OPENSSL=yes  <br />set HB_STATIC_CURL=yes<br />set HB_WITH_LIBHARU<br />set HB_BUILD_DYN=no<br />set HB_BUILD_CONTRIB_DYN=no<br />del .\\src\\common\\obj\\win\\msvc64\\hbver.obj<br />del .\\src\\common\\obj\\win\\msvc64\\hbver_dyn.obj<br />del .\\src\\common\\obj\\win\\msvc64\\hbverdsp.obj<br />win-make.exe<br />copy c:\\harbour\\lib\\win\\msvc64\\libcurl-x64.lib c:\\harbour\\lib\\win\\msvc64\\libcurl.lib<br />copy c:\\harbour\\lib\\win\\msvc64\\libssl-1_1-x64.lib c:\\harbour\\lib\\win\\msvc64\\ssleay32.lib<br />copy c:\\harbour\\lib\\win\\msvc64\\libcrypto-1_1-x64.lib c:\\harbour\\lib\\win\\msvc64\\libcrypto.lib</div>[/code:g3tvgk0z]", "time": "11:42", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "Antonio Linares" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-23", "forum": "FiveWin for Harbour/xHarbour", "text": "This is the right one for 64 bit:\n\n[url:2fkc621u]https&#58;//slproweb&#46;com/download/Win64OpenSSL_Light-3_0_2&#46;exe[/url:2fkc621u]\n\nAnd this for 32 bit:\n\n[url:2fkc621u]https&#58;//slproweb&#46;com/download/Win32OpenSSL_Light-3_0_2&#46;exe[/url:2fkc621u]\n\nEMG", "time": "20:25", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "Enrico Maria Giordano" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, para salir de dudas de una vez por todas....\n\nQue version de ssl descargar tanto para bcc como para msvc? en sus versiones 32 y 64 bits..", "time": "19:01", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "carlos vargas" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Carlos,\n\nPara 32 bits prueba con:\n[url:jdzx6ezy]https&#58;//slproweb&#46;com/download/Win32OpenSSL-3_0_2&#46;exe[/url:jdzx6ezy]\n\nPara 64 bits prueba con:\n[url:jdzx6ezy]https&#58;//slproweb&#46;com/download/Win64OpenSSL-1_1_1n&#46;exe[/url:jdzx6ezy]\n\nEn la página de descargas tambien hay unas versiones \"light\" que podríamos probar.\n\nYo los tengo descargados desde hace tiempo y no recuerdo si los descargué desde ahi", "time": "19:26", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "Antonio Linares" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-25", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":29fq6mfn]Carlos,\n\nPara 32 bits prueba con:\n[url:29fq6mfn]https&#58;//slproweb&#46;com/download/Win32OpenSSL-3_0_2&#46;exe[/url:29fq6mfn]\n\nPara 64 bits prueba con:\n[url:29fq6mfn]https&#58;//slproweb&#46;com/download/Win64OpenSSL-1_1_1n&#46;exe[/url:29fq6mfn]\n\nEn la página de descargas tambien hay unas versiones \"light\" que podríamos probar.\n\nYo los tengo descargados desde hace tiempo y no recuerdo si los descargué desde ahi[/quote:29fq6mfn]\n\nHi Antonio,\n\nCan you please lead me to compile after installing Win32OpenSSL-3_0_2.exe?\n\nThanks.", "time": "20:58", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "Horizon" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-04-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Hakan,\n\nWe already explained it here:\n<!-- l --><a class=\"postlink-local\" href=\"https://forums.fivetechsupport.com/viewtopic.php?p=249800&sid=cf5b3f87e1f151243044e5d25dfd8ca0#p249800\">viewtopic.php?p=249800&sid=cf5b3f87e1f151243044e5d25dfd8ca0#p249800</a><!-- l -->\n\nJust run go32.bat to get Harbour 32 bits, or run go64.bat to get Harbour 64 bits", "time": "10:36", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "Antonio Linares" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2022-06-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Previous post updated including:\n\nset HB_WITH_LIBHARU", "time": "10:17", "topic": "Build your FWH app using hbmk2.exe and MSVC 32&64", "username": "Antonio Linares" } ]
Build your FWH app using hbmk2.exe and MSVC 32&64
[ { "date": "2018-08-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nI want to implement a query-builder in an application.\nIs there an easy way to verify the correct syntax before running the query?\nThe users of the application are engineers, so they know how to make queries.\n\nI want that they enter something like :\n[b:2zz268r6]NAME = 'FI123' OR PTDESC like '%B701%'[/b:2zz268r6]\nThey don't have to enter the table-name. It's one that is selected, so i can already enter the beginning op the query....\nI just add the antered text after the 'WHERE' clause\n\nIt will be also nice that the is maybe an autocomplete, or a selection-list of the available field-names", "time": "07:31", "topic": "Build-in Querybuilder", "username": "Marc Vanzegbroeck" } ]
Build-in Querybuilder
[ { "date": "2018-08-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Marc,\n\nPlease review FWH function FWExpBuilder( cExp, oRs, nClrTxt, nClrBack )\n\nThis function is used from FWH\\samples\\fivedbu.prg so you can test it\n\n[img:3jr40s39]https&#58;//bitbucket&#46;org/fivetech/screenshots/downloads/exprbuilder&#46;JPG[/img:3jr40s39]", "time": "08:18", "topic": "Build-in Querybuilder", "username": "Antonio Linares" } ]
Build-in Querybuilder
[ { "date": "2018-08-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you Antonio,\n\nThat's a very good start.", "time": "08:31", "topic": "Build-in Querybuilder", "username": "Marc Vanzegbroeck" } ]
Build-in Querybuilder
[ { "date": "2018-08-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI have tested it, but I have a problem.\nI'm using a recordset.\n\nI first call FWExpBuilder()\n\nThen I call FWCheckExpression() to see if the result is ok, but I'm always get the error 'Variable does not exist' This is the fieldname of the oRs.\nI tested it with FWH64 May 2016 (FWH 6.04 Revd Build-3)", "time": "16:17", "topic": "Build-in Querybuilder", "username": "Marc Vanzegbroeck" } ]
Build-in Querybuilder
[ { "date": "2018-08-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Please copy here the expression that you build\n\nIn case that you are using a local variable, turn it into a public one", "time": "22:11", "topic": "Build-in Querybuilder", "username": "Antonio Linares" } ]
Build-in Querybuilder
[ { "date": "2018-08-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Here is a little test:\nadoHaalPointselRecordset() returns the recordset.\n\n[code=fw:2vk89msz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #00C800;\">FUNCTION</span> tpsquery<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> cfilter :=  <span style=\"color: #ff0000;\">''</span><br />oRsQuery = adoHaalPointselRecordset<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />FWExpBuilder<span style=\"color: #000000;\">&#40;</span> @cFilter, oRsQuery <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">IF</span> FWCheckExpression <span style=\"color: #000000;\">&#40;</span>cfilter<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ELSE</span><br />    msgalert<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'Filter invalid'</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:2vk89msz]\n\nThis is the query:\n[img:2vk89msz]http&#58;//www&#46;vms&#46;be/tmp/Knipsel001&#46;JPG[/img:2vk89msz]\n\nHere the message:\n[img:2vk89msz]http&#58;//www&#46;vms&#46;be/tmp/Knipsel002&#46;JPG[/img:2vk89msz]", "time": "09:44", "topic": "Build-in Querybuilder", "username": "Marc Vanzegbroeck" } ]
Build-in Querybuilder
[ { "date": "2018-08-19", "forum": "FiveWin for Harbour/xHarbour", "text": "I found the mysql_error() in the mariadb functions to display the last sql-error, but don't know how to display it <!-- s:cry: --><img src=\"{SMILIES_PATH}/icon_cry.gif\" alt=\":cry:\" title=\"Crying or Very sad\" /><!-- s:cry: -->", "time": "15:03", "topic": "Build-in Querybuilder", "username": "Marc Vanzegbroeck" } ]
Build-in Querybuilder
[ { "date": "2018-08-19", "forum": "FiveWin for Harbour/xHarbour", "text": "I found it with calling 'SHOW ERRORS' <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->", "time": "15:22", "topic": "Build-in Querybuilder", "username": "Marc Vanzegbroeck" } ]
Build-in Querybuilder
[ { "date": "2016-04-04", "forum": "FiveWin for Harbour/xHarbour", "text": "I have successfully been able to use the MSVC 2015 ( Community ) IDE to build both 32 bit and 64 bit versions of my application ( with nearly 100 .prg files ).\n\nPrior to 16.03, I had no problem with UE Studio building a Harbour / MSVC 2013 / FWH app ( up to 16.02 ). However, with VS / VC 2015, Microsoft made some definite changes and I am apparently not finding the right libraries. I've tried a lot of options, but no go.\n\nSo, the easiest thing would be for me to create 2 Build.bat files that work with multiple .prg files, and a .rc file. Build64.bat works fine for 1 file with no resources, but I need to do the whole application.\n\n[b:g720ij30]Can someone post a sample build32 and build64 batch files that handle multiple .prg files, and an .rc file ? It needs to be specific to MSVC 2015 ( Community ), Harbour, and FWH 16.03.[/b:g720ij30]\n\nThank you. From that I can create what I need.\n\nFor those who wonder why not use the IDE builds ? I have one issue for sure, and that has to do with checkboxes and radio buttons. When there are multiple of these in a dialog, if I check on one, the text for it ( and other entries ) disappears. It's funny, but my build from .mak files ( which is what UE Studio created but not successfully for 2015 ) do not have that problem, so apparently the IDE is bringing in a .lib that has an issue ....\n\nTim", "time": "22:32", "topic": "Build.bat for MSVC 2015", "username": "TimStone" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nTo build an app using nearly 100 prgs you should use a batch and a makefile as explained here:\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?p=162896#p162896\">viewtopic.php?p=162896#p162896</a><!-- l -->", "time": "22:43", "topic": "Build.bat for MSVC 2015", "username": "Antonio Linares" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Here is the .mak file, but I get the error mak(27) : fatal error U1034: syntax error : separator missing\n\nLine 27 references mServiceHistory.prg \n\n[code=fw:1ashlmr7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />#Microsoft VS2015 make sample, <span style=\"color: #000000;\">&#40;</span>c<span style=\"color: #000000;\">&#41;</span> FiveTech Software <span style=\"color: #000000;\">2014</span><br /><br />HBDIR=c:\\harbour<br />FWDIR=c:\\fwh64<br />VCDIR=<span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\P</span>rogram Files (x86)<span style=\"color: #000000;\">\\M</span>icrosoft Visual Studio 14.0<span style=\"color: #000000;\">\\V</span>C\"</span><br />SDKDIR=<span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\P</span>rogram Files (x86)<span style=\"color: #000000;\">\\W</span>indows Kits<span style=\"color: #000000;\">\\8</span>.1\"</span><br />hdirl=%HBDIR%\\lib\\vc64<br /><br />PRGS =       \\<br />c:\\Projects\\MLS2015\\Source\\TDATA.PRG \\<br />c:\\Projects\\MLS2015\\Source\\emskey.prg \\ <br />c:\\Projects\\MLS2015\\Source\\TRecord.prg \\<br />c:\\Projects\\MLS2015\\Source\\TSEARCH.PRG \\<br />c:\\Projects\\MLS2015\\Source\\mInvPartsPicklist.PRG    \\<br />c:\\Projects\\MLS2015\\Source\\mLaborGlossary.prg   \\<br />c:\\Projects\\MLS2015\\Source\\mServiceKits.PRG \\<br />c:\\Projects\\MLS2015\\Source\\RPTglossary.prg \\<br />c:\\Projects\\MLS2015\\Source\\mLaborChart.prg  \\<br />c:\\Projects\\MLS2015\\Source\\mWrkQuote.prg    \\<br />c:\\Projects\\MLS2015\\Source\\MLSphonebook.prg \\<br />c:\\Projects\\MLS2015\\Source\\mTimeclocks.prg  \\<br />c:\\Projects\\MLS2015\\Source\\MLSnotebook.prg  \\<br />c:\\Projects\\MLS2015\\Source\\MLSphotos.prg    \\<br />c:\\Projects\\MLS2015\\Source\\MLSmessagecenter.prg \\<br />c:\\Projects\\MLS2015\\Source\\mWorkClose.prg   \\<br />c:\\Projects\\MLS2015\\Source\\mFileIndex.prg   \\ <br />c:\\Projects\\MLS2015\\Source\\mServiceHistory.prg \\<br />c:\\Projects\\MLS2015\\Source\\G_GRAPH.PRG  \\<br />c:\\Projects\\MLS2015\\Source\\G_SERVER.PRG \\<br />c:\\Projects\\MLS2015\\Source\\QBCUST.PRG   \\<br />c:\\Projects\\MLS2015\\Source\\mCustomer.prg    \\<br />c:\\Projects\\MLS2015\\Source\\aswEmail.prg \\<br />c:\\Projects\\MLS2015\\Source\\mClientFollowUp.prg \\<br />c:\\Projects\\MLS2015\\Source\\mTextEditor.prg \\<br />c:\\Projects\\MLS2015\\Source\\mClientUtilities.prg \\<br />c:\\Projects\\MLS2015\\Source\\mPMscheduler.prg \\<br />c:\\Projects\\MLS2015\\Source\\RPTclient.prg    \\<br />c:\\Projects\\MLS2015\\Source\\MLScalendar.prg  \\<br />c:\\Projects\\MLS2015\\Source\\mInvPurchaseOrder.prg \\<br />c:\\Projects\\MLS2015\\Source\\mInvReturn.prg   \\<br />c:\\Projects\\MLS2015\\Source\\mInvCore.PRG \\<br />c:\\Projects\\MLS2015\\Source\\RPTinventory.prg \\<br />c:\\Projects\\MLS2015\\Source\\mInvUtilities.prg    \\<br />c:\\Projects\\MLS2015\\Source\\BldComp.PRG  \\<br />c:\\Projects\\MLS2015\\Source\\emswab.prg   \\<br />c:\\Projects\\MLS2015\\Source\\InspChk.PRG  \\<br />c:\\Projects\\MLS2015\\Source\\MLSAutoFU.prg    \\<br />c:\\Projects\\MLS2015\\Source\\MLSEditor.prg \\<br />c:\\Projects\\MLS2015\\Source\\NumCnv.prg   \\<br />c:\\Projects\\MLS2015\\Source\\StrucEdit.prg    \\<br />c:\\Projects\\MLS2015\\Source\\rpreview.prg \\<br />c:\\Projects\\MLS2015\\Source\\tCalc.prg    \\<br />c:\\Projects\\MLS2015\\Source\\utillog.prg  \\<br />c:\\Projects\\MLS2015\\Source\\ViewWOStatus.prg \\<br />c:\\Projects\\MLS2015\\Source\\webmap.prg   \\<br />c:\\Projects\\MLS2015\\Source\\woaudt.prg \\<br />c:\\Projects\\MLS2015\\Source\\mWorkOrders.prg \\<br />c:\\Projects\\MLS2015\\Source\\mWorkPrint.prg \\<br />c:\\Projects\\MLS2015\\Source\\mARaccounts.PRG \\<br />c:\\Projects\\MLS2015\\Source\\mARtransactions.PRG \\<br />c:\\Projects\\MLS2015\\Source\\RPTreceivables.prg \\<br />c:\\Projects\\MLS2015\\Source\\mARutilities.prg \\<br />c:\\Projects\\MLS2015\\Source\\mAPaccounts.PRG \\<br />c:\\Projects\\MLS2015\\Source\\mAPtransactions.PRG \\<br />c:\\Projects\\MLS2015\\Source\\TDATA.PRG \\<br />c:\\Projects\\MLS2015\\Source\\emskey.prg \\<br />c:\\Projects\\MLS2015\\Source\\mls_func.prg \\<br />c:\\Projects\\MLS2015\\Source\\MSGDATE.PRG \\<br />c:\\Projects\\MLS2015\\Source\\PROSPELL.PRG \\<br />c:\\Projects\\MLS2015\\Source\\TRecord.prg \\<br />c:\\Projects\\MLS2015\\Source\\TSEARCH.PRG \\<br />c:\\Projects\\MLS2015\\Source\\mInvPartsPicklist.PRG \\<br />c:\\Projects\\MLS2015\\Source\\mLaborGlossary.prg \\<br />c:\\Projects\\MLS2015\\Source\\mServiceKits.PRG \\<br />c:\\Projects\\MLS2015\\Source\\RPTglossary.prg \\<br />c:\\Projects\\MLS2015\\Source\\mLaborChart.prg \\<br />c:\\Projects\\MLS2015\\Source\\mWrkQuote.prg \\<br />c:\\Projects\\MLS2015\\Source\\MLSphonebook.prg \\<br />c:\\Projects\\MLS2015\\Source\\mTimeclocks.prg \\<br />c:\\Projects\\MLS2015\\Source\\MLSnotebook.prg \\<br />c:\\Projects\\MLS2015\\Source\\MLSphotos.prg \\<br />c:\\Projects\\MLS2015\\Source\\MLSmessagecenter.prg \\<br />c:\\Projects\\MLS2015\\Source\\mWorkClose.prg \\<br />c:\\Projects\\MLS2015\\Source\\mFileIndex.prg \\<br />c:\\Projects\\MLS2015\\Source\\mServiceHistory.prg \\<br />c:\\Projects\\MLS2015\\Source\\G_GRAPH.PRG \\<br />c:\\Projects\\MLS2015\\Source\\G_SERVER.PRG \\<br />c:\\Projects\\MLS2015\\Source\\QBCUST.PRG \\<br />c:\\Projects\\MLS2015\\Source\\mCustomer.prg \\<br />c:\\Projects\\MLS2015\\Source\\aswEmail.prg \\<br />c:\\Projects\\MLS2015\\Source\\mClientFollowUp.prg \\<br />c:\\Projects\\MLS2015\\Source\\mTextEditor.prg \\<br />c:\\Projects\\MLS2015\\Source\\mClientUtilities.prg \\<br />c:\\Projects\\MLS2015\\Source\\mPMscheduler.prg \\<br />c:\\Projects\\MLS2015\\Source\\RPTclient.prg \\<br />c:\\Projects\\MLS2015\\Source\\MLScalendar.prg \\<br />c:\\Projects\\MLS2015\\Source\\mInvPurchaseOrder.prg \\<br />c:\\Projects\\MLS2015\\Source\\mInvReturn.prg \\<br />c:\\Projects\\MLS2015\\Source\\mInvCore.PRG \\<br />c:\\Projects\\MLS2015\\Source\\RPTinventory.prg \\<br />c:\\Projects\\MLS2015\\Source\\mInvUtilities.prg \\<br />c:\\Projects\\MLS2015\\Source\\BldComp.PRG \\<br />c:\\Projects\\MLS2015\\Source\\emswab.prg \\<br />c:\\Projects\\MLS2015\\Source\\InspChk.PRG \\<br />c:\\Projects\\MLS2015\\Source\\MLSAutoFU.prg \\<br />c:\\Projects\\MLS2015\\Source\\MLSEditor.prg \\<br />c:\\Projects\\MLS2015\\Source\\NumCnv.prg \\<br />c:\\Projects\\MLS2015\\Source\\StrucEdit.prg \\<br />c:\\Projects\\MLS2015\\Source\\rpreview.prg \\<br />c:\\Projects\\MLS2015\\Source\\tCalc.prg \\<br />c:\\Projects\\MLS2015\\Source\\utillog.prg \\<br />c:\\Projects\\MLS2015\\Source\\ViewWOStatus.prg \\<br />c:\\Projects\\MLS2015\\Source\\webmap.prg \\<br />c:\\Projects\\MLS2015\\Source\\woaudt.prg \\<br />c:\\Projects\\MLS2015\\Source\\mWorkOrders.prg \\<br />c:\\Projects\\MLS2015\\Source\\mWorkPrint.prg \\<br />c:\\Projects\\MLS2015\\Source\\mARaccounts.PRG \\<br />c:\\Projects\\MLS2015\\Source\\mARtransactions.PRG \\<br />c:\\Projects\\MLS2015\\Source\\RPTreceivables.prg \\<br />c:\\Projects\\MLS2015\\Source\\mARutilities.prg \\<br />c:\\Projects\\MLS2015\\Source\\mAPaccounts.PRG \\<br />c:\\Projects\\MLS2015\\Source\\mAPtransactions.PRG \\<br />c:\\Projects\\MLS2015\\Source\\mAPutilities.prg \\<br />c:\\Projects\\MLS2015\\Source\\RPTpayables.prg \\<br />c:\\Projects\\MLS2015\\Source\\mGLaccounts.PRG \\<br />c:\\Projects\\MLS2015\\Source\\RPTledger.prg \\<br />c:\\Projects\\MLS2015\\Source\\mPayroll.prg \\<br />c:\\Projects\\MLS2015\\Source\\mPayrollProcessing.prg \\<br />c:\\Projects\\MLS2015\\Source\\RPTpayroll.prg \\<br />c:\\Projects\\MLS2015\\Source\\mPayrollUtilities.prg \\<br />c:\\Projects\\MLS2015\\Source\\mBankAccount.prg \\<br />c:\\Projects\\MLS2015\\Source\\RPTbank.prg \\<br />c:\\Projects\\MLS2015\\Source\\mReports.prg \\<br />c:\\Projects\\MLS2015\\Source\\RPTworkordersB.prg \\<br />c:\\Projects\\MLS2015\\Source\\RPTworkorders.prg \\<br />c:\\Projects\\MLS2015\\Source\\mASWgraphs.prg \\<br />c:\\Projects\\MLS2015\\Source\\DemandForce.PRG \\<br />c:\\Projects\\MLS2015\\Source\\VINDCD.PRG \\<br />c:\\Projects\\MLS2015\\Source\\UtilCarFax.prg \\<br />c:\\Projects\\MLS2015\\Source\\merchant.prg \\<br />c:\\Projects\\MLS2015\\Source\\realtime.prg \\<br />c:\\Projects\\MLS2015\\Source\\RReward.prg \\<br />c:\\Projects\\MLS2015\\Source\\rprevfunc.prg \\<br />c:\\Projects\\MLS2015\\Source\\mConfigSys.prg \\<br />c:\\Projects\\MLS2015\\Source\\mListEditor.prg \\<br />c:\\Projects\\MLS2015\\Source\\mInventory.prg \\<br />c:\\Projects\\MLS2015\\Source\\mListArrays.PRG \\<br />c:\\Projects\\MLS2015\\Source\\mWorkData.prg \\<br />c:\\Projects\\MLS2015\\Source\\mWorkParts.prg \\<br />c:\\Projects\\MLS2015\\Source\\mWorkLabor.prg \\<br />c:\\Projects\\MLS2015\\Source\\mLookup.prg \\<br />c:\\Projects\\MLS2015\\Source\\mWorkNeeds.prg \\<br />c:\\fwh\\source\\<span style=\"color: #00C800;\">function</span>\\errsysw.prg \\<br />c:\\Projects\\MLS2015\\Source\\mAPutilities.prg \\<br />c:\\Projects\\MLS2015\\Source\\RPTpayables.prg \\<br />c:\\Projects\\MLS2015\\Source\\mGLaccounts.PRG \\<br />c:\\Projects\\MLS2015\\Source\\RPTledger.prg \\<br />c:\\Projects\\MLS2015\\Source\\mPayroll.prg \\<br />c:\\Projects\\MLS2015\\Source\\mPayrollProcessing.prg \\<br />c:\\Projects\\MLS2015\\Source\\RPTpayroll.prg \\<br />c:\\Projects\\MLS2015\\Source\\mPayrollUtilities.prg \\<br />c:\\Projects\\MLS2015\\Source\\mBankAccount.prg \\<br />c:\\Projects\\MLS2015\\Source\\RPTbank.prg \\<br />c:\\Projects\\MLS2015\\Source\\mReports.prg \\<br />c:\\Projects\\MLS2015\\Source\\RPTworkordersB.prg \\<br />c:\\Projects\\MLS2015\\Source\\RPTworkorders.prg \\<br />c:\\Projects\\MLS2015\\Source\\mASWgraphs.prg \\<br />c:\\Projects\\MLS2015\\Source\\DemandForce.PRG \\<br />c:\\Projects\\MLS2015\\Source\\VINDCD.PRG \\<br />c:\\Projects\\MLS2015\\Source\\UtilCarFax.prg \\<br />c:\\Projects\\MLS2015\\Source\\merchant.prg \\<br />c:\\Projects\\MLS2015\\Source\\realtime.prg \\<br />c:\\Projects\\MLS2015\\Source\\RReward.prg \\<br />c:\\Projects\\MLS2015\\Source\\rprevfunc.prg \\<br />c:\\Projects\\MLS2015\\Source\\mConfigSys.prg \\<br />c:\\Projects\\MLS2015\\Source\\mListEditor.prg \\<br />c:\\Projects\\MLS2015\\Source\\mInventory.prg \\<br />c:\\Projects\\MLS2015\\Source\\mListArrays.PRG \\<br />c:\\Projects\\MLS2015\\Source\\mWorkData.prg \\<br />c:\\Projects\\MLS2015\\Source\\mWorkParts.prg \\<br />c:\\Projects\\MLS2015\\Source\\mWorkLabor.prg \\<br />c:\\Projects\\MLS2015\\Source\\mLookup.prg \\<br />c:\\Projects\\MLS2015\\Source\\mWorkNeeds.prg \\<br />c:\\fwh\\source\\<span style=\"color: #00C800;\">function</span>\\errsysw.prg \\<br />c:\\Projects\\MLS2015\\Source\\Kukui.prg <br /> <br />.SUFFIXES: .prg .c .obj .rc .res <br /><br />MyApp.exe : $<span style=\"color: #000000;\">&#40;</span>PRGS:.prg=.obj<span style=\"color: #000000;\">&#41;</span> MyApp.res<br />   echo $<span style=\"color: #000000;\">&#40;</span>PRGS:.prg=.obj<span style=\"color: #000000;\">&#41;</span> > msvc.tmp<br /><br />   echo $<span style=\"color: #000000;\">&#40;</span>FWDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\FiveH32.lib $<span style=\"color: #000000;\">&#40;</span>FWDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\FiveHC32.lib >> msvc.tmp<br /><br />echo %fwdir%\\lib\\FiveH64.lib %fwdir%\\lib\\FiveHC64.lib  >> msvc.tmp<br /><br />echo %hdirl%\\hbrtl.lib  >> msvc.tmp<br />echo %hdirl%\\hbvm.lib  >> msvc.tmp<br />echo %hdirl%\\gtgui.lib  >> msvc.tmp<br />echo %hdirl%\\hblang.lib  >> msvc.tmp<br />echo %hdirl%\\hbmacro.lib  >> msvc.tmp<br />echo %hdirl%\\hbrdd.lib  >> msvc.tmp<br />echo %hdirl%\\rddntx.lib  >> msvc.tmp<br />echo %hdirl%\\rddcdx.lib  >> msvc.tmp<br />echo %hdirl%\\rddfpt.lib  >> msvc.tmp<br />echo %hdirl%\\hbsix.lib  >> msvc.tmp<br />echo %hdirl%\\hbdebug.lib  >> msvc.tmp<br />echo %hdirl%\\hbcommon.lib  >> msvc.tmp<br />echo %hdirl%\\hbpp.lib  >> msvc.tmp<br />echo %hdirl%\\hbcpage.lib  >> msvc.tmp<br />echo %hdirl%\\hbwin.lib  >> msvc.tmp<br />echo %hdirl%\\hbct.lib  >> msvc.tmp<br />echo %hdirl%\\hbziparc.lib >> msvc.tmp<br />echo %hdirl%\\hbmzip.lib >> msvc.tmp<br />echo %hdirl%\\hbzlib.lib >> msvc.tmp<br />echo %hdirl%\\hbpcre.lib >> msvc.tmp<br />echo %hdirl%\\minizip.lib >> msvc.tmp<br />echo %hdirl%\\xhb.lib >> msvc.tmp<br />echo %hdirl%\\hbcplr.lib >> msvc.tmp<br />echo %hdirl%\\png.lib >> msvc.tmp<br /><br />rem Uncomment these two lines <span style=\"color: #0000ff;\">to</span> use Advantage RDD<br />echo %hdirl%\\rddads.lib >> msvc.tmp<br />echo %hdirl%\\ace32.lib >> msvc.tmp<br /><br />echo kernel32.lib  >> msvc.tmp<br />echo user32.lib    >> msvc.tmp<br />echo gdi32.lib     >> msvc.tmp<br />echo winspool.lib  >> msvc.tmp<br />echo comctl32.lib  >> msvc.tmp<br />echo comdlg32.lib  >> msvc.tmp<br />echo advapi32.lib  >> msvc.tmp<br />echo shell32.lib   >> msvc.tmp<br />echo ole32.lib     >> msvc.tmp<br />echo oleaut32.lib  >> msvc.tmp<br />echo uuid.lib      >> msvc.tmp<br />echo odbc32.lib    >> msvc.tmp<br />echo odbccp32.lib  >> msvc.tmp<br />echo iphlpapi.lib  >> msvc.tmp<br />echo mpr.lib       >> msvc.tmp<br />echo version.lib   >> msvc.tmp<br />echo wsock32.lib   >> msvc.tmp<br />echo msimg32.lib   >> msvc.tmp<br />echo oledlg.lib    >> msvc.tmp<br />echo psapi.lib     >> msvc.tmp<br />echo gdiplus.lib   >> msvc.tmp<br />echo winmm.lib     >> msvc.tmp<br />echo vfw32.lib     >> msvc.tmp<br /><br />   <span style=\"color: #00C800;\">IF</span> EXIST MyApp.res echo MyApp.res >> msvc.tmp<br />   <br />   link @msvc.tmp /nologo /subsystem:<span style=\"color: #000000;\">windows</span> /NODEFAULTLIB:<span style=\"color: #000000;\">msvcrt</span> > link.log<br />   @type link.log<br />   @del $<span style=\"color: #000000;\">&#40;</span>PRGS:.prg=.obj<span style=\"color: #000000;\">&#41;</span><br /><br />$<span style=\"color: #000000;\">&#40;</span>PRGS:.prg=.obj<span style=\"color: #000000;\">&#41;</span> : $<span style=\"color: #000000;\">&#40;</span>PRGS:.prg=.c<span style=\"color: #000000;\">&#41;</span><br />$<span style=\"color: #000000;\">&#40;</span>PRGS:.prg=.c<span style=\"color: #000000;\">&#41;</span> : $<span style=\"color: #000000;\">&#40;</span>PRGS<span style=\"color: #000000;\">&#41;</span><br /><br />MyApp.res : <span style=\"color: #000000;\">MyApp</span>.rc<br />   rc.exe -r -d__FLAT__ MLS10.rc <br />   <br />.prg.c:<br />   $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\bin\\harbour $< /n /i$<span style=\"color: #000000;\">&#40;</span>FWDIR<span style=\"color: #000000;\">&#41;</span>\\include;$<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\include<br /><br />.c.obj:<br />   cl.exe -c -TC -W3 -I$<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\include -I$<span style=\"color: #000000;\">&#40;</span>SDKDIR<span style=\"color: #000000;\">&#41;</span>\\include -I$<span style=\"color: #000000;\">&#40;</span>VCDIR<span style=\"color: #000000;\">&#41;</span>\\include $<<br /> <br /> </div>[/code:1ashlmr7]\n\nAlso, I assume I must also add all of the BMP files referenced in the RC file.\n\nCan you tell me why the separator error ?\n\nTim", "time": "20:30", "topic": "Build.bat for MSVC 2015", "username": "TimStone" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nAll PRGs names must be lowercase (name and extension)\n\nCheck that there are no tabs in line 47:\n\nc:\\Projects\\MLS2015\\Source\\mServiceHistory.prg \\", "time": "20:45", "topic": "Build.bat for MSVC 2015", "username": "Antonio Linares" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-06", "forum": "FiveWin for Harbour/xHarbour", "text": "I re-cased all lines.\n\nI removed the offending line and re-entered it.\n\nI still get the same error.\n\nTim", "time": "20:50", "topic": "Build.bat for MSVC 2015", "username": "TimStone" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "This works with hbmk2\nm.bat \n[code=fw:1echj2h5]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">@echo off<br /><br /><br />SET PATH=C:\\Program Files <span style=\"color: #000000;\">&#40;</span>x86<span style=\"color: #000000;\">&#41;</span>\\Microsoft Visual Studio <span style=\"color: #000000;\">14.0</span>\\VC\\;c:\\fwh64\\Harbour_Vs2015\\bin;C:\\WINDOWS;C:\\WINDOWS\\SYSTEM32<br /><br /><br />call <span style=\"color: #ff0000;\">\"C:<span style=\"color: #000000;\">\\P</span>rogram Files (x86)<span style=\"color: #000000;\">\\M</span>icrosoft Visual Studio 14.0<span style=\"color: #000000;\">\\V</span>C<span style=\"color: #000000;\">\\b</span>in<span style=\"color: #000000;\">\\x</span>86_amd64<span style=\"color: #000000;\">\\v</span>cvarsx86_amd64.bat\"</span><br />set VisualStudioVersion=<span style=\"color: #000000;\">14.0</span><br /><br />hbmk2 -inc -comp=msvc mastro.hbm fwh.hbc -omastrosql <br /><br /><span style=\"color: #00C800;\">IF</span> ERRORLEVEL <span style=\"color: #000000;\">1</span> GOTO LINKERROR<br />ECHO ------------------ &nbsp;Application successfully built *<br />echo start mastrosql.exe /HIGH &nbsp;<br />mastrosql.exe<br /><br />GOTO EXIT<br /><br /><br />:<span style=\"color: #000000;\">LINKERROR</span><br />ECHO ****************** Linking errors *<br />GOTO EXIT<br /><br /><br />:<span style=\"color: #000000;\">EXIT</span><br />&nbsp;</div>[/code:1echj2h5]\n\nfwh.hbc\n[code=fw:1echj2h5]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #000000;\">&#123;</span>win<span style=\"color: #000000;\">&#125;</span>gt=gtgui<br /><br />incpaths=c:\\bcc71<span style=\"color: #000000;\">-64</span>\\INCLUDE<br />libpaths=c:\\bcc71<span style=\"color: #000000;\">-64</span>\\LIB<br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>incpaths=include <br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libpaths=lib<br />incpaths=C:\\FWH64\\include<br />libpaths=C:\\FWH64\\lib<br /><br /><span style=\"color: #000000;\">&#123;</span>bcc64<span style=\"color: #000000;\">&#125;</span>libs=five64 fivec64 &nbsp;<br /><br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=fiveh64 fivehc64 &nbsp;<br /><br /><span style=\"color: #000000;\">&#123;</span>win<span style=\"color: #000000;\">&#125;</span>libs=hbwin <br /><span style=\"color: #000000;\">&#123;</span>win<span style=\"color: #000000;\">&#125;</span>libs=gtgui &nbsp; &nbsp;<br /><span style=\"color: #000000;\">&#123;</span>win<span style=\"color: #000000;\">&#125;</span>libs=hbct <br /><span style=\"color: #000000;\">&#123;</span>win<span style=\"color: #000000;\">&#125;</span>libs=xhb <br /><span style=\"color: #000000;\">&#123;</span>win<span style=\"color: #000000;\">&#125;</span>libs=hbziparc <br /><span style=\"color: #000000;\">&#123;</span>win<span style=\"color: #000000;\">&#125;</span>libs=hbmzip <br /><span style=\"color: #000000;\">&#123;</span>win<span style=\"color: #000000;\">&#125;</span>libs=minizip <br /><span style=\"color: #000000;\">&#123;</span>win<span style=\"color: #000000;\">&#125;</span>libs=png &nbsp;<br /><br /><br /><br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=kernel32 &nbsp;<br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=user32 &nbsp; &nbsp;<br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=gdi32 &nbsp; &nbsp; <br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=winspool &nbsp;<br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=comctl32 &nbsp;<br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=comdlg32 &nbsp;<br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=advapi32 &nbsp;<br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=shell32 &nbsp; <br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=ole32 &nbsp; &nbsp; <br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=oleaut32 &nbsp;<br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=uuid &nbsp; &nbsp; &nbsp;<br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=odbc32 &nbsp; &nbsp;<br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=odbccp32 &nbsp;<br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=iphlpapi &nbsp;<br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=mpr &nbsp; &nbsp; &nbsp; <br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=version &nbsp; <br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=wsock32 &nbsp; <br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=msimg32 &nbsp; <br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=oledlg &nbsp; &nbsp;<br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=psapi &nbsp; &nbsp; <br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=gdiplus &nbsp; <br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=winmm &nbsp; &nbsp; <br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>libs=vfw32 &nbsp; &nbsp; <br /><br /><br /><br />&nbsp;</div>[/code:1echj2h5]\n\nmastro.hbm\n[code=fw:1echj2h5]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">#<span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>-ldflag=/FORCE:<span style=\"color: #000000;\">multiple</span><br />#<span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>-ldflag=/NODEFAULTLIB:<span style=\"color: #000000;\">libc</span><br /><br /><span style=\"color: #000000;\">&#123;</span>msvc<span style=\"color: #000000;\">&#125;</span>-ldflag= -W3 -O2 &nbsp;<br /><br />-tshead=timestamp.ch <br /><br />-n <br />-m <br />-w <br />-es2 <br />-gc0 <br />-p <br />-q<br /><br />tutor01.prg<br />tutor02.prg <br /><br /><br />mastrosql.res<br />&nbsp;</div>[/code:1echj2h5]\n\nRegards\nMaurizio \n<!-- w --><a class=\"postlink\" href=\"http://www.nipeservice.com\">www.nipeservice.com</a><!-- w -->", "time": "08:55", "topic": "Build.bat for MSVC 2015", "username": "Maurizio" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nPlease remove the line that fails and try it again\n\nDon't reenter it\n\nLets see if the error continues without it", "time": "08:27", "topic": "Build.bat for MSVC 2015", "username": "Antonio Linares" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Maurizio,\n\nYou appear to have a Borland path reference in there which I am not using.\n\nAntonio,\n\nIt's not that line. Here is a modified go64.bat file. I modified it, and put it in the same folder as the .prg files. \n\n[code=fw:1ehs2oof]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />#Microsoft VS2015 make sample, <span style=\"color: #000000;\">&#40;</span>c<span style=\"color: #000000;\">&#41;</span> FiveTech Software <span style=\"color: #000000;\">2014</span><br /><br />HBDIR=c:\\harbour<br />FWDIR=c:\\fwh64<br />VCDIR=<span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\P</span>rogram Files (x86)<span style=\"color: #000000;\">\\M</span>icrosoft Visual Studio 14.0<span style=\"color: #000000;\">\\V</span>C\"</span><br />SDKDIR=<span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\P</span>rogram Files (x86)<span style=\"color: #000000;\">\\W</span>indows Kits<span style=\"color: #000000;\">\\8</span>.1\"</span><br />hdirl=%HBDIR%\\lib\\vc64<br /><br />PRGS = tdata.prg emskey.prg trecord.prg tsearch.prg minvpartspicklist.prg&nbsp; &nbsp;mlaborglossary.prg&nbsp; \\<br />mservicekits.prg&nbsp; &nbsp; rptglossary.prg mlaborchart.prg&nbsp;mwrkquote.prg&nbsp; &nbsp;mlsphonebook.prg&nbsp; &nbsp; mtimeclocks.prg&nbsp;\\<br />mlsnotebook.prg&nbsp;mlsphotos.prg&nbsp; &nbsp;mlsmessagecenter.prg mworkclose.prg&nbsp;mfileindex.prg&nbsp; mservicehistory.prg \\<br />g_graph.prg&nbsp;g_server.prg&nbsp; &nbsp; qbcust.prg&nbsp; mcustomer.prg&nbsp; &nbsp;aswemail.prg&nbsp; &nbsp; mclientfollowup.prg mtexteditor.prg \\<br />mclientutilities.prg mpmscheduler.prg&nbsp; &nbsp;rptclient.prg&nbsp; &nbsp;mlscalendar.prg&nbsp;minvpurchaseorder.prg minvreturn.prg&nbsp; &nbsp; \\<br />minvcore.prg&nbsp; &nbsp; rptinventory.prg minvutilities.prg&nbsp; bldcomp.prg&nbsp;emswab.prg&nbsp; inspchk.prg&nbsp;mlsautofu.prg&nbsp; &nbsp;\\<br />mlseditor.prg numcnv.prg&nbsp; &nbsp; strucedit.prg&nbsp; &nbsp;rpreview.prg&nbsp; &nbsp; tcalc.prg&nbsp; &nbsp;utillog.prg&nbsp;viewwostatus.prg webmap.prg&nbsp;\\<br />woaudt.prg mworkorders.prg mworkprint.prg maraccounts.prg martransactions.prg rptreceivables.prg marutilities.prg \\<br />mapaccounts.prg maptransactions.prg tdata.prg emskey.prg mls_func.prg msgdate.prg prospell.prg trecord.prg \\<br />tsearch.prg minvpartspicklist.prg mlaborglossary.prg mservicekits.prg rptglossary.prg mlaborchart.prg \\<br />mwrkquote.prg mlsphonebook.prg mtimeclocks.prg mlsnotebook.prg mlsphotos.prg mlsmessagecenter.prg mworkclose.prg \\<br />mfileindex.prg mservicehistory.prg g_graph.prg g_server.prg qbcust.prg mcustomer.prg aswemail.prg mclientfollowup.prg \\<br />mtexteditor.prg mclientutilities.prg mpmscheduler.prg rptclient.prg mlscalendar.prg minvpurchaseorder.prg minvreturn.prg \\<br />minvcore.prg rptinventory.prg minvutilities.prg bldcomp.prg emswab.prg inspchk.prg mlsautofu.prg mlseditor.prg numcnv.prg \\<br />strucedit.prg rpreview.prg tcalc.prg utillog.prg viewwostatus.prg webmap.prg woaudt.prg mworkorders.prg mworkprint.prg \\<br />maraccounts.prg martransactions.prg rptreceivables.prg marutilities.prg mapaccounts.prg maptransactions.prg maputilities.prg \\<br />rptpayables.prg mglaccounts.prg rptledger.prg mpayroll.prg mpayrollprocessing.prg rptpayroll.prg mpayrollutilities.prg \\<br />mbankaccount.prg rptbank.prg mreports.prg rptworkordersb.prg rptworkorders.prg maswgraphs.prg demandforce.prg vindcd.prg \\<br />utilcarfax.prg merchant.prg realtime.prg rreward.prg rprevfunc.prg mconfigsys.prg mlisteditor.prg minventory.prg mlistarrays.prg \\<br />mworkdata.prg mworkparts.prg mworklabor.prg mlookup.prg mworkneeds.prg maputilities.prg rptpayables.prg mglaccounts.prg \\<br />rptledger.prg mpayroll.prg mpayrollprocessing.prg rptpayroll.prg mpayrollutilities.prg mbankaccount.prg rptbank.prg mreports.prg \\<br />rptworkordersb.prg rptworkorders.prg maswgraphs.prg demandforce.prg vindcd.prg utilcarfax.prg merchant.prg realtime.prg rreward.prg \\<br />rprevfunc.prg mconfigsys.prg mlisteditor.prg minventory.prg mlistarrays.prg mworkdata.prg mworkparts.prg mworklabor.prg mlookup.prg \\<br />mworkneeds.prg kukui.prg <br />&nbsp;<br />.SUFFIXES: .prg .c .obj .rc .res <br /><br />MyApp.exe : $<span style=\"color: #000000;\">&#40;</span>PRGS:.prg=.obj<span style=\"color: #000000;\">&#41;</span> MyApp.res<br />&nbsp; echo $<span style=\"color: #000000;\">&#40;</span>PRGS:.prg=.obj<span style=\"color: #000000;\">&#41;</span> > msvc.tmp<br />&nbsp; &nbsp; echo %fwdir%\\lib\\FiveH64.lib %fwdir%\\lib\\FiveHC64.lib &nbsp;>> msvc.tmp<br /><br />echo %hdirl%\\hbrtl.lib &nbsp;>> msvc.tmp<br />echo %hdirl%\\hbvm.lib &nbsp;>> msvc.tmp<br />echo %hdirl%\\gtgui.lib &nbsp;>> msvc.tmp<br />echo %hdirl%\\hblang.lib &nbsp;>> msvc.tmp<br />echo %hdirl%\\hbmacro.lib &nbsp;>> msvc.tmp<br />echo %hdirl%\\hbrdd.lib &nbsp;>> msvc.tmp<br />echo %hdirl%\\rddntx.lib &nbsp;>> msvc.tmp<br />echo %hdirl%\\rddcdx.lib &nbsp;>> msvc.tmp<br />echo %hdirl%\\rddfpt.lib &nbsp;>> msvc.tmp<br />echo %hdirl%\\hbsix.lib &nbsp;>> msvc.tmp<br />echo %hdirl%\\hbdebug.lib &nbsp;>> msvc.tmp<br />echo %hdirl%\\hbcommon.lib &nbsp;>> msvc.tmp<br />echo %hdirl%\\hbpp.lib &nbsp;>> msvc.tmp<br />echo %hdirl%\\hbcpage.lib &nbsp;>> msvc.tmp<br />echo %hdirl%\\hbwin.lib &nbsp;>> msvc.tmp<br />echo %hdirl%\\hbct.lib &nbsp;>> msvc.tmp<br />echo %hdirl%\\hbziparc.lib >> msvc.tmp<br />echo %hdirl%\\hbmzip.lib >> msvc.tmp<br />echo %hdirl%\\hbzlib.lib >> msvc.tmp<br />echo %hdirl%\\hbpcre.lib >> msvc.tmp<br />echo %hdirl%\\minizip.lib >> msvc.tmp<br />echo %hdirl%\\xhb.lib >> msvc.tmp<br />echo %hdirl%\\hbcplr.lib >> msvc.tmp<br />echo %hdirl%\\png.lib >> msvc.tmp<br /><br />rem Uncomment these two lines <span style=\"color: #0000ff;\">to</span> use Advantage RDD<br />echo %hdirl%\\rddads.lib >> msvc.tmp<br />echo %hdirl%\\ace32.lib >> msvc.tmp<br /><br />echo kernel32.lib &nbsp;>> msvc.tmp<br />echo user32.lib &nbsp; &nbsp;>> msvc.tmp<br />echo gdi32.lib &nbsp; &nbsp; >> msvc.tmp<br />echo winspool.lib &nbsp;>> msvc.tmp<br />echo comctl32.lib &nbsp;>> msvc.tmp<br />echo comdlg32.lib &nbsp;>> msvc.tmp<br />echo advapi32.lib &nbsp;>> msvc.tmp<br />echo shell32.lib &nbsp; >> msvc.tmp<br />echo ole32.lib &nbsp; &nbsp; >> msvc.tmp<br />echo oleaut32.lib &nbsp;>> msvc.tmp<br />echo uuid.lib &nbsp; &nbsp; &nbsp;>> msvc.tmp<br />echo odbc32.lib &nbsp; &nbsp;>> msvc.tmp<br />echo odbccp32.lib &nbsp;>> msvc.tmp<br />echo iphlpapi.lib &nbsp;>> msvc.tmp<br />echo mpr.lib &nbsp; &nbsp; &nbsp; >> msvc.tmp<br />echo version.lib &nbsp; >> msvc.tmp<br />echo wsock32.lib &nbsp; >> msvc.tmp<br />echo msimg32.lib &nbsp; >> msvc.tmp<br />echo oledlg.lib &nbsp; &nbsp;>> msvc.tmp<br />echo psapi.lib &nbsp; &nbsp; >> msvc.tmp<br />echo gdiplus.lib &nbsp; >> msvc.tmp<br />echo winmm.lib &nbsp; &nbsp; >> msvc.tmp<br />echo vfw32.lib &nbsp; &nbsp; >> msvc.tmp<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> EXIST MyApp.res echo MyApp.res >> msvc.tmp<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;link @msvc.tmp /nologo /subsystem:<span style=\"color: #000000;\">windows</span> /NODEFAULTLIB:<span style=\"color: #000000;\">msvcrt</span> > link.log<br />&nbsp; &nbsp;@type link.log<br />&nbsp; &nbsp;@del $<span style=\"color: #000000;\">&#40;</span>PRGS:.prg=.obj<span style=\"color: #000000;\">&#41;</span><br /><br />$<span style=\"color: #000000;\">&#40;</span>PRGS:.prg=.obj<span style=\"color: #000000;\">&#41;</span> : $<span style=\"color: #000000;\">&#40;</span>PRGS:.prg=.c<span style=\"color: #000000;\">&#41;</span><br />$<span style=\"color: #000000;\">&#40;</span>PRGS:.prg=.c<span style=\"color: #000000;\">&#41;</span> : $<span style=\"color: #000000;\">&#40;</span>PRGS<span style=\"color: #000000;\">&#41;</span><br /><br />MyApp.res : <span style=\"color: #000000;\">MyApp</span>.rc<br />&nbsp; &nbsp;rc.exe -r -d__FLAT__ MLS10.rc <br />&nbsp; &nbsp;<br />.prg.c:<br />&nbsp; &nbsp;$<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\bin\\harbour $< /n /i$<span style=\"color: #000000;\">&#40;</span>FWDIR<span style=\"color: #000000;\">&#41;</span>\\include;$<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\include<br /><br />.c.obj:<br />&nbsp; &nbsp;<span style=\"color: #000000;\">cl</span>.exe -c -TC -W3 -I$<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\include -I$<span style=\"color: #000000;\">&#40;</span>SDKDIR<span style=\"color: #000000;\">&#41;</span>\\include -I$<span style=\"color: #000000;\">&#40;</span>VCDIR<span style=\"color: #000000;\">&#41;</span>\\include $<<br />&nbsp;<br />&nbsp;</div>[/code:1ehs2oof]\n\nNow it fails at line 41 which is adding hbvm.lib. It doesn't matter what is there, it still fails with the \"missing separator\" error.\n\nAlso, I assume I have to specify the .bmp files that are included in the .rc build. How do I list them ?\n\nTim", "time": "19:12", "topic": "Build.bat for MSVC 2015", "username": "TimStone" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim ,\nit can works with msvc or borland , for 32 or 64 bit .\n\nMaurizio \n<!-- w --><a class=\"postlink\" href=\"http://www.nipeservice.com\">www.nipeservice.com</a><!-- w -->", "time": "07:45", "topic": "Build.bat for MSVC 2015", "username": "Maurizio" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nDo you have the libs here ? \n\nFWDIR=c:\\fwh64\n\n%FWDIR%\\lib ?\n\nPlease check that they are there", "time": "22:34", "topic": "Build.bat for MSVC 2015", "username": "Antonio Linares" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "The libs are all in the right place. I checked that before posting.\n\nEverything builds, and the .obj files all link in, but then it replies that it cannot open the .lib files. If I comment some, then the first one it sees will generate the same message.", "time": "23:13", "topic": "Build.bat for MSVC 2015", "username": "TimStone" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\n> Here is a modified go64.bat file\n\nSurely you meant a makefile filename\n\nPlease post here the msvc.tmp file that is created\n\nThe .bmp filenames are already listed in your RC file. You don't need to list them in this makefile", "time": "15:48", "topic": "Build.bat for MSVC 2015", "username": "Antonio Linares" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes,I meant a .mak file name.\n\nThere is no msvc.tmp file being created at this point.", "time": "16:21", "topic": "Build.bat for MSVC 2015", "username": "TimStone" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nCould we have a TeamViewer (or similar) session ?", "time": "16:33", "topic": "Build.bat for MSVC 2015", "username": "Antonio Linares" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Sure ... I'll email you the info.", "time": "16:49", "topic": "Build.bat for MSVC 2015", "username": "TimStone" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Problem solved:\n\nNever forget to add a tab in front of each makefile line to execute", "time": "17:35", "topic": "Build.bat for MSVC 2015", "username": "Antonio Linares" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "One more STOP\n\nNMAKE : fatal error U1077: 'link' : return code '0x49d'\n\nThe command line was link @msvc.tmp /nologo /subsysterm:windows /NODEFAULTLIB:msvcrt > link.log\n\nTim", "time": "17:48", "topic": "Build.bat for MSVC 2015", "username": "TimStone" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nPlease post here the contents of link.log", "time": "18:18", "topic": "Build.bat for MSVC 2015", "username": "Antonio Linares" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "The error is: \n LINK : fatal error LNK1181: cannot open input file '%fwdir%\\lib\\FiveH64.lib'\n\nIn the .mak file:\n \techo %fwdir%\\lib\\FiveH64.lib %fwdir%\\lib\\FiveHC64.lib >> msvc.tmp\n\nFiveH64.lib and FiveHC64.lib are in the C:\\FWH64\\lib folder\n\nThe path is:\n FWDIR=c:\\fwh64", "time": "18:41", "topic": "Build.bat for MSVC 2015", "username": "TimStone" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nPlease replace %fwdir% with %FWDIR%", "time": "18:50", "topic": "Build.bat for MSVC 2015", "username": "Antonio Linares" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "I already tried that. I tried again. It makes no difference.\n\nI'm wondering if there is an issue with it not thinking this is a 64 bit app. It says it can't open the .lib file, not that it can't find it ( if that makes a difference ).\n\nThe files are from you and dated 3/30/16\n\nI commented that one out and tried to see what happens. The next .lib gets the same error message. So it is not happy with the .lib files ?", "time": "19:28", "topic": "Build.bat for MSVC 2015", "username": "TimStone" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nLets have another TeamViewer session <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "07:04", "topic": "Build.bat for MSVC 2015", "username": "Antonio Linares" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "I sent you an email with the Team Viewer info and the computer is setup for you.\n\nI also have a Go32.bat and a 32 bit mak file in a separate folder. That calls the 32 bit libs and it fails at exactly the same place. I did other testing where I commented out all Harbour and FWH libs, and it does link all of the windows libs without a problem. \n\nIf I build these using the Visual Studio 2015 Community edition, the programs do completely assemble and run. However, I have not resolved a few performance issues with that so I can't use those for clients at this time. The main issue there is that I am apparently calling one incorrect library because clicking n a check box removes the associated text ( as it does with a radio button ). This was also a problem with VS 2013. Once I figure out that issue, those builds might be OK.\n\nI imagine it is going to be something to do with the format of the .mak file.\n\nI also copied both folders to my Surface Book, and it has the same exact error.\n\nTim", "time": "18:30", "topic": "Build.bat for MSVC 2015", "username": "TimStone" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-13", "forum": "FiveWin for Harbour/xHarbour", "text": "The problem continues. I'm using the .bat and .mak files discussed previously. We've had errors formatting the .mak file which are all corrected.\n\nThis is using Harbour, FWH 16.03, and MSVC 2015. This is to be a 64 bit build, but the linker is acting like it's a 32 bit build and giving the following error on ALL 64 bit libs that are to be linked in:\n\n C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.10586.0\\um\\x64\\vfw32.lib : warning LNK4272: library machine type 'x64' conflicts with target machine type 'X86'\n\nI apparently need to add a line to the .mak file that makes this application target machine x64. It's not handled in any of the samples we have seen posted.\n\nHere is the Link command from the .mak file:\n\n link @msvc.tmp /nologo /subsystem:windows /NODEFAULTLIB:msvcrt > link.log\n\nIdeas ?", "time": "16:37", "topic": "Build.bat for MSVC 2015", "username": "TimStone" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nVS vcvarsall.bat is not properly being called\n\nVS vcvarsall.bat selects to work with 32 or 64 bits", "time": "21:48", "topic": "Build.bat for MSVC 2015", "username": "Antonio Linares" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-13", "forum": "FiveWin for Harbour/xHarbour", "text": "The call is right, the file is there ...", "time": "22:07", "topic": "Build.bat for MSVC 2015", "username": "TimStone" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nThis error means that it is building in 32 bits mode:\n\nlibrary machine type 'x64' conflicts with [b:2upxskyh]target machine type 'X86'[/b:2upxskyh]", "time": "22:13", "topic": "Build.bat for MSVC 2015", "username": "Antonio Linares" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes, that is what I have been trying to point out. \n\nBy deduction:\n\n1) Harbour translates .prg to .c. That is not specific to 32 or 64 bit ...\n2) The C compiler translates .c to .obj. I don't know if that is specific to 32 or 64 bit.\n3) The linker obviously thinks this is 32 bit code. \n4) The .lib files are ALL 64 bit ( harbour and FWH )\n\nSo ... do we have a flag for the c compiler and/or linker that push them to build 64 bit ?\n\nTim", "time": "22:26", "topic": "Build.bat for MSVC 2015", "username": "TimStone" } ]
Build.bat for MSVC 2015
[ { "date": "2016-04-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nIt is not a flag. When we call vcvarsall.bat with the right parameter, a different C compiler is selected.", "time": "07:47", "topic": "Build.bat for MSVC 2015", "username": "Antonio Linares" } ]
Build.bat for MSVC 2015
[ { "date": "2006-07-21", "forum": "FiveWin for Pocket PC", "text": "Hi,\n\nI made a program to automate the process of building exe and copy the exe to a directory mounted to emulator.\n\nScreen capture:\n[img:3aerv5ru]http&#58;//x2f&#46;xanga&#46;com/f93a70ea5043567634188/b45406435&#46;jpg[/img:3aerv5ru]\n\nWhat it does:\n1. Open a source program\n2. Compile it by calling BuildCE.bat\n3. Copy the exe to a default directory e.g. C:\\FWPPC\\Output \n (Make this directory yourself and mount it to the emulator)\n\nThis little program saves me lot of time instead of typing commands and drag drop files by using file explorer!\n\nIf you are interested in it, please let me know!\n\nPaul", "time": "09:17", "topic": "BuildCe.bat make easy...", "username": "laiyilam" } ]
BuildCe.bat make easy...
[ { "date": "2006-07-21", "forum": "FiveWin for Pocket PC", "text": "Paul,\n\nThanks for your contribution <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->", "time": "09:43", "topic": "BuildCe.bat make easy...", "username": "Antonio Linares" } ]
BuildCe.bat make easy...
[ { "date": "2006-07-21", "forum": "FiveWin for Pocket PC", "text": "Download from here\n\n[url:uyakxu8n]http&#58;//hyperupload&#46;com/download/024e4bb231/BuildCE_MadeEasy&#46;zip&#46;html[/url:uyakxu8n]\n\nPaul", "time": "10:26", "topic": "BuildCe.bat make easy...", "username": "laiyilam" } ]
BuildCe.bat make easy...
[ { "date": "2013-01-17", "forum": "FiveWin for Harbour/xHarbour", "text": "I have a strange problem with BuildComDbc()....\n\nWhen using the MicroSoft Bluetooth Stack if I try:\n\n[b:2m5o7ic7]IF[/b:2m5o7ic7] BuildCommDcb( \"COM\"+alltrim(str(nComPort))+\":9600,N,8,1\", @cDcb ) \nEndif \n\nIt returns .f.\n\nOn the Toshiba Bluetooth Stack it returns .t.\n\nHere is the strange part....\nIf I remove the \"IF\" and just try \"BuildCommDcb( \"COM\"+alltrim(str(nComPort))+\":9600,N,8,1\", @cDcb )\"\nthen continue with my connection it does connect to the COM port BUT, if I connect and disconnect 4 times in a row the software will freeze when I do a:\nWriteComm( nComm, Hex2Str(\"027004020861DF03\"))\n\nAgain, using the Toshiba Bluetooth stack I can connect/disconnect as many times as I want without any problems.\n\nAny ideas?\nIs there any other way to connect to a Bluetooth Serial Port (other lib maybe) ???", "time": "13:49", "topic": "BuildComDcb()", "username": "Jeff Barnes" } ]
BuildComDcb()
[ { "date": "2013-01-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Jeff,\nI had problems with FW-build in COM support and RDP.\nI have substituted through this obj.\n\n<!-- m --><a class=\"postlink\" href=\"http://www.atzwanger-software.com/fw/COMTOOLS.ZIP\">http://www.atzwanger-software.com/fw/COMTOOLS.ZIP</a><!-- m -->\n\nBest regards,\nOtto", "time": "16:29", "topic": "BuildComDcb()", "username": "Otto" } ]
BuildComDcb()
[ { "date": "2013-01-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks Otto ... Is there a Com Write function?", "time": "16:42", "topic": "BuildComDcb()", "username": "Jeff Barnes" } ]
BuildComDcb()
[ { "date": "2013-01-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Jeff, \nyes. \nI never tried these functions.\nBest regards,\nOtto\n\n[code=fw:2yy4fuz7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//*****************************************************************************</span><br /><span style=\"color: #B900B9;\">//*</span><br /><span style=\"color: #B900B9;\">//* &nbsp; &nbsp; ComWrite</span><br /><span style=\"color: #B900B9;\">//*</span><br /><span style=\"color: #B900B9;\">//*****************************************************************************</span><br /><span style=\"color: #B900B9;\">// &nbsp;Ein Zeichen senden</span><br /><span style=\"color: #B900B9;\">// &nbsp;Nr &nbsp; &nbsp; &nbsp;: Ist die Nummer des Com-Ports (0=COM1 1=COM2 ...)</span><br /><span style=\"color: #B900B9;\">// &nbsp;Zeichen : Ist das Zeichen das gesendet werden soll.</span><br /><span style=\"color: #B900B9;\">// &nbsp;Ergibt die Anzahl der gesendeten Zeichen</span><br />int ComWrite<span style=\"color: #000000;\">&#40;</span>unsigned Nr,int Zeichen<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />DWORD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dwCount;<br /><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>Nr>=MAX_COM_PORTS<span style=\"color: #000000;\">&#41;</span><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span>;<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>!bIsOpen<span style=\"color: #000000;\">&#91;</span>Nr<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span>;<br /><br />&nbsp; &nbsp; WriteFile<span style=\"color: #000000;\">&#40;</span>hComFile<span style=\"color: #000000;\">&#91;</span>Nr<span style=\"color: #000000;\">&#93;</span>,&Zeichen,<span style=\"color: #000000;\">1</span>,&dwCount,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span>;<br /><br /><br /><span style=\"color: #00C800;\">return</span> dwCount;<br /><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #B900B9;\">//*****************************************************************************</span><br /><span style=\"color: #B900B9;\">//*</span><br /><span style=\"color: #B900B9;\">//* &nbsp; &nbsp; ComWrite</span><br /><span style=\"color: #B900B9;\">//*</span><br /><span style=\"color: #B900B9;\">//*****************************************************************************</span><br /><span style=\"color: #B900B9;\">// &nbsp;Mehrere Zeichen schreiben</span><br /><span style=\"color: #B900B9;\">// &nbsp;Nr &nbsp; &nbsp; &nbsp;: Ist die Nummer des Com-Ports (0=COM1 1=COM2 ...)</span><br /><span style=\"color: #B900B9;\">// &nbsp;Buffer &nbsp;: Buffer in dem die Zeichen gespeichert werden</span><br /><span style=\"color: #B900B9;\">// &nbsp;Count &nbsp; : Anzahl der zu sendenden Zeichen</span><br /><span style=\"color: #B900B9;\">// &nbsp;Ergibt die Anzahl der gesendeten Zeichen</span><br />int ComWriteBuf<span style=\"color: #000000;\">&#40;</span>unsigned Nr,void *Buffer,int <span style=\"color: #0000ff;\">Count</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />DWORD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dwCount;<br /><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>Nr>=MAX_COM_PORTS<span style=\"color: #000000;\">&#41;</span><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span>;<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>!bIsOpen<span style=\"color: #000000;\">&#91;</span>Nr<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span>;<br /><br />&nbsp; &nbsp; WriteFile<span style=\"color: #000000;\">&#40;</span>hComFile<span style=\"color: #000000;\">&#91;</span>Nr<span style=\"color: #000000;\">&#93;</span>,Buffer,<span style=\"color: #0000ff;\">Count</span>,&dwCount,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span>;<br /><br /><span style=\"color: #00C800;\">return</span> dwCount;<br /><span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp;</div>[/code:2yy4fuz7]", "time": "16:50", "topic": "BuildComDcb()", "username": "Otto" } ]
BuildComDcb()
[ { "date": "2013-01-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto, I don't see where I can set the post speed, parity etc...\n\nAm I missing something?", "time": "02:07", "topic": "BuildComDcb()", "username": "Jeff Barnes" } ]
BuildComDcb()
[ { "date": "2013-01-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Best regards,\notto\n[code=fw:166l6wdd]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> COMOPEN <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// () --> nPorts</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; unsigned Nr &nbsp; &nbsp; = hb_parni<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; int iBaud &nbsp; &nbsp; &nbsp; = <span style=\"color: #000000;\">9600</span>;<br />&nbsp; &nbsp; int iParity &nbsp; &nbsp; = P_NONE;<br />&nbsp; &nbsp; int iStopbits = S_1BIT;<br />&nbsp; &nbsp; int iDatabits = D_8BIT;<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> ISNUM<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> iBaud &nbsp; &nbsp; &nbsp; &nbsp; = hb_parni<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> ISNUM<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span> iParity &nbsp; = hb_parni<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> ISNUM<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span> iStopbits = hb_parni<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> ISNUM<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span> iDatabits = hb_parni<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span>;<br /><br /><br />&nbsp; &nbsp; hb_retl<span style=\"color: #000000;\">&#40;</span> ComOpen <span style=\"color: #000000;\">&#40;</span> Nr, iBaud, iParity, iStopbits, iDatabits <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:166l6wdd]", "time": "11:04", "topic": "BuildComDcb()", "username": "Otto" } ]
BuildComDcb()
[ { "date": "2013-01-18", "forum": "FiveWin for Harbour/xHarbour", "text": "A copy of Otto's posted ComTools, thanks\n\n[url:mqlcwgas]http&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=comtools&#46;zip&can=2&q=[/url:mqlcwgas]", "time": "13:46", "topic": "BuildComDcb()", "username": "Antonio Linares" } ]
BuildComDcb()
[ { "date": "2013-01-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Not having any luck with this...\n\nComOpen returns .t. but ComWrite returns 0", "time": "15:45", "topic": "BuildComDcb()", "username": "Jeff Barnes" } ]
BuildComDcb()
[ { "date": "2013-01-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Try this terminal sample:\n\n[code=fw:25s6lx94]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> oGet, cTxt := <span style=\"color: #ff0000;\">\"\"</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> nCom<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">500</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Terminale\"</span><br /><br />&nbsp; &nbsp; @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">GET</span> oGet <span style=\"color: #0000ff;\">VAR</span> cTxt MEMO READONLY<br /><br />&nbsp; &nbsp; oGet:<span style=\"color: #000000;\">bKeyDown</span> = <span style=\"color: #000000;\">&#123;</span> | nKey | Tasti<span style=\"color: #000000;\">&#40;</span> nCom, nKey <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> oGet:<span style=\"color: #000000;\">AdjClient</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nCom := APRICOM<span style=\"color: #000000;\">&#40;</span> oDlg, oGet <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> nCom < <span style=\"color: #000000;\">0</span>, oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">CENTER</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nCom >= <span style=\"color: #000000;\">0</span>; CLOSECOMM<span style=\"color: #000000;\">&#40;</span> nCom <span style=\"color: #000000;\">&#41;</span>; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> TASTI<span style=\"color: #000000;\">&#40;</span> nCom, nKey <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; SENDSTR<span style=\"color: #000000;\">&#40;</span> nCom, CHR<span style=\"color: #000000;\">&#40;</span> nKey <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> APRICOM<span style=\"color: #000000;\">&#40;</span> oDlg, oGet <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> nCom, cDcb<br /><br />&nbsp; &nbsp; BEGIN SEQUENCE<br />&nbsp; &nbsp; &nbsp; &nbsp; nCom = OPENCOMM<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"COM1\"</span>, <span style=\"color: #000000;\">16384</span>, <span style=\"color: #000000;\">16384</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nCom < <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ? <span style=\"color: #ff0000;\">\"Errore di apertura della porta di comunicazione.\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">BREAK</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; BUILDCOMMDCB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"COM1:115200,N,8,1\"</span>, @cDcb <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !SETCOMMSTATE<span style=\"color: #000000;\">&#40;</span> nCom, cDcb <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ? <span style=\"color: #ff0000;\">\"Errore di impostazione della porta di comunicazione.\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">BREAK</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oDlg:<span style=\"color: #000000;\">bCommNotify</span> = <span style=\"color: #000000;\">&#123;</span> | nCom | Connect<span style=\"color: #000000;\">&#40;</span> nCom, oGet <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EnableCommNotification<span style=\"color: #000000;\">&#40;</span> nCom, oDlg:<span style=\"color: #000000;\">hWnd</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">-1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !ENABLECOMMNOTIFICATION<span style=\"color: #000000;\">&#40;</span> nCom, oDlg:<span style=\"color: #000000;\">hWnd</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">-1</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ? <span style=\"color: #ff0000;\">\"Errore di abilitazione della notifica.\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">BREAK</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; RECOVER<br />&nbsp; &nbsp; &nbsp; &nbsp; nCom = <span style=\"color: #000000;\">-1</span><br />&nbsp; &nbsp; END SEQUENCE<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> nCom<br /><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> CONNECT<span style=\"color: #000000;\">&#40;</span> nCom, oGet <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> cStr<br /><br />&nbsp; &nbsp; ENABLECOMMNOTIFICATION<span style=\"color: #000000;\">&#40;</span> nCom, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">-1</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; cStr = RECEIVESTR<span style=\"color: #000000;\">&#40;</span> nCom <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; cStr = STRTRAN<span style=\"color: #000000;\">&#40;</span> cStr, CHR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">13</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; cStr = STRTRAN<span style=\"color: #000000;\">&#40;</span> cStr, CHR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#41;</span>, CRLF <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; oGet:<span style=\"color: #000000;\">Append</span><span style=\"color: #000000;\">&#40;</span> cStr <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> SENDSTR<span style=\"color: #000000;\">&#40;</span> nCom, cString <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> nBytes := WRITECOMM<span style=\"color: #000000;\">&#40;</span> nCom, cString <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> nBytes = LEN<span style=\"color: #000000;\">&#40;</span> cString <span style=\"color: #000000;\">&#41;</span><br /><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> RECEIVESTR<span style=\"color: #000000;\">&#40;</span> nCom <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> cBuf := SPACE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1000</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #0000ff;\">LEFT</span><span style=\"color: #000000;\">&#40;</span> cBuf, READCOMM<span style=\"color: #000000;\">&#40;</span> nCom, @cBuf <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:25s6lx94]\n\nEMG", "time": "13:31", "topic": "BuildComDcb()", "username": "Enrico Maria Giordano" } ]
BuildComDcb()
[ { "date": "2013-01-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks Enrico,\n\nYour test program seems to be collecting data from com port...\nI will need to modify my program to see if it solves the problem of connecting/disconnecting. With the MS stack I can only connect/disconnect about 4 times before the system locks up... This never happens with the Toshiba Stack.", "time": "13:45", "topic": "BuildComDcb()", "username": "Jeff Barnes" } ]
BuildComDcb()
[ { "date": "2013-01-26", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Jeff Barnes\":rwqd4907]Thanks Enrico,\n\nYour test program seems to be collecting data from com port...[/quote:rwqd4907]\n\nYou can also send data hitting keys on the keyboard.\n\nEMG", "time": "14:01", "topic": "BuildComDcb()", "username": "Enrico Maria Giordano" } ]
BuildComDcb()
[ { "date": "2008-01-17", "forum": "FiveWin para Harbour/xHarbour", "text": "El problema que tengo con la funcion BuildCommDCB es que no configura el puerto com del PC. La utilizo de la siguiente manera:\n\n[color=red:2h4jojyr]nComHandle:=OpenCom(\"COM4\",1024,1024)\nBuildCommDcb(\"COM4:9600,N,8,1\", @cDcb)[/color:2h4jojyr]\nPara configurarlo tengo que irme al MS-DOS y hacer lo siguiente:\n[color=blue:2h4jojyr]MODE COM4 9600,N,8,1[/color:2h4jojyr]\nAlguien me puede decir qué puede estar pasando o qué hago mal.\n\nGracias.", "time": "10:35", "topic": "BuildCommDCB", "username": "Verhoven" } ]
BuildCommDCB
[ { "date": "2008-01-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Verhoven,\n\nHaz una búsqueda de BuildCommDCB() en los *.PRG de fwh\\samples y verás como hay que usarlo", "time": "11:00", "topic": "BuildCommDCB", "username": "Antonio Linares" } ]
BuildCommDCB
[ { "date": "2008-01-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias por contestar Antonio, he probado ya de todo y en varios ordenadores a ver si es que se tratara de un fallo por estar usando un puerto COM creado a través de uno USB con un cable conversor USB-RS-232. Pero NO. \n\n[color=red:3ln94s7b]El problema es que la funcion BuildCommDCB no configura el puerto a lo que dice que lo hace.[/color:3ln94s7b]\n\nEl puerto originalmente esta configurado como 1200,N,7,1 y lo tengo que cambiar a 9600,N,8,1 para poderme comunicar con el dispositivo y esto es lo que no hace BuildCommDcb.\n\nCuando lo hago desde la consola de MS-DOS del W-XP con el comando MODE COM4 9600,N,8,1 si deja bien configurado el puerto y me conunico correctamente hacia y desde el dispositivo con mi programa, pero como antes no haga esto no hay forma.\n\nHe probado el \\samples\\Commtest.prg y aunque en el archivo log que genera dice que todo está correcto la verdad es que no. De hecho le he puesto que cuando llega a la opcion COM4 9600 N 8 1 mande un mensaje al puerto, para probar si el dispositivo conectado lo reconoce y que por lo tanto lo ha configurado bien y me da un error en el dispositivo porque en realidad no ha modificado la configuracion del puerto que sigue estando en 1200,N,7,1. Configuración que compruebo haciendo en la consola de MS-DOS MODE COM4 que, como sabes, lista la configuracion del mismo.\n\n¿Qué más puedo probar?.", "time": "16:02", "topic": "BuildCommDCB", "username": "Verhoven" } ]
BuildCommDCB
[ { "date": "2008-01-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Verhoven, \n\nEn realidad BuildCommDcb() solo rellena la información de una esctructura \"DCB\". En realidad la función que aplica esos valores es:\n\nSetCommState() \n\ny aqui es donde está la diferencia con los 16 bits. En Clipper se usa así:\nSetCommState( cDcb ), pero en 32 bits se usa así: [color=red:3ff4yx50]SetCommState( nComm, cDcb )[/color:3ff4yx50] en donde nComm es el valor devuelto por OpenComm().\n\nPruébalo <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "20:01", "topic": "BuildCommDCB", "username": "Antonio Linares" } ]
BuildCommDCB
[ { "date": "2008-01-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio he probado pero sigue igual. Te pongo el trozo de codigo para que puedas ver exactamente como lo hago:\n\nfunction Prueba()\n local lPortReady:=.f.\n local nBytes :=0\n local nError :=0\n local cTexto :='Prueba escritura RS-232'\n \n local [color=green:2zn8ihxe]cPort:='4', cSpeed:='9600'[/color:2zn8ihxe]\n local cDcb, cRv := '', cS := 'COM' + cPort + ':' + cSpeed + ',n,8,1'\n\n // Abre el puerto en el PC.\n [color=green:2zn8ihxe] nComm := OpenComm( 'COM' + cPort, 1024 , 128 )[/color:2zn8ihxe]\n \n IF nComm >= 0 // We have a valid port...\n msginfo(' Se ha abierto el puerto: COM' + cPort)\n IF [color=green:2zn8ihxe]BuildCommDcb( cS, @cDcb )[/color:2zn8ihxe] // Set Speed, etc\n IF [color=green:2zn8ihxe]SetCommState( nComm, cDcb )[/color:2zn8ihxe]\n cRv := ''\n msginfo('SetCommState CORRECTO: '+cs)\n lPortReady:=.t.\n ELSE\n cRv := 'Failed to SetCommState on COM' + cPort + ' at ' + cSpeed\n ENDIF\n ELSE\n cRv := 'Failed to BuildCommDCB on COM' + cPort + ' at ' + cSpeed\n ENDIF\n ELSE\n cRv := 'Failed to find COM' + cPort\n ENDIF\n \n if ! lPortReady\n nError = GetCommError( nComm )\n MsgInfo( cRv )\n endif\n \n // Escribe en el puerto COM\n if ( nBytes := WriteComm( nComm, cTexto ) ) < 0\n nError = GetCommError( nComm )\n MsgInfo( cCom+\", WriteComm Error: \" + Str( nError ),'Error' )\n endif\n \n //Limpia el buffer del puerto \n if FlushComm( nComm, 0 ) != 0\n nError = GetCommError( nComm )\n MsgInfo( cCom+\", FlushComm Error: \" + Str( nError ) )\n endif\n\n // Cierra el puerto \n CloseComm( nComm )\n return nil", "time": "22:36", "topic": "BuildCommDCB", "username": "Verhoven" } ]
BuildCommDCB
[ { "date": "2009-11-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello all.\n\nI know that BUILDCOMMDCB( \"COM1:9600,N,8,1\", @cDcb ) opens the COM1: port, but how to enable flow control ?\nI've read at <!-- m --><a class=\"postlink\" href=\"http://msdn.microsoft.com/en-us/library/aa363143%28VS.85%29.aspx\">http://msdn.microsoft.com/en-us/library ... 85%29.aspx</a><!-- m --> that the parameters are the same of the MODE command, but then it talks about strings ending with \"p\" or \"x\". I'm confused.\nDefinitely, what do I have to add to the string above to enable:\n1) XON/XOFF\n2) RTS/CTS\n3) DSR/DTR\n\nThanks,\nDavide", "time": "14:57", "topic": "BuildCommDCB: flow control strings", "username": "Davide" } ]
BuildCommDCB: flow control strings