messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2023-10-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Byron,\n\nYou may try:\n\nShellExecute( 0, \"open\", \"yourapp.exe\" )\n__Quit()", "time": "19:52", "topic": "App Termination and Relaunch.", "username": "Antonio Linares" } ]
App Termination and Relaunch.
[ { "date": "2023-10-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes, in Windows programming, you can terminate your application and then immediately relaunch it. There are several ways to achieve this, but one common approach is to use the `ShellExecute` function or the `CreateProcess` function to start a new instance of your application from within your existing application. Here's a general outline of how you can do it:\n\n1. Terminate the Current Instance:\n You can use the `ExitProcess` function or simply return from the `main` function (if you are using C/C++), or use the appropriate method in your programming language to gracefully terminate your application.\n\n2. Relaunch the Application:\n After terminating the current instance, you can use one of the following methods to relaunch your application:\n\n a. `ShellExecute`:\n ```cpp\n #include <Windows.h>\n \n int main() {\n // Terminate the current instance\n \n // Relaunch the application\n ShellExecute(NULL, L\"open\", L\"your_app.exe\", NULL, NULL, SW_SHOWNORMAL);\n \n return 0;\n }\n ```\n In this example, replace `\"your_app.exe\"` with the path to your application's executable.\n\n b. `CreateProcess`:\n ```cpp\n #include <Windows.h>\n \n int main() {\n // Terminate the current instance\n \n // Relaunch the application\n STARTUPINFO si = { sizeof(STARTUPINFO) };\n PROCESS_INFORMATION pi;\n if (CreateProcess(NULL, L\"your_app.exe\", NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) {\n CloseHandle(pi.hProcess);\n CloseHandle(pi.hThread);\n }\n \n return 0;\n }\n ```\n Again, replace `\"your_app.exe\"` with the path to your application's executable.\n\n Depending on your specific requirements, you may need to pass command-line arguments or adjust other parameters when relaunching your application.\n\nRemember that this approach will completely terminate the current instance of your application and launch a new one. If you need to perform some specific tasks or maintain state between the termination and relaunch, you'll need to implement those as part of your application logic.", "time": "19:53", "topic": "App Termination and Relaunch.", "username": "Antonio Linares" } ]
App Termination and Relaunch.
[ { "date": "2023-10-06", "forum": "FiveWin for Harbour/xHarbour", "text": "You can also achieve the termination and relaunch of your application using a batch file in Windows. Here's a simple example of how you can create a batch file to do this:\n\n1. Create a text file with a `.bat` extension, such as `restart_my_app.bat`.\n\n2. Edit the batch file using a text editor like Notepad, and add the following commands:\n\n```batch\n@echo off\ntaskkill /F /IM your_app.exe\nstart \"\" \"C:\\path\\to\\your_app.exe\"\n```\n\nReplace `\"C:\\path\\to\\your_app.exe\"` with the actual path to your application's executable.\n\nHere's what these commands do:\n\n- `@echo off`: This command turns off the command echoing in the batch file, so the commands themselves won't be displayed on the console.\n\n- `taskkill /F /IM your_app.exe`: This command forcefully terminates any running instances of your application named `your_app.exe`. Replace `your_app.exe` with the actual name of your executable.\n\n- `start \"\" \"C:\\path\\to\\your_app.exe\"`: This command starts a new instance of your application. Replace `\"C:\\path\\to\\your_app.exe\"` with the actual path to your application's executable. The `\"\"` is used as a placeholder for the window title.\n\nSave the batch file after editing.\n\n3. To restart your application, simply double-click the batch file (`restart_my_app.bat`) whenever you want to terminate the current instance and start a new one.\n\nKeep in mind that using a batch file in this way will forcibly terminate the existing instance of your application and then start a new one. If your application has any unsaved data or requires specific cleanup procedures before termination, you should implement those in your application code or a separate script that the batch file can call before terminating the application.", "time": "19:54", "topic": "App Termination and Relaunch.", "username": "Antonio Linares" } ]
App Termination and Relaunch.
[ { "date": "2023-10-07", "forum": "FiveWin for Harbour/xHarbour", "text": "You can do this: Run an external program from your program -upg.exe () \n\n[code=fw:2kk4ziz6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">winexec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"upg\"</span>, <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><br />quit</div>[/code:2kk4ziz6]\n\nFrom your program upg.exe () you launch your application, and upg.??? closing\n[code=fw:2kk4ziz6]<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<br />   millisec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">50</span><span style=\"color: #000000;\">&#41;</span><br />  winexec<span style=\"color: #000000;\">&#40;</span>MyApp, <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><br />  quit<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:2kk4ziz6]", "time": "10:50", "topic": "App Termination and Relaunch.", "username": "Natter" } ]
App Termination and Relaunch.
[ { "date": "2023-10-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Simples,\n\n[code=fw:1zm4kg74]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// C:\\FWH..\\SAMPLES\\TUTOR09.PRG</span><br /><span style=\"color: #B900B9;\">// Modificado en: 07/10/2023</span><br /><br /><span style=\"color: #00D7D7;\">#Include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#Include</span> <span style=\"color: #ff0000;\">\"Directry.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#Define</span> aPubGrad <span style=\"color: #000000;\">&#123;</span>| lInvert | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lInvert, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span> / <span style=\"color: #000000;\">3</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">253</span>, <span style=\"color: #000000;\">222</span> <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">231</span>, <span style=\"color: #000000;\">151</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span> / <span style=\"color: #000000;\">3</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">215</span>, &nbsp;<span style=\"color: #000000;\">84</span> <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">233</span>, <span style=\"color: #000000;\">162</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#125;</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span> / <span style=\"color: #000000;\">2</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">219</span>, <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">244</span> <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">207</span> - <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">221</span> - <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span> / <span style=\"color: #000000;\">2</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">201</span> - <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">217</span> - <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">231</span>, <span style=\"color: #000000;\">242</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> oWnd<br /><span style=\"color: #00C800;\">STATIC</span> lSalida := .F.<br /><span style=\"color: #00C800;\">STATIC</span> oFont, nHFont, cFont, nWFont, cFontH, oBrush, oFnt, oFont40<br /><br />MEMVAR cDirPleno<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> obar, oBmp, oIco<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">PRIVATE</span> cDirPleno<br /><br />&nbsp; &nbsp;HB_GCALL<span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;SET CENTURY <span style=\"color: #0000ff;\">ON</span><br />&nbsp; &nbsp;SET DATE BRITISH<br />&nbsp; &nbsp;SET TIME FORMAT <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"HH:MM:SS\"</span><br />&nbsp; &nbsp;SET EPOCH <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #0000ff;\">YEAR</span><span style=\"color: #000000;\">&#40;</span> DATE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">30</span><br />&nbsp; &nbsp;SET SOFTSEEK OFF<br />&nbsp; &nbsp;SET WRAP <span style=\"color: #0000ff;\">ON</span><br />&nbsp; &nbsp;SETCANCEL<span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;SET CONFIRM OFF<br />&nbsp; &nbsp;SET DELETED <span style=\"color: #0000ff;\">ON</span><br />&nbsp; &nbsp;SET _3DLOOK <span style=\"color: #0000ff;\">ON</span><br />&nbsp; &nbsp;SET UNIQUE OFF<br />&nbsp; &nbsp;SET ESCAPE OFF<br />&nbsp; &nbsp;SET EXACT <span style=\"color: #0000ff;\">ON</span><br />&nbsp; &nbsp;SET EXCLUSIVE OFF<br />&nbsp; &nbsp;SET MULTIPLE OFF<br />&nbsp; &nbsp;SET OPTIMIZE <span style=\"color: #0000ff;\">ON</span><br /><br />&nbsp; &nbsp;SetBalloon<span style=\"color: #000000;\">&#40;</span> .T. <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;SkinButtons<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;cDirPleno := GETCURDIR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> SUBS<span style=\"color: #000000;\">&#40;</span> cDirPleno, LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span>cDirPleno <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> , <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\\"</span><br />&nbsp; &nbsp; &nbsp; cDirPleno := SUBS( cDirPleno, 1 , LEN( ALLTRIM(cDirPleno ) ) - 1 )<br />&nbsp; &nbsp;ENDIF<br /><br />&nbsp; &nbsp;LCHDIR( cDirPleno )<br /><br />&nbsp; &nbsp;cFont &nbsp; := \"</span>Segoe UI Symbol<span style=\"color: #ff0000;\">\" &nbsp;//\"</span>Calibri<span style=\"color: #ff0000;\">\"<br />&nbsp; &nbsp;cFontH &nbsp;:= -16 &nbsp;//-10 //-12 //-16 //-18 &nbsp;//-20<br /><br />&nbsp; &nbsp;IF !IsWin8() .and. !IsWindows10()<br />&nbsp; &nbsp; &nbsp; cFont &nbsp; := \"</span>Calibri<span style=\"color: #ff0000;\">\" &nbsp; //\"</span>Tahoma<span style=\"color: #ff0000;\">\"<br />&nbsp; &nbsp;ENDIF<br /><br />&nbsp; &nbsp;DEFINE FONT oFont &nbsp; NAME cFont &nbsp; &nbsp;SIZE 0, cFontH WEIGHT 300<br />&nbsp; &nbsp;DEFINE FONT oFont40 NAME 'Tahoma' SIZE 0, -40 BOLD<br />&nbsp; &nbsp;DEFINE ICON oIco FILE \"</span>..\\icons\\fax.ico<span style=\"color: #ff0000;\">\"<br /><br />&nbsp; &nbsp;DEFINE WINDOW oWnd FROM 1, 1 TO 22, 75 TITLE \"</span>Sistema Generico <span style=\"color: #ff0000;\">\" &nbsp;;<br />&nbsp; &nbsp; &nbsp; MENU BuildMenu() ICON oIco NOSYSMENU<br /><br />&nbsp; &nbsp;DEFINE BUTTONBAR oBar _3D SIZE 40, 40 OF oWnd 2007<br /><br />&nbsp; &nbsp;oBar:bClrGrad := aPubGrad<br /><br />&nbsp; &nbsp;oBar:bRClicked := { || ( NIL ) } // Mouse Direito<br />&nbsp; &nbsp;oBar:bLClicked := { || ( NIL ) } // Mouse Esquerdo<br /><br />&nbsp; &nbsp;oBar:nClrText := CLR_BLACK<br />&nbsp; &nbsp;oBar:Adjust()<br /><br />&nbsp; &nbsp;oBar:SetFont( oFont )<br /><br />&nbsp; &nbsp;DEFINE BUTTON OF oBar FILENAME \"</span>..\\<span style=\"color: #0000ff;\">bitmaps</span>\\16x16\\<span style=\"color: #00C800;\">new</span>.bmp<span style=\"color: #ff0000;\">\" FLAT ;<br />&nbsp; &nbsp; &nbsp; ACTION MsgInfo( \"</span><span style=\"color: #00C800;\">New</span><span style=\"color: #ff0000;\">\" ) ;<br />&nbsp; &nbsp; &nbsp; TOOLTIP \"</span>Creates a <span style=\"color: #00C800;\">new</span> document<span style=\"color: #ff0000;\">\" PROMPT \"</span><span style=\"color: #00C800;\">New</span><span style=\"color: #ff0000;\">\" GROUP<br /><br />&nbsp; &nbsp;DEFINE BUTTON OF oBar FILENAME \"</span>..\\<span style=\"color: #0000ff;\">bitmaps</span>\\16x16\\open.bmp<span style=\"color: #ff0000;\">\" FLAT ;<br />&nbsp; &nbsp; &nbsp; ACTION MsgInfo( cGetFile( \"</span>*.*<span style=\"color: #ff0000;\">\", \"</span><span style=\"color: #0000ff;\">Select</span> a document <span style=\"color: #0000ff;\">to</span> open<span style=\"color: #ff0000;\">\" ) ) ;<br />&nbsp; &nbsp; &nbsp; TOOLTIP \"</span>Opens a document<span style=\"color: #ff0000;\">\" WHEN .f. PROMPT \"</span>Open<span style=\"color: #ff0000;\">\" GROUP<br /><br />&nbsp; &nbsp;DEFINE BUTTON OF oBar FILENAME \"</span>..\\<span style=\"color: #0000ff;\">bitmaps</span>\\16x16\\floppy.bmp<span style=\"color: #ff0000;\">\" FLAT ;<br />&nbsp; &nbsp; &nbsp; ACTION MsgInfo( Time() ) TOOLTIP \"</span>Saves this document<span style=\"color: #ff0000;\">\" PROMPT \"</span>Doc<span style=\"color: #ff0000;\">\" GROUP<br /><br />&nbsp; &nbsp;DEFINE BUTTON OF oBar FILENAME \"</span>..\\<span style=\"color: #0000ff;\">bitmaps</span>\\16x16\\<span style=\"color: #0000ff;\">printer</span>.bmp<span style=\"color: #ff0000;\">\" FLAT ;<br />&nbsp; &nbsp; &nbsp; ACTION MsgInfo( \"</span>Prints this document<span style=\"color: #ff0000;\">\" ) TOOLTIP \"</span><span style=\"color: #00C800;\">Print</span> this document<span style=\"color: #ff0000;\">\" ;<br />&nbsp; &nbsp; &nbsp; GROUP PROMPT \"</span><span style=\"color: #00C800;\">Print</span><span style=\"color: #ff0000;\">\"<br /><br />&nbsp; &nbsp;DEFINE BUTTON OF oBar FILENAME \"</span>..\\<span style=\"color: #0000ff;\">bitmaps</span>\\16x16\\prop.bmp<span style=\"color: #ff0000;\">\" FLAT ;<br />&nbsp; &nbsp; &nbsp; ACTION PrinterSetup() TOOLTIP \"</span>Setup the <span style=\"color: #0000ff;\">printer</span><span style=\"color: #ff0000;\">\" PROMPT \"</span>Prop<span style=\"color: #ff0000;\">\" GROUP<br /><br />&nbsp; &nbsp;DEFINE BUTTON OF oBar FILENAME \"</span>..\\<span style=\"color: #0000ff;\">bitmaps</span>\\16x16\\HelpInd.bmp<span style=\"color: #ff0000;\">\" FLAT ;<br />&nbsp; &nbsp; &nbsp; ACTION MsgInfo( Version() ) TOOLTIP \"</span>A multiple lines<span style=\"color: #ff0000;\">\" + ;<br />&nbsp; &nbsp; &nbsp; Chr( 13 ) + Chr( 10 ) + \"</span>tooltip!<span style=\"color: #ff0000;\">\" GROUP PROMPT \"</span><span style=\"color: #0000ff;\">Help</span><span style=\"color: #ff0000;\">\"<br /><br />&nbsp; &nbsp;DEFINE BUTTON OF oBar FILENAME \"</span>..\\<span style=\"color: #0000ff;\">bitmaps</span>\\16x16\\<span style=\"color: #0000ff;\">Help</span>.bmp<span style=\"color: #ff0000;\">\" FLAT ;<br />&nbsp; &nbsp; &nbsp; ACTION ( lSalida := .T., DESLIGA_PROGRAM_SYS() ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; TOOLTIP \"</span>Shows program shutdown.<span style=\"color: #ff0000;\">\" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; PROMPT \"</span>shutd<span style=\"color: #ff0000;\">\" GROUP<br /><br />&nbsp; &nbsp;DEFINE BUTTON OF oBar FILENAME \"</span>..\\<span style=\"color: #0000ff;\">bitmaps</span>\\16x16\\Exit.bmp<span style=\"color: #ff0000;\">\" FLAT ;<br />&nbsp; &nbsp; &nbsp; ACTION( oWnd:End(), CERRAR_TODO( lSalida := .T. ) ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; TOOLTIP \"</span>Exit this app<span style=\"color: #ff0000;\">\" GROUP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; PROMPT \"</span>Exit<span style=\"color: #ff0000;\">\"<br /><br />&nbsp; &nbsp;SET MESSAGE OF oWnd TO \"</span>© <!-- e --><a href=\"mailto:kapiabafwh@gmail.com\">kapiabafwh@gmail.com</a><!-- e --> - Skype: <span style=\"color: #000000;\">joao</span>@pleno.com.br<span style=\"color: #ff0000;\">\" ;<br />&nbsp; &nbsp; &nbsp; &nbsp;NOINSET CLOCK DATE KEYBOARD COLOR CLR_HBLUE, CLR_WHITE 2007 FONT oFont<br /><br />&nbsp; &nbsp;DEFINE BITMAP oBmp FILENAME \"</span>..\\<span style=\"color: #0000ff;\">bitmaps</span>\\sea.bmp<span style=\"color: #ff0000;\">\"<br /><br />&nbsp; &nbsp;oWnd:bPainted = { | hDC | BmpTiled( hDC, oWnd, oBmp ) }<br /><br />&nbsp; &nbsp;ACTIVATE WINDOW oWnd MAXIMIZED ;<br />&nbsp; &nbsp; &nbsp; VALID( lSalida )<br /><br />RETURN NIL<br /><br />FUNCTION BuildMenu()<br /><br />&nbsp; &nbsp;local oMenu<br /><br />&nbsp; &nbsp;MENU oMenu<br />&nbsp; &nbsp; &nbsp; MENUITEM \"</span>Information<span style=\"color: #ff0000;\">\"<br />&nbsp; &nbsp; &nbsp; MENU<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MENUITEM \"</span>&About...<span style=\"color: #ff0000;\">\" ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ACTION MsgInfo( FWDESCRIPTION ) ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FILENAME \"</span>..\\<span style=\"color: #0000ff;\">bitmaps</span>\\16x16\\info.bmp<span style=\"color: #ff0000;\">\"<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MENUITEM \"</span>&Shutdown<span style=\"color: #ff0000;\">\" ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ACTION ( lSalida := .T., DESLIGA_PROGRAM_SYS() ) &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FILENAME \"</span>..\\<span style=\"color: #0000ff;\">bitmaps</span>\\16x16\\<span style=\"color: #0000ff;\">Help</span>.bmp<span style=\"color: #ff0000;\">\"<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SEPARATOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MENUITEM \"</span>&End...<span style=\"color: #ff0000;\">\" &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ACTION( oWnd:End(), CERRAR_TODO( lSalida := .T. ) ) ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FILENAME \"</span>..\\<span style=\"color: #0000ff;\">bitmaps</span>\\16x16\\exit.bmp<span style=\"color: #ff0000;\">\"<br /><br />&nbsp; &nbsp; &nbsp; ENDMENU<br /><br />&nbsp; &nbsp; &nbsp; MENUITEM \"</span>&Clients<span style=\"color: #ff0000;\">\"<br />&nbsp; &nbsp; &nbsp; MENU<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MENUITEM \"</span>&New...<span style=\"color: #ff0000;\">\" ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ACTION ( MsgStop( \"</span><span style=\"color: #00C800;\">New</span> Clients<span style=\"color: #ff0000;\">\" ),;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oWnd:Say( 5, 5, \"</span><span style=\"color: #00C800;\">New</span> Clients...<span style=\"color: #ff0000;\">\", \"</span>GR+/G<span style=\"color: #ff0000;\">\" ) ) ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FILENAME \"</span>..\\<span style=\"color: #0000ff;\">bitmaps</span>\\16x16\\faces.bmp<span style=\"color: #ff0000;\">\"<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MENUITEM \"</span>&Modify...<span style=\"color: #ff0000;\">\" &nbsp;ACTION MsgInfo( \"</span>Modif. Clients<span style=\"color: #ff0000;\">\" ) ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FILENAME \"</span>..\\<span style=\"color: #0000ff;\">bitmaps</span>\\<span style=\"color: #00C800;\">edit</span>.bmp<span style=\"color: #ff0000;\">\"<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MENUITEM \"</span>&Delete...<span style=\"color: #ff0000;\">\" &nbsp;ACTION MsgAlert( \"</span>Del Clients<span style=\"color: #ff0000;\">\" ) ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FILENAME \"</span>..\\<span style=\"color: #0000ff;\">bitmaps</span>\\16x16\\delete.bmp<span style=\"color: #ff0000;\">\"<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SEPARATOR<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MENUITEM \"</span>&Browse...<span style=\"color: #ff0000;\">\" &nbsp;ACTION MsgInfo( \"</span>Browse Clients<span style=\"color: #ff0000;\">\" ) ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FILENAME \"</span>..\\<span style=\"color: #0000ff;\">bitmaps</span>\\16x16\\browse.bmp<span style=\"color: #ff0000;\">\"<br /><br />&nbsp; &nbsp; &nbsp; ENDMENU<br /><br />&nbsp; &nbsp; &nbsp; MENUITEM \"</span>&Utilities<span style=\"color: #ff0000;\">\"<br />&nbsp; &nbsp; &nbsp; MENU<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MENUITEM \"</span>&Calculator...<span style=\"color: #ff0000;\">\" ACTION WinExec( \"</span>Calc<span style=\"color: #ff0000;\">\" ) ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FILENAME \"</span>..\\<span style=\"color: #0000ff;\">bitmaps</span>\\16x16\\calc.bmp<span style=\"color: #ff0000;\">\"<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MENUITEM \"</span>&Internet...<span style=\"color: #ff0000;\">\" ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ACTION WinExec( \"</span>start iexplore <!-- w --><a class=\"postlink\" href=\"http://www.fivetech.com\">www.fivetech.com</a><!-- w --><span style=\"color: #ff0000;\">\", 0 ) ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FILENAME \"</span>..\\<span style=\"color: #0000ff;\">bitmaps</span>\\16x16\\explorer.bmp<span style=\"color: #ff0000;\">\"<br />&nbsp; &nbsp; &nbsp; ENDMENU<br />&nbsp; &nbsp;ENDMENU<br /><br />RETURN( oMenu )<br /><br />FUNCTION CERRAR_TODO()<br /><br />&nbsp; &nbsp;IF FILE( \"</span>TUTOR09.LOG<span style=\"color: #ff0000;\">\" )<br />&nbsp; &nbsp; &nbsp; DELETEFILE( \"</span>TUTOR09.LOG<span style=\"color: #ff0000;\">\" )<br />&nbsp; &nbsp;ENDIF<br /><br />&nbsp; &nbsp;lSalida := .F.<br /><br />&nbsp; &nbsp;DbCommitAll()<br />&nbsp; &nbsp;DbUnLockAll()<br />&nbsp; &nbsp;DbCloseAll()<br />&nbsp; &nbsp;FreeResources()<br />&nbsp; &nbsp;Release All<br />&nbsp; &nbsp;SysRefresh()<br /><br />&nbsp; &nbsp;HB_GCALL( .T. )<br /><br />&nbsp; &nbsp;CLEAR MEMORY<br /><br />&nbsp; &nbsp;PostQuitMessage( 0 )<br /><br />&nbsp; &nbsp;QUIT<br /><br />RETURN NIL<br /><br />STATIC FUNCTION BmpTiled( hDC, oWnd, oBmp )<br /><br />&nbsp; &nbsp;local nWidth := oWnd:nWidth(), nHeight := oWnd:nHeight()<br />&nbsp; &nbsp;local nRow := 0, nCol := 0, n<br />&nbsp; &nbsp;local nBmpWidth &nbsp;:= oBmp:nWidth(), &nbsp;nBmpHeight := oBmp:nHeight()<br /><br />&nbsp; &nbsp;if oBmp:hBitmap == 0<br />&nbsp; &nbsp; &nbsp; return nil<br />&nbsp; &nbsp;endif<br /><br />&nbsp; &nbsp;while nRow < nHeight<br />&nbsp; &nbsp; &nbsp; nCol = 0<br />&nbsp; &nbsp; &nbsp; while nCol < nWidth<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PalBmpDraw( hDC, nRow, nCol, oBmp:hBitmap )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nCol += nBmpWidth<br />&nbsp; &nbsp; &nbsp; end<br />&nbsp; &nbsp; &nbsp; nRow += nBmpHeight<br />&nbsp; &nbsp;end<br /><br />RETURN NIL<br />// TURN OFF SYSTEM-PROGRAM<br />FUNCTION DESLIGA_PROGRAM_SYS() &nbsp;// 07/10/2023 - Joao<br /><br />&nbsp; &nbsp;LOCAL Nome_Arq, nRegistro, oDlg, cMsg, cTexto<br /><br />&nbsp; &nbsp;MsgRun( \"</span>Desligando o Programa... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\", ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"</span>Por Favor, Espere! &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\", ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ | oDlg | ( DESLIGA_PROG_TUTOR09( oDlg ) ) } )<br /><br />&nbsp; &nbsp;// AEVAL(DIRECTORY( \"</span>TUTOR09.BAT<span style=\"color: #ff0000;\">\" &nbsp; &nbsp; ),{ |aFILE| FERASE(aFILE[F_NAME]) } )<br /><br />&nbsp; &nbsp;IF .NOT. FILE( \"</span>TUTOR09.BAT<span style=\"color: #ff0000;\">\" )<br /><br />&nbsp; &nbsp; &nbsp; NOME_ARQ := FCREATE(\"</span>TUTOR09.BAT<span style=\"color: #ff0000;\">\")<br /><br />&nbsp; &nbsp; &nbsp; NREGISTRO := \"</span>@ECHO OFF<span style=\"color: #ff0000;\">\" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"</span>CLS<span style=\"color: #ff0000;\">\" &nbsp; &nbsp; &nbsp; &nbsp; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF + CRLF + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cDirPleno + \"</span>\\TUTOR09 > NUL<span style=\"color: #ff0000;\">\" &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF + CRLF + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"</span>CLS<span style=\"color: #ff0000;\">\" &nbsp; &nbsp; &nbsp; &nbsp; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"</span>EXIT<span style=\"color: #ff0000;\">\"<br /><br />&nbsp; &nbsp; &nbsp; FWRITE( NOME_ARQ, NREGISTRO )<br />&nbsp; &nbsp; &nbsp; FCLOSE( NOME_ARQ )<br /><br />&nbsp; &nbsp;ENDIF<br /><br />&nbsp; &nbsp;lSalida := .F.<br /><br />&nbsp; &nbsp;WinExec( \"</span>TUTOR09.BAT<span style=\"color: #ff0000;\">\", 0 )<br /><br />&nbsp; &nbsp;FreeResources()<br />&nbsp; &nbsp;SysRefresh()<br />&nbsp; &nbsp;DbCloseAll()<br /><br />&nbsp; &nbsp;RELEASE ALL<br />&nbsp; &nbsp;HB_GCALL( .T. )<br /><br />&nbsp; &nbsp;CLEAR MEMORY<br /><br />&nbsp; &nbsp;PostQuitMessage( 0 )<br /><br />&nbsp; &nbsp;__QUIT()<br /><br />RETURN NIL<br />//-> Shows program shutdown.<br />FUNCTION DESLIGA_PROG_TUTOR09( oDlg )<br /><br />&nbsp; &nbsp;LOCAL nFor, nStart<br /><br />&nbsp; &nbsp;FOR nFor := 4 to 0 step -1<br />&nbsp; &nbsp; &nbsp; &nbsp;nStart = GetTickCount()<br />&nbsp; &nbsp; &nbsp; &nbsp;while ( GetTickCount() - nStart ) < 1000<br />&nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp; &nbsp; &nbsp;oDlg:cMsg := \"</span>Aguarde, Desligando o Programa em: <span style=\"color: #ff0000;\">\"+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LTrim( Str( nFor ) ) + \"</span> Segundo<span style=\"color: #ff0000;\">\" &nbsp; + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;If( nFor > 1, \"</span>s<span style=\"color: #ff0000;\">\", \"</span><span style=\"color: #ff0000;\">\" )<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;oDlg:Refresh()<br />&nbsp; &nbsp; &nbsp; &nbsp;SysRefresh()<br /><br />&nbsp; &nbsp;NEXT<br /><br />RETURN NIL<br /><br />/*<br />// TUTOR09.BAT<br />@ECHO OFF<br />CLS<br /><br />c:<span style=\"color: #000000;\">\\F</span>WH1905<span style=\"color: #000000;\">\\s</span>amples<span style=\"color: #000000;\">\\T</span>UTOR09 > NUL<br /><br />CLS<br />EXIT<br />*/<br /><br />// FIN / END - <!-- e --><a href=\"mailto:kapiabafwh@gmail.com\">kapiabafwh@gmail.com</a><!-- e --><br /></span></div>[/code:1zm4kg74]\n\nRegards, saludos.", "time": "17:02", "topic": "App Termination and Relaunch.", "username": "karinha" } ]
App Termination and Relaunch.
[ { "date": "2007-01-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n When we meet app runtime errors,could we return to last called from function intead of quit app?\n for example:\n Function a1()\n define dialog odlg resource \"odlg\"\n redefine button id 101 of odlg action a2()\n activate dialog odlg\nreturn\n\nfunction a2()\nlocal n1:=1/0\n// local n1:=\"aaa\"+2\nreturn \n \n Click id 101 button only shows a runtime error ,then return to a1 odlg.\n Our customers feel this will be better than quit the app.\n\nBest Regard!\nShuming Wang", "time": "03:02", "topic": "App a runtime error return to last function, not quit app?", "username": "ShumingWang" } ]
App a runtime error return to last function, not quit app?
[ { "date": "2007-01-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Shuming,\n\nYou can modify FWH\\source\\function\\errsysw.prg", "time": "04:49", "topic": "App a runtime error return to last function, not quit app?", "username": "Antonio Linares" } ]
App a runtime error return to last function, not quit app?
[ { "date": "2007-01-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\nThank you!\nShuming Wang", "time": "08:14", "topic": "App a runtime error return to last function, not quit app?", "username": "ShumingWang" } ]
App a runtime error return to last function, not quit app?
[ { "date": "2019-08-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Is no one using FWH / Harbour to build a Windows service ? I would think someone must have encountered this issue.\n\nThe main problem is that a 24/7 app used to perform daily tasks automatically, if installed on Windows Server, will not run unless someone actually logs into the server. The way around this is to install a service. I got one built, and running, but had to hardcode a path since it sets it's root as the System/Windows32 folder even when installed elsewhere.\n\nSurely someone has ideas on this.", "time": "17:42", "topic": "App as service default path", "username": "TimStone" } ]
App as service default path
[ { "date": "2019-07-30", "forum": "FiveWin for Harbour/xHarbour", "text": "I have an update program called. MLupdate.exe. I place it in the primary directory created for my application ( ie. c:\\ML ). This has a subdirectory where all files are stored ( ie. C:\\ML\\Data\\ ).\n\nWhen run as an application, it checks the current drive and directory and creates a cPath variable that points to the data file.\n\nWhen run as a service, Windows has it start in the System32 folder, even though that is not where it physically resides, and it can't find the data files.\n\nI could probably put a configuration file in the System32 folder to be read by the service, but the main problem is the actual installed location of the data directory can be different. For example, on some servers it might be N:\\Shared\\ML\\Data\\. I could create and configure this manually on each install, but prefer to do it with the installer ( Actual Installer ). \n\nThe easiest solution would be to get the service to know where it's file is located, and set it's path accordingly.\n\nAny suggestions on to get this accomplished within the service startup code ?\n\nThanks.", "time": "21:57", "topic": "App as service default path", "username": "TimStone" } ]
App as service default path
[ { "date": "2016-01-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos:\n\nAlguien que tenga experiencia sobre montar una de nuestras aplicaciones, usando Mysql como motor,\ny quiera compartir su experiencia???\n\nAlguna hebra por donde tirar?\n\nSaludos", "time": "18:41", "topic": "App en DropBox?", "username": "Armando" } ]
App en DropBox?
[ { "date": "2016-01-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Up!", "time": "20:39", "topic": "App en DropBox?", "username": "Compuin" } ]
App en DropBox?
[ { "date": "2015-03-04", "forum": "FiveWin for Harbour/xHarbour", "text": "To All\n\nI have been doing my development at work on WinXP and have not had any problems. Recently my Windows 7 32 bit machine will compile my ( same ) programs and run them just fine .. but when the program 'breaks' I do not get the Error screen or an error.log file.\n\nI thought it might be my laptop .. so I just re-formatted it with a fresh install. Unfortunately the problem still exists. What makes the problem more perplexing .. if I go to \\samples ( on my laptop ) and modify tutor01.prg to create a run-time error by assigning a variable and purposely mis-spelling the variable, ( Buildx tutor01 )the run-time error.log works when the program breaks.\n\nSo I know there must be a problem somewhere in assigning my libs. I went through my xMate environment and made sure all the libs were being called and in the same order as buildX.bat .. and the program continues to build, but when I force it to break .. my application abruptly quits .. no error.log, no run-time Fw dialog.\n\nI take the compiled program compiled from my Windows 7 machine and copy it to my WinXP machine .. and I get a GPF on the Run-Time error.\n\nHere is my xMate environment. Please have a look at the libs ( Borland 5.82 and FWH 1501 ) and the command lines and PLEASE tell me what is wrong <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: --> \n\nRick Lipkin\n\n[code=fw:nna17677]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #000000;\">&#91;</span>Environment<span style=\"color: #000000;\">&#93;</span><br />Description <span style=\"color: #000000;\">1</span>=Updated <span style=\"color: #00C800;\">for</span> FWH <span style=\"color: #000000;\">1501</span><br />Description <span style=\"color: #000000;\">2</span>=<br />Description <span style=\"color: #000000;\">3</span>=<br />PRG Compiler ver=xHarbour<br />C compiler ver=Bcc582<br />Subsystem=FWH1501 Author=Richard Lipkin<br />Last <span style=\"color: #0000ff;\">update</span>=<span style=\"color: #000000;\">03</span>/<span style=\"color: #000000;\">03</span>/<span style=\"color: #000000;\">2015</span><br /><br /><span style=\"color: #000000;\">&#91;</span>Advanced<span style=\"color: #000000;\">&#93;</span><br />Command types=<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span><br /><br /><span style=\"color: #000000;\">&#91;</span>Harbour<span style=\"color: #000000;\">&#93;</span><br />HB_INSTALL=C:\\XHARBOUR<br />HB_COMMAND=%HB_BIN_INSTALL%\\Harbour.Exe %PRG% /m /n /gc0 /w0 /es2 /a /i%HB_INC_INSTALL% /d__EXPORT__<br />Option prefix=/<br /><br /><span style=\"color: #000000;\">&#91;</span>C<span style=\"color: #000000;\">&#93;</span><br />C_INSTALL=C:\\Borland\\bcc582<br />C_COMP_COMMAND=%C_BIN_INSTALL%\\Bcc32.Exe -M -c -v %CRLF%-DHB_OS_WIN_32 %CRLF%-I%C_INC_INSTALL%;%HB_INC_INSTALL%  -n%HOME%\\Obj %C%<br />C_LIB_COMMAND=%C_BIN_INSTALL%\\TLib.Exe %LIB% /P512 @%RSP% , %LST%<br />C_LINK_COMMAND=%C_BIN_INSTALL%\\iLink32.Exe -Gn -aa -Tpe -s -v @%LNK%<br />C_RC_COMMAND=%C_BIN_INSTALL%\\Brc32.Exe -r  -fo%RES%  %RC%<br />C_DLL_COMMAND=<br />Option prefix=-<br /><br /><span style=\"color: #000000;\">&#91;</span>User<span style=\"color: #000000;\">&#93;</span><br />POSTEXE_COMMAND=<br />POSTLIB_COMMAND=<br />POSTDLL_COMMAND=<br /><br /><span style=\"color: #000000;\">&#91;</span>Files<span style=\"color: #000000;\">&#93;</span><br />%C_LIB_INSTALL%\\c0w32.obj=<span style=\"color: #000000;\">1</span><br />C:\\FWH1501\\LIB\\Fivehx.lib=<span style=\"color: #000000;\">2</span><br />C:\\FWH1501\\LIB\\Fivehc.lib=<span style=\"color: #000000;\">3</span><br />%HB_LIB_INSTALL%\\rtl.lib=<span style=\"color: #000000;\">4</span><br />%HB_LIB_INSTALL%\\vm.lib=<span style=\"color: #000000;\">5</span><br />%HB_LIB_INSTALL%\\gtgui.lib=<span style=\"color: #000000;\">6</span><br />%HB_LIB_INSTALL%\\lang.lib=<span style=\"color: #000000;\">7</span><br />%HB_LIB_INSTALL%\\macro.lib=<span style=\"color: #000000;\">8</span><br />%HB_LIB_INSTALL%\\rdd.lib=<span style=\"color: #000000;\">9</span><br />%HB_LIB_INSTALL%\\dbfntx.lib=<span style=\"color: #000000;\">10</span><br />%HB_LIB_INSTALL%\\dbfcdx.lib=<span style=\"color: #000000;\">11</span><br />%HB_LIB_INSTALL%\\dbffpt.lib=<span style=\"color: #000000;\">12</span><br />%HB_LIB_INSTALL%\\hbsix.lib=<span style=\"color: #000000;\">13</span><br />%HB_LIB_INSTALL%\\debug.lib=<span style=\"color: #000000;\">14</span><br />%HB_LIB_INSTALL%\\common.lib=<span style=\"color: #000000;\">15</span><br />%HB_LIB_INSTALL%\\pp.lib=<span style=\"color: #000000;\">16</span><br />%HB_LIB_INSTALL%\\pcrepos.lib=<span style=\"color: #000000;\">17</span><br />%HB_LIB_INSTALL%\\ct.lib=<span style=\"color: #000000;\">18</span><br />%HB_LIB_INSTALL%\\zlib.lib=<span style=\"color: #000000;\">19</span><br />%HB_LIB_INSTALL%\\hbzip.lib=<span style=\"color: #000000;\">20</span><br />%HB_LIB_INSTALL%\\libmisc.lib=<span style=\"color: #000000;\">21</span><br />%HB_LIB_INSTALL%\\tip.lib=<span style=\"color: #000000;\">22</span><br />%HB_LIB_INSTALL%\\png.lib=<span style=\"color: #000000;\">23</span><br />%C_LIB_INSTALL%\\cw32.lib=<span style=\"color: #000000;\">24</span><br />%C_LIB_INSTALL%\\IMPORT32.LIB=<span style=\"color: #000000;\">25</span><br />%C_LIB_INSTALL%\\uuid.lib=<span style=\"color: #000000;\">26</span><br />%C_LIB_INSTALL%\\ws2_32.lib=<span style=\"color: #000000;\">27</span><br />%C_LIB_INSTALL%\\PSDK\\odbc32.lib=<span style=\"color: #000000;\">28</span><br />%C_LIB_INSTALL%\\PSDK\\rassapi.lib=<span style=\"color: #000000;\">29</span><br />%C_LIB_INSTALL%\\PSDK\\nddeapi.lib=<span style=\"color: #000000;\">30</span><br />%C_LIB_INSTALL%\\PSDK\\msimg32.lib=<span style=\"color: #000000;\">31</span><br />%C_LIB_INSTALL%\\PSDK\\psapi.lib=<span style=\"color: #000000;\">32</span><br />%C_LIB_INSTALL%\\PSDK\\GdiPlus.lib=<span style=\"color: #000000;\">33</span><br />%C_LIB_INSTALL%\\PSDK\\iphlpapi.lib=<span style=\"color: #000000;\">34</span><br />%C_LIB_INSTALL%\\PSDK\\shell32.lib=<span style=\"color: #000000;\">35</span><br /><br /><span style=\"color: #000000;\">&#91;</span>DLL Files<span style=\"color: #000000;\">&#93;</span><br />%C_LIB_INSTALL%\\import32.lib=<span style=\"color: #000000;\">1</span><br />%HB_LIB_INSTALL%\\harbour.lib=<span style=\"color: #000000;\">2</span><br />%C_LIB_INSTALL%\\c0w32w.obj=<span style=\"color: #000000;\">3</span><br />%C_LIB_INSTALL%\\cw32.lib=<span style=\"color: #000000;\">4</span><br /> </div>[/code:nna17677]", "time": "21:58", "topic": "App quits on error without showing error Windows 7", "username": "Rick Lipkin" } ]
App quits on error without showing error Windows 7
[ { "date": "2015-03-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Do you use errsysw_.prg or the modified errsysw.prg that was published here as an enhancement? \nWhen I updated my Fivewin it was crashing on me also. I found that errsysw_.prg and my modified version was using FWBitmap() with no parameters and it would crash. There must have been a change. Now errsysw.prg is using FWLogoBitMap() instead and when I replaced it in errsysw_.prg it no longer crashed .\n\n // GDF Mod Error 02/05/2015\n //hLogo = FWBitMap()\n hLogo = FWLogoBitMap()\n // GDF EndMod Error 02/05/2015", "time": "22:29", "topic": "App quits on error without showing error Windows 7", "username": "Gale FORd" } ]
App quits on error without showing error Windows 7
[ { "date": "2015-03-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Gale\n\nI have no modified programs .. just using the FWH libs <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> \n\nRick", "time": "22:32", "topic": "App quits on error without showing error Windows 7", "username": "Rick Lipkin" } ]
App quits on error without showing error Windows 7
[ { "date": "2015-03-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Just checking because if you are not getting error message then I believe it is either an error in the error handler itself or windows exception error that is not handled by the error handler.", "time": "22:59", "topic": "App quits on error without showing error Windows 7", "username": "Gale FORd" } ]
App quits on error without showing error Windows 7
[ { "date": "2015-03-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Just a follow up .. when I run buildx tutor01 on my WinXP machine I get this error :\n[code=fw:2nl39gyy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />\fÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿<br />³ FiveWin <span style=\"color: #00C800;\">for</span> xHarbour <span style=\"color: #000000;\">15.01</span> - Jan. <span style=\"color: #000000;\">2015</span>          xHarbour development <span style=\"color: #0000ff;\">power</span> ³Ü<br />³ <span style=\"color: #000000;\">&#40;</span>c<span style=\"color: #000000;\">&#41;</span> FiveTech, <span style=\"color: #000000;\">1993</span><span style=\"color: #000000;\">-2015</span>   <span style=\"color: #00C800;\">for</span> Microsoft Windows 9X/NT/200X/ME/XP/Vista/<span style=\"color: #000000;\">7</span>/<span style=\"color: #000000;\">8</span> ³Û<br />ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ<br />ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß<br />Compiling...<br />xHarbour <span style=\"color: #000000;\">1.2</span><span style=\"color: #000000;\">.3</span> Intl. <span style=\"color: #000000;\">&#40;</span>SimpLex<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#40;</span>Build <span style=\"color: #000000;\">20131030</span><span style=\"color: #000000;\">&#41;</span><br />Copyright <span style=\"color: #000000;\">1999</span><span style=\"color: #000000;\">-2013</span>, http:<span style=\"color: #B900B9;\">//www.xharbour.org <!-- m --><a class=\"postlink\" href=\"http://www.harbour-project.org/\">http://www.harbour-project.org/</a><!-- m --></span><br />Compiling <span style=\"color: #ff0000;\">'tutor01.prg'</span> and generating preprocessed output <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'tutor01.ppo'</span>...<br /><br /><span style=\"color: #000000;\">100</span><br /><br /><span style=\"color: #000000;\">100</span><br />* Compile errors *<br /> </div>[/code:2nl39gyy]\n\nbut it works just fine on my Windows 7 machine.\n\nRick Lipkin", "time": "00:01", "topic": "App quits on error without showing error Windows 7", "username": "Rick Lipkin" } ]
App quits on error without showing error Windows 7
[ { "date": "2015-03-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nDo you have an hb_out.log file?.\n\nHarbour creates it when happens your problem.", "time": "09:32", "topic": "App quits on error without showing error Windows 7", "username": "elvira" } ]
App quits on error without showing error Windows 7
[ { "date": "2015-03-05", "forum": "FiveWin for Harbour/xHarbour", "text": "<!-- m --><a class=\"postlink\" href=\"http://fivetechsupport.com/forums/viewtopic.php?f=6&t=27437&start=0#p152922\">http://fivetechsupport.com/forums/viewt ... =0#p152922</a><!-- m -->", "time": "10:07", "topic": "App quits on error without showing error Windows 7", "username": "hmpaquito" } ]
App quits on error without showing error Windows 7
[ { "date": "2015-03-05", "forum": "FiveWin for Harbour/xHarbour", "text": "To All\n\nElvira, I am using xHarbour and no file what so ever is being created .. the application just abruptly quits.\nHmpaquito, I read your thread and it seems to point to SqlRDD and I am not using any additional libs .. just standard FWH\n\nI appreciate everyone's help .. still stuck here <!-- s:cry: --><img src=\"{SMILIES_PATH}/icon_cry.gif\" alt=\":cry:\" title=\"Crying or Very sad\" /><!-- s:cry: --> \n\nRick Lipkin", "time": "14:53", "topic": "App quits on error without showing error Windows 7", "username": "Rick Lipkin" } ]
App quits on error without showing error Windows 7
[ { "date": "2015-03-05", "forum": "FiveWin for Harbour/xHarbour", "text": "No Rick, what I mean is that you record calls at the beginning of ErrorSys so:\n\n[code=fw:7x4yl40y]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#define</span> PROCNAME_<span style=\"color: #000000;\">&#40;</span>n<span style=\"color: #000000;\">&#41;</span> ProcName<span style=\"color: #000000;\">&#40;</span>n<span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"(\"</span> LTrim <span style=\"color: #000000;\">&#40;</span>STr<span style=\"color: #000000;\">&#40;</span>ProcLine<span style=\"color: #000000;\">&#40;</span>n<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\")\"</span><br /><span style=\"color: #00D7D7;\">#define</span> CALLED_ PROCNAME_<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span> + Space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#41;</span> + ;<br />                        PROCNAME_<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span> + Space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#41;</span> + ;<br />                        PROCNAME_<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#41;</span><br />FClose<span style=\"color: #000000;\">&#40;</span> FWrite<span style=\"color: #000000;\">&#40;</span> FCreate<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AtBegin.txt\"</span>, FC_NORMAL<span style=\"color: #000000;\">&#41;</span>, CALLED_ <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span></div>[/code:7x4yl40y]", "time": "16:31", "topic": "App quits on error without showing error Windows 7", "username": "hmpaquito" } ]
App quits on error without showing error Windows 7
[ { "date": "2015-03-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Another problem I had when upgraded was that some functions related to ADS were not automatically included. My app exited without any error message.\nPreviously I just needed \nRequest ADS, DBFCDX\n\nBut I found that I had to add the following to keep my app from crashing.\nexternal adsgetrelkeypos, ADSSetRelKeyPos, ADSKeyCount\n\nI don't know why upgrading Fivewin would have affected my RDD functions.", "time": "16:33", "topic": "App quits on error without showing error Windows 7", "username": "Gale FORd" } ]
App quits on error without showing error Windows 7
[ { "date": "2015-03-05", "forum": "FiveWin for Harbour/xHarbour", "text": "To All\n\nI have solved my problem .. after testing a few other apps on my W7 machine and creating a program break .. I did indeed get the error screen and .log.\n\nThat led me to a possible project list corruption in my xMate file. I decided to recreate my xMate project and add all my .prg back in and much to my surprise I had a file named Rview .prg ( notice the extra spaces ).\n\nAfter correcting my DOS naming error .. I was able to re-create my xMate project list and was able to get a successful run-time break with the error.log and dialog.\n\nFor whatever reason, Xp was a bit more (dos ) forgiving or I would have found this error sooner.\n\nThanks to all for their help and advice.\n\nRick Lipkin", "time": "16:36", "topic": "App quits on error without showing error Windows 7", "username": "Rick Lipkin" } ]
App quits on error without showing error Windows 7
[ { "date": "2015-03-08", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Gale FORd\":2aovw51t]Another problem I had when upgraded was that some functions related to ADS were not automatically included. My app exited without any error message.\nPreviously I just needed \nRequest ADS, DBFCDX\n\nBut I found that I had to add the following to keep my app from crashing.\nexternal adsgetrelkeypos, ADSSetRelKeyPos, ADSKeyCount\n\nI don't know why upgrading Fivewin would have affected my RDD functions.[/quote:2aovw51t]\nEarlier, we had to include \"xbrowse.ch\" separately.\nIf ads.ch was included prior to xbrowse.ch, then xbrowse.ch automatically requests these ads* functions.\nPlease see these lines at the end of xbrowse.ch:\n[code=fw:2aovw51t]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">#ifdef ADS_NTX<br />&nbsp; &nbsp;REQUEST ADSKEYCOUNT, ADSGETRELKEYPOS, ADSSETRELKEYPOS<br />#endif<br />&nbsp;</div>[/code:2aovw51t]\nBut now, xbrowse.ch is included as a part of fivewin.ch and so at the time compiling ADS_NTX is not defined and the request is not included.\n\nif you are still have the program header like this:\n#include \"fivewin.ch\"\n#include \"ads..ch\"\n#include \"xbrowse.ch\"\nthen I suggest this small modification in the copy of xbrowse.ch you have.\nPlease see at the end of xbrowse.ch\n[code=fw:2aovw51t]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />#ifdef ADS_NTX<br />&nbsp; &nbsp;REQUEST ADSKEYCOUNT, ADSGETRELKEYPOS, ADSSETRELKEYPOS<br />#endif<br /><br />#endif</div>[/code:2aovw51t]\nChange these lines as:\n[code=fw:2aovw51t]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />#endif<br /><br />#ifdef ADS_NTX<br />&nbsp; &nbsp;REQUEST ADSKEYCOUNT, ADSGETRELKEYPOS, ADSSETRELKEYPOS<br />#endif<br />&nbsp;</div>[/code:2aovw51t]", "time": "15:41", "topic": "App quits on error without showing error Windows 7", "username": "nageswaragunupudi" } ]
App quits on error without showing error Windows 7
[ { "date": "2015-03-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you for the explanation.", "time": "19:04", "topic": "App quits on error without showing error Windows 7", "username": "Gale FORd" } ]
App quits on error without showing error Windows 7
[ { "date": "2021-06-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Is there a sample out here that has some of the folowing functions insite.\n\nI want to have a tool that collects all the DBF files from my app and store the fields and structure of each. A extra content field is needed to descripe the fields name and what it is used for\nAlso a list of the indexes and tags would help.\n\nIf there is a working sample, I would be great.... else i try to make it from scratch.", "time": "09:11", "topic": "App. for devellopment and maintenance of DBF", "username": "Marc Venken" } ]
App. for devellopment and maintenance of DBF
[ { "date": "2021-07-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Mark,\n\nI started on one years ago, so it is not full featured, but you are welcome to a copy. Click on my name (to the right), then go to my website. Go to the Contact Us page and send me a message with your email address. Then I will send you what I have.\n\nRegards,\nJames", "time": "21:52", "topic": "App. for devellopment and maintenance of DBF", "username": "James Bott" } ]
App. for devellopment and maintenance of DBF
[ { "date": "2021-07-02", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Marc Venken\":1jsgfyap]Is there a sample out here that has some of the folowing functions insite.\n\nI want to have a tool that collects all the DBF files from my app and store the fields and structure of each. A extra content field is needed to descripe the fields name and what it is used for\nAlso a list of the indexes and tags would help.\n\nIf there is a working sample, I would be great.... else i try to make it from scratch.[/quote:1jsgfyap]\n\nInteresting. \nWe will provide soon.", "time": "07:47", "topic": "App. for devellopment and maintenance of DBF", "username": "nageswaragunupudi" } ]
App. for devellopment and maintenance of DBF
[ { "date": "2021-07-02", "forum": "FiveWin for Harbour/xHarbour", "text": "These applications are named \"data dictionary\"\n\nMy 2 cents of merkel money", "time": "08:33", "topic": "App. for devellopment and maintenance of DBF", "username": "hmpaquito" } ]
App. for devellopment and maintenance of DBF
[ { "date": "2020-06-03", "forum": "mod_harbour", "text": "In harbour winforms applications we seem to store specific information for our apps in the .ini file. On the web it seems it is stored in web.config. Does mod_harbour have a way to read and write from a web.config file as harbour does with .ini's?\n\nThanks,", "time": "00:03", "topic": "App.Ini vs Web.Config", "username": "byron.hopp" } ]
App.Ini vs Web.Config
[ { "date": "2020-06-05", "forum": "mod_harbour", "text": "Hi,\n\nI think you can write/read yiur file config like a usual file. And for example you can use memowrit/memoread for it\n\nC.", "time": "18:10", "topic": "App.Ini vs Web.Config", "username": "Carles" } ]
App.Ini vs Web.Config
[ { "date": "2020-06-05", "forum": "mod_harbour", "text": "Yes, thank you, good point. I was looking for a class that may make it easier like the oIni class that allows us to read and write to INI files.", "time": "18:14", "topic": "App.Ini vs Web.Config", "username": "byron.hopp" } ]
App.Ini vs Web.Config
[ { "date": "2020-06-05", "forum": "mod_harbour", "text": "Byron,\n\nYou can do \n\n[code=fw:14utfk17]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><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> cIni      :=  hb_GetEnv<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"PRGPATH\"</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">'/myini.txt'</span><br />    <span style=\"color: #00C800;\">local</span> hIni  := <span style=\"color: #000000;\">&#123;</span>=><span style=\"color: #000000;\">&#125;</span><br />    <br />    hIni<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #ff0000;\">'name'</span> <span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #ff0000;\">'Charly'</span><br />    hIni<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #ff0000;\">'last'</span> <span style=\"color: #000000;\">&#93;</span> := time<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    hIni<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #ff0000;\">'age'</span>  <span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">52</span><br /><br />    <span style=\"color: #B900B9;\">//  Save your ini</span><br />    memowrit<span style=\"color: #000000;\">&#40;</span> cIni, hb_jsonencode<span style=\"color: #000000;\">&#40;</span> hIni <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />    <br />    <span style=\"color: #B900B9;\">//  Read your ini</span><br />    h := hb_jsondecode<span style=\"color: #000000;\">&#40;</span> memoread<span style=\"color: #000000;\">&#40;</span> cIni <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />    <br />    ? h<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #ff0000;\">'name'</span> <span style=\"color: #000000;\">&#93;</span><br />    ? h<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #ff0000;\">'last'</span> <span style=\"color: #000000;\">&#93;</span><br />    ? h<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #ff0000;\">'age'</span> <span style=\"color: #000000;\">&#93;</span><br /><br /><br />retu <span style=\"color: #00C800;\">nil</span></div>[/code:14utfk17]", "time": "18:34", "topic": "App.Ini vs Web.Config", "username": "Carles" } ]
App.Ini vs Web.Config
[ { "date": "2020-06-05", "forum": "mod_harbour", "text": "Below is a minimal web.config example from Microsoft Support.\n\n<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<configuration>\n <system.web>\n\n </system.web>\n</configuration>", "time": "18:51", "topic": "App.Ini vs Web.Config", "username": "byron.hopp" } ]
App.Ini vs Web.Config
[ { "date": "2007-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "How do I get application path in FW?\nThanks in advance\nOtto", "time": "16:05", "topic": "App.Path", "username": "Otto" } ]
App.Path
[ { "date": "2007-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Otto\":n6rxokhp]How do I get application path in FW?\nThanks in advance\nOtto[/quote:n6rxokhp]\n\ncFilePath( GetModuleFileName( GetInstance( ) ) )", "time": "16:40", "topic": "App.Path", "username": "Richard Chidiak" } ]
App.Path
[ { "date": "2007-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you, Richard.", "time": "17:19", "topic": "App.Path", "username": "Otto" } ]
App.Path
[ { "date": "2022-08-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\n\nEstoy complilando con la última version de FWH, Harbour y VS2022\n\nAl trabajar con un INI en Windows 7 o Windows Server 2008, la aplicación devuelve un AppCrash.\nEn Windows 10, 11 o Server de versión superior, funciona sin problemas.\n\nHe probado con \\Samples\\TestIni.prg y también casca.\nEn concreto casca en la primera llamada Get\n[code=fw:bwlys24k]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">GET</span> cTitle &nbsp;SECTION <span style=\"color: #ff0000;\">\"main\"</span> ENTRY <span style=\"color: #ff0000;\">\"Title\"</span> &nbsp; <span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #00C800;\">DEFAULT</span> <span style=\"color: #ff0000;\">\"FiveWin App\"</span></div>[/code:bwlys24k]\n\nel hbp que uso para construir el ejecutable es:\n[code=fw:bwlys24k]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">-gui<br /><br />-Ic:\\fwh\\include<br /><br />testini.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></div>[/code:bwlys24k]\n\n[code=fw:bwlys24k]<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 sample.hbp -comp=msvc<br />&nbsp;</div>[/code:bwlys24k]", "time": "21:34", "topic": "AppCrash Windows 7 al leer INI", "username": "fgondi" } ]
AppCrash Windows 7 al leer INI
[ { "date": "2022-08-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Fernando,\n\nPor favor comprueba si se genera un fichero hb_out.log y copia el contenido aqui, gracias", "time": "07:34", "topic": "AppCrash Windows 7 al leer INI", "username": "Antonio Linares" } ]
AppCrash Windows 7 al leer INI
[ { "date": "2022-08-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\n\nNo genera el archivo hb_out.log\n\nCasca en la lectura del primer valor\n[code=fw:1t0hwts8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">GET</span> cTitle &nbsp;SECTION <span style=\"color: #ff0000;\">\"main\"</span> ENTRY <span style=\"color: #ff0000;\">\"Title\"</span> &nbsp; <span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #00C800;\">DEFAULT</span> <span style=\"color: #ff0000;\">\"FiveWin App\"</span></div>[/code:1t0hwts8]", "time": "11:14", "topic": "AppCrash Windows 7 al leer INI", "username": "fgondi" } ]
AppCrash Windows 7 al leer INI
[ { "date": "2022-08-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Aparece algun error en pantalla o simplemente la aplicación termina ?", "time": "16:32", "topic": "AppCrash Windows 7 al leer INI", "username": "Antonio Linares" } ]
AppCrash Windows 7 al leer INI
[ { "date": "2022-08-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Testini.exe dejo de funcionar\n\n[code=fw:2kpx3g4f]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Firma con problemas:<br />&nbsp; <span style=\"color: #000000;\">Nombre</span> del evento de problema:&nbsp; &nbsp; <span style=\"color: #000000;\">APPCRASH</span><br />&nbsp; Nombre de la aplicación:&nbsp;<span style=\"color: #000000;\">testini</span>.exe<br />&nbsp; Versión de la aplicación:&nbsp; &nbsp;<span style=\"color: #000000;\">0.0</span><span style=\"color: #000000;\">.0</span><span style=\"color: #000000;\">.0</span><br />&nbsp; Marca de tiempo de la aplicación:&nbsp; &nbsp; 630536c3<br />&nbsp; Nombre del módulo con errores:&nbsp; &nbsp;<span style=\"color: #000000;\">testini</span>.exe<br />&nbsp; Versión del módulo con errores:&nbsp;<span style=\"color: #000000;\">0.0</span><span style=\"color: #000000;\">.0</span><span style=\"color: #000000;\">.0</span><br />&nbsp; Marca de tiempo del módulo con errores:&nbsp; 630536c3<br />&nbsp; Código de excepción:&nbsp; &nbsp; <span style=\"color: #000000;\">c0000005</span><br />&nbsp; Desplazamiento de excepción:&nbsp;<span style=\"color: #000000;\">00023249</span><br />&nbsp; Versión del sistema operativo:&nbsp; &nbsp;<span style=\"color: #000000;\">6.1</span><span style=\"color: #000000;\">.7601</span><span style=\"color: #000000;\">.2</span><span style=\"color: #000000;\">.1</span><span style=\"color: #000000;\">.0</span><span style=\"color: #000000;\">.16</span><span style=\"color: #000000;\">.7</span><br />&nbsp; <span style=\"color: #0000ff;\">Id</span>. de configuración regional:&nbsp; &nbsp;<span style=\"color: #000000;\">3082</span><br />&nbsp; Información adicional <span style=\"color: #000000;\">1</span>:&nbsp;<span style=\"color: #000000;\">a4a6</span><br />&nbsp; Información adicional <span style=\"color: #000000;\">2</span>:&nbsp;<span style=\"color: #000000;\">a4a6d662ea50490d5d34aa5042d56e97</span><br />&nbsp; Información adicional <span style=\"color: #000000;\">3</span>:&nbsp;9aed<br />&nbsp; Información adicional <span style=\"color: #000000;\">4</span>:&nbsp;9aede9b28b317395eb1236b114dab4e6<br /><br />Lea nuestra declaración de privacidad en línea:<br />&nbsp; <span style=\"color: #000000;\">http</span>:<span style=\"color: #B900B9;\">//go.microsoft.com/fwlink/?linkid=104288&clcid=0x0c0a</span><br /><br />Si la declaración de privacidad en línea no está disponible, lea la declaración de privacidad <span style=\"color: #0000ff;\">sin</span> conexión:<br />&nbsp; <span style=\"color: #000000;\">C</span>:\\Windows\\system32\\es-ES\\erofflps.txt<br />&nbsp;</div>[/code:2kpx3g4f]", "time": "17:03", "topic": "AppCrash Windows 7 al leer INI", "username": "fgondi" } ]
AppCrash Windows 7 al leer INI
[ { "date": "2022-08-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\n\nUn error recursivo podria estar generando ese problema\n\nUna solucion para detectar el problema es encerrar la operacion de la llamada a la funcion de lectura del ini con un estructura de control de errores y mostrar el error que da. Algo asi como\n\n[code=fw:5noonj1d]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">TRY</span> <br />   leerArchivoIni<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />CATCH oErr<br />   <span style=\"color: #0000ff;\">msgInfo</span><span style=\"color: #000000;\">&#40;</span>oErr:<span style=\"color: #000000;\">Description</span><span style=\"color: #000000;\">&#41;</span><br />END<br /> </div>[/code:5noonj1d]", "time": "17:07", "topic": "AppCrash Windows 7 al leer INI", "username": "hmpaquito" } ]
AppCrash Windows 7 al leer INI
[ { "date": "2022-08-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\n\nAun así sigue apereciendo el appcrash y no muestra ningún mensaje de error\n\n[code=fw:fzzo3kuq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; &nbsp;<span style=\"color: #00C800;\">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">GET</span> cTitle &nbsp;SECTION <span style=\"color: #ff0000;\">\"main\"</span> ENTRY <span style=\"color: #ff0000;\">\"Title\"</span> &nbsp; <span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #00C800;\">DEFAULT</span> <span style=\"color: #ff0000;\">\"FiveWin App\"</span><br />&nbsp; &nbsp; CATCH oErr<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">msgInfo</span><span style=\"color: #000000;\">&#40;</span>oErr:<span style=\"color: #000000;\">Description</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; END<br />&nbsp;</div>[/code:fzzo3kuq]", "time": "20:45", "topic": "AppCrash Windows 7 al leer INI", "username": "fgondi" } ]
AppCrash Windows 7 al leer INI
[ { "date": "2022-08-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Fernando,\n\nPor favor prueba a llamar la función del API de Windows directamente:\n\nMsgInfo( GetPvProfString( cSection, cEntry, cValToChar( uDefault ), cIniFile ) )\n\ny comprueba si sucede lo mismo. gracias", "time": "00:11", "topic": "AppCrash Windows 7 al leer INI", "username": "Antonio Linares" } ]
AppCrash Windows 7 al leer INI
[ { "date": "2022-08-25", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:x37pue8i]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />...<br />INI oIni FILE <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\M</span>yApp.ini\"</span><br />? <span style=\"color: #ff0000;\">'a'</span><br /><span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> GetPvProfString<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"main\"</span>, <span style=\"color: #ff0000;\">\"Title\"</span>, cValToChar<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"FiveWin App\"</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\M</span>yApp.ini\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />? <span style=\"color: #ff0000;\">'b'</span><br /><span style=\"color: #0000ff;\">GET</span> cMsg &nbsp; &nbsp;SECTION <span style=\"color: #ff0000;\">\"main\"</span> ENTRY <span style=\"color: #ff0000;\">\"Message\"</span> <span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #00C800;\">DEFAULT</span> <span style=\"color: #ff0000;\">\"Main message\"</span><br />...<br />&nbsp;</div>[/code:x37pue8i]\n\nNo muestra ningún error adiccional.\nAparece el print a y luego sigue apareciendo el appcrash\nNo llega al print b\n[code=fw:x37pue8i]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Firma con problemas:<br />&nbsp; <span style=\"color: #000000;\">Nombre</span> del evento de problema:&nbsp; &nbsp; <span style=\"color: #000000;\">APPCRASH</span><br />&nbsp; Nombre de la aplicación:&nbsp;<span style=\"color: #000000;\">testini</span>.exe<br />&nbsp; Versión de la aplicación:&nbsp; &nbsp;<span style=\"color: #000000;\">0.0</span><span style=\"color: #000000;\">.0</span><span style=\"color: #000000;\">.0</span><br />&nbsp; Marca de tiempo de la aplicación:&nbsp; &nbsp; 63072c4d<br />&nbsp; Nombre del módulo con errores:&nbsp; &nbsp;<span style=\"color: #000000;\">testini</span>.exe<br />&nbsp; Versión del módulo con errores:&nbsp;<span style=\"color: #000000;\">0.0</span><span style=\"color: #000000;\">.0</span><span style=\"color: #000000;\">.0</span><br />&nbsp; Marca de tiempo del módulo con errores:&nbsp; 63072c4d<br />&nbsp; Código de excepción:&nbsp; &nbsp; <span style=\"color: #000000;\">c0000005</span><br />&nbsp; Desplazamiento de excepción:&nbsp;00023bd9<br />&nbsp; Versión del sistema operativo:&nbsp; &nbsp;<span style=\"color: #000000;\">6.1</span><span style=\"color: #000000;\">.7601</span><span style=\"color: #000000;\">.2</span><span style=\"color: #000000;\">.1</span><span style=\"color: #000000;\">.0</span><span style=\"color: #000000;\">.16</span><span style=\"color: #000000;\">.7</span><br />&nbsp; <span style=\"color: #0000ff;\">Id</span>. de configuración regional:&nbsp; &nbsp;<span style=\"color: #000000;\">3082</span><br />&nbsp; Información adicional <span style=\"color: #000000;\">1</span>:&nbsp;<span style=\"color: #000000;\">a4a6</span><br />&nbsp; Información adicional <span style=\"color: #000000;\">2</span>:&nbsp;<span style=\"color: #000000;\">a4a6d662ea50490d5d34aa5042d56e97</span><br />&nbsp; Información adicional <span style=\"color: #000000;\">3</span>:&nbsp;<span style=\"color: #000000;\">cb90</span><br />&nbsp; Información adicional <span style=\"color: #000000;\">4</span>:&nbsp;<span style=\"color: #000000;\">cb909b3739f584694cfad667b5d174a5</span><br /><br />Lea nuestra declaración de privacidad en línea:<br />&nbsp; <span style=\"color: #000000;\">http</span>:<span style=\"color: #B900B9;\">//go.microsoft.com/fwlink/?linkid=104288&clcid=0x0c0a</span><br /><br />Si la declaración de privacidad en línea no está disponible, lea la declaración de privacidad <span style=\"color: #0000ff;\">sin</span> conexión:<br />&nbsp; <span style=\"color: #000000;\">C</span>:\\Windows\\system32\\es-ES\\erofflps.txt<br />&nbsp;</div>[/code:x37pue8i]", "time": "09:04", "topic": "AppCrash Windows 7 al leer INI", "username": "fgondi" } ]
AppCrash Windows 7 al leer INI
[ { "date": "2022-08-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Fernando,\n\nEste es el código de la función GETPVPROFSTRING()\n\nPuede ser un desbordamiento de pila por el tamaño del buffer (16384). Prueba a poner cantidades mas pequeñas en el tamaño del buffer hasta que desaparezca el crash <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nRenombra la función para que puedas probarla facilmente sin tener que modificar las librerias de FWH\n\n[code=fw:mei49ql1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">#ifdef __HARBOUR__<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> GETPVPROFSTRING <span style=\"color: #000000;\">&#41;</span><br />#else<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> GETPVPROFS <span style=\"color: #000000;\">&#41;</span><br />#endif<br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp;BYTE bBuffer<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">16384</span> <span style=\"color: #000000;\">&#93;</span>;<br />&nbsp; &nbsp;WORD wLen;<br /><br />&nbsp; &nbsp;wLen = GetPrivateProfileString<span style=\"color: #000000;\">&#40;</span> hb_parc<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>, &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Section</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> HB_ISCHAR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>, hb_parc<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>, &nbsp; <span style=\"color: #B900B9;\">// Entry</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_parc<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span>, &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Default</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#40;</span> char * <span style=\"color: #000000;\">&#41;</span> bBuffer, &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Destination Buffer</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sizeof<span style=\"color: #000000;\">&#40;</span> bBuffer <span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">1</span>, &nbsp; <span style=\"color: #B900B9;\">// M x Len</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_parc<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>; &nbsp; <span style=\"color: #B900B9;\">// INI File</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> wLen <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; hb_retclen<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> char * <span style=\"color: #000000;\">&#41;</span> bBuffer, wLen <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; hb_retc<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:mei49ql1]", "time": "13:21", "topic": "AppCrash Windows 7 al leer INI", "username": "Antonio Linares" } ]
AppCrash Windows 7 al leer INI
[ { "date": "2022-08-25", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:rr23e7pf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">// MENU PRINCIPAL</span><br /><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">// Para Carregar a Ultima Tela Salva no Arquivo .INI chamar FundoWnd()</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> FILE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"FUNDO.INI\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;FUNDOWND<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Chamada ao fundo de tela Escolhida Pelo Usu rio. Muito Bom.</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp;NOME_ARQ := FCREATE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"FUNDO.INI\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;NREGISTRO := <span style=\"color: #ff0000;\">\"[MAIN]\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Tipo=1\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Style=BRICKS\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Cor=32768\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"File=.<span style=\"color: #000000;\">\\A</span>RANHA.BMP\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + CRLF+CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"[LOGO]\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"File=.<span style=\"color: #000000;\">\\L</span>ogo.bmp\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Row=10\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Col=10\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + CRLF+CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"[THANKS]\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Special Thanks = \"</span>+<span style=\"color: #ff0000;\">\"Ednaldo Rolim\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Propriet rio.. = \"</span>+<span style=\"color: #ff0000;\">\"JoÆo <!-- e --><a href=\"mailto:Santos-kapiabafwh@gmail.com.br\">Santos-kapiabafwh@gmail.com.br</a><!-- e -->\"</span>+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Meu Site:..... = \"</span>+<span style=\"color: #ff0000;\">\"Visite: <!-- w --><a class=\"postlink\" href=\"http://www.pleno.com.br\">www.pleno.com.br</a><!-- w -->\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + CRLF+CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Autor......... = \"</span>+<span style=\"color: #ff0000;\">\"JoÆo Santos - <!-- e --><a href=\"mailto:kapiabafwh@gmail.com.br\">kapiabafwh@gmail.com.br</a><!-- e -->\"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;FWRITE<span style=\"color: #000000;\">&#40;</span> NOME_ARQ, NREGISTRO <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;FCLOSE<span style=\"color: #000000;\">&#40;</span> NOME_ARQ <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;FUNDOWND<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Chamada ao fundo de tela Escolhida Pelo Usu rio. Muito Bom.</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp;<br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">// Enviado Por Ednaldo Rolim, Para Colocar o Logo em 23/11/2002</span><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">// nheight() = Pra Cima Pra Baixo &nbsp; &nbsp; &nbsp; = -235</span><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">// nWidth() &nbsp;= Pra Esquerda Pra Direita = -410</span><br /><br />&nbsp; &nbsp; WndCenter<span style=\"color: #000000;\">&#40;</span> oWndMain:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> WIN...<br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> FundoWnd<span style=\"color: #000000;\">&#40;</span> nOption, oWin, cWStyle, nWCor <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> oIni, oBrush, oBmp<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> nTipo, cStyle, nCor, cFile, cLogo, nRow, nCol, lSelect<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> cDiretor := GetPvProfString<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Settings\"</span>, <span style=\"color: #ff0000;\">\"SaveDir\"</span>, FilePath<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\F</span>UNDO.INI\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> cMascara := <span style=\"color: #ff0000;\">\"*.BMP\"</span>, oImage<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> Nome_Arq, nRegistro, oDlg, cMsg, cTexto<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> nResHoriz, nResVert<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">DEFAULT</span> nOption := <span style=\"color: #000000;\">0</span>, oWin := oWndMain:<span style=\"color: #000000;\">oWndClient</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nOption < <span style=\"color: #000000;\">0</span> .AND. nOption > <span style=\"color: #000000;\">4</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; INI oIni FILE <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\F</span>undo.ini\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">GET</span> nTipo &nbsp; &nbsp;SECTION <span style=\"color: #ff0000;\">\"MAIN\"</span> ENTRY <span style=\"color: #ff0000;\">\"Tipo\"</span> &nbsp;<span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #00C800;\">DEFAULT</span> <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">GET</span> cStyle &nbsp; SECTION <span style=\"color: #ff0000;\">\"MAIN\"</span> ENTRY <span style=\"color: #ff0000;\">\"Style\"</span> <span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #00C800;\">DEFAULT</span> <span style=\"color: #ff0000;\">\"Bricks\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">GET</span> nCor &nbsp; &nbsp; SECTION <span style=\"color: #ff0000;\">\"MAIN\"</span> ENTRY <span style=\"color: #ff0000;\">\"Cor\"</span> &nbsp; <span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #00C800;\">DEFAULT</span> &nbsp;nRGB<span style=\"color: #000000;\">&#40;</span> &nbsp; <span style=\"color: #000000;\">0</span>, &nbsp; <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">GET</span> cFile &nbsp; &nbsp;SECTION <span style=\"color: #ff0000;\">\"MAIN\"</span> ENTRY <span style=\"color: #ff0000;\">\"File\"</span> &nbsp;<span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #00C800;\">DEFAULT</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\A</span>ranha.bmp\"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">GET</span> cLogo &nbsp; &nbsp;SECTION <span style=\"color: #ff0000;\">\"LOGO\"</span> ENTRY <span style=\"color: #ff0000;\">\"File\"</span> &nbsp;<span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #00C800;\">DEFAULT</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\L</span>ogo.bmp\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">GET</span> nRow &nbsp; &nbsp; SECTION <span style=\"color: #ff0000;\">\"LOGO\"</span> ENTRY <span style=\"color: #ff0000;\">\"Row\"</span> &nbsp; <span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #00C800;\">DEFAULT</span> <span style=\"color: #000000;\">10</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">GET</span> nCol &nbsp; &nbsp; SECTION <span style=\"color: #ff0000;\">\"LOGO\"</span> ENTRY <span style=\"color: #ff0000;\">\"Col\"</span> &nbsp; <span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #00C800;\">DEFAULT</span> <span style=\"color: #000000;\">10</span><br />&nbsp; &nbsp; ENDINI<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nOption == <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; lSelect := .F.<br /><br />&nbsp; &nbsp; &nbsp;ELSEIF nOption == <span style=\"color: #000000;\">1</span> &nbsp;<span style=\"color: #B900B9;\">// Vem do Menu Principal, troca a BMP</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; nTipo &nbsp; := <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; lSelect := .T.<br /><br />&nbsp; &nbsp; &nbsp;ELSEIF nOption == <span style=\"color: #000000;\">2</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; cStyle &nbsp;:= cWStyle<br />&nbsp; &nbsp; &nbsp; &nbsp; nTipo &nbsp; := <span style=\"color: #000000;\">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; lSelect := .F.<br /><br />&nbsp; &nbsp; &nbsp;ELSEIF nOption == <span style=\"color: #000000;\">3</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; nCor &nbsp; &nbsp;:= nWCor<br />&nbsp; &nbsp; &nbsp; &nbsp; nTipo &nbsp; := <span style=\"color: #000000;\">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; lSelect := .F.<br /><br />&nbsp; &nbsp; &nbsp;ELSEIF nOption == <span style=\"color: #000000;\">4</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; nTipo &nbsp; := <span style=\"color: #000000;\">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; lSelect := .T.<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//---- Cria o Brush</span><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nTipo == <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> lSelect <span style=\"color: #B900B9;\">// No Windows 7, precisa estar como administrador senao...</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//cFile := SubStr( cGetFile( \"*.BMP\", \"Selecione o Arquivo Bitmap (.BMP)\" ), 1 )</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cFile := <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span> cGetFile<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"*.BMP\"</span>, <span style=\"color: #ff0000;\">\"Selecione o Arquivo Bitmap (.BMP)\"</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> Empty<span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// DEFINE BRUSH oBrush FILE cFile</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//SET BRUSH OF oWin TO oBrush // Modificado em: 20/04/2011</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; nResHoriz := oWndMain:<span style=\"color: #000000;\">nHorzRes</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// retorna a resolucao horizontal</span><br />&nbsp; &nbsp; &nbsp; &nbsp; nResVert &nbsp;:= &nbsp;oWndMain:<span style=\"color: #000000;\">nVertRes</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// retorna a resolucao vertical</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nResHoriz &nbsp; &nbsp; = <span style=\"color: #000000;\">1440</span> .AND. nResVert = <span style=\"color: #000000;\">900</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">1440</span>, <span style=\"color: #000000;\">668</span> <span style=\"color: #0000ff;\">OF</span> oWin <span style=\"color: #0000ff;\">ADJUST</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #0000ff;\">Progress</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; ELSEIF nResHoriz &nbsp; &nbsp; = <span style=\"color: #000000;\">1366</span> .AND. nResVert = <span style=\"color: #000000;\">768</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">1366</span>, <span style=\"color: #000000;\">668</span> <span style=\"color: #0000ff;\">OF</span> oWin <span style=\"color: #0000ff;\">ADJUST</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #0000ff;\">Progress</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; ELSEIF nResHoriz &nbsp; &nbsp; = <span style=\"color: #000000;\">1360</span> .AND. nResVert = <span style=\"color: #000000;\">768</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">1360</span>, <span style=\"color: #000000;\">668</span> <span style=\"color: #0000ff;\">OF</span> oWin <span style=\"color: #0000ff;\">ADJUST</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #0000ff;\">Progress</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; ELSEIF nResHoriz = <span style=\"color: #000000;\">1280</span> .AND. nResVert = <span style=\"color: #000000;\">768</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">1280</span>, <span style=\"color: #000000;\">668</span> <span style=\"color: #0000ff;\">OF</span> oWin <span style=\"color: #0000ff;\">ADJUST</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #0000ff;\">Progress</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; ELSEIF nResHoriz = <span style=\"color: #000000;\">1280</span> .AND. nResVert = <span style=\"color: #000000;\">720</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">1280</span>, <span style=\"color: #000000;\">668</span> <span style=\"color: #0000ff;\">OF</span> oWin <span style=\"color: #0000ff;\">ADJUST</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #0000ff;\">Progress</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; ELSEIF nResHoriz = <span style=\"color: #000000;\">1280</span> .AND. nResVert = <span style=\"color: #000000;\">960</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">1280</span>, <span style=\"color: #000000;\">668</span> <span style=\"color: #0000ff;\">OF</span> oWin <span style=\"color: #0000ff;\">ADJUST</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #0000ff;\">Progress</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; ELSEIF nResHoriz = <span style=\"color: #000000;\">1280</span> .AND. nResVert = <span style=\"color: #000000;\">800</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">1280</span>, <span style=\"color: #000000;\">668</span> <span style=\"color: #0000ff;\">OF</span> oWin <span style=\"color: #0000ff;\">ADJUST</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #0000ff;\">Progress</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; ELSEIF nResHoriz = <span style=\"color: #000000;\">1280</span> .AND. nResVert = <span style=\"color: #000000;\">720</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">1280</span>, <span style=\"color: #000000;\">668</span> <span style=\"color: #0000ff;\">OF</span> oWin <span style=\"color: #0000ff;\">ADJUST</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #0000ff;\">Progress</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; ELSEIF nResHoriz = <span style=\"color: #000000;\">1280</span> .AND. nResVert = <span style=\"color: #000000;\">600</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">1280</span>, <span style=\"color: #000000;\">668</span> <span style=\"color: #0000ff;\">OF</span> oWin <span style=\"color: #0000ff;\">ADJUST</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #0000ff;\">Progress</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; ELSEIF nResHoriz = <span style=\"color: #000000;\">1600</span> .AND. nResVert = <span style=\"color: #000000;\">1200</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">1600</span>, <span style=\"color: #000000;\">668</span> <span style=\"color: #0000ff;\">OF</span> oWin <span style=\"color: #0000ff;\">ADJUST</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #0000ff;\">Progress</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; ELSEIF nResHoriz = <span style=\"color: #000000;\">1680</span> .AND. nResVert = <span style=\"color: #000000;\">1050</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">1680</span>, <span style=\"color: #000000;\">668</span> <span style=\"color: #0000ff;\">OF</span> oWin <span style=\"color: #0000ff;\">ADJUST</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #0000ff;\">Progress</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; ELSEIF nResHoriz = <span style=\"color: #000000;\">2560</span> .AND. nResVert = <span style=\"color: #000000;\">1600</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">2560</span>, <span style=\"color: #000000;\">668</span> <span style=\"color: #0000ff;\">OF</span> oWin <span style=\"color: #0000ff;\">ADJUST</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #0000ff;\">Progress</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; ELSEIF nResHoriz = <span style=\"color: #000000;\">1024</span> .AND. nResVert = <span style=\"color: #000000;\">768</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> ISWINXP<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">1024</span>,<span style=\"color: #000000;\">668</span> <span style=\"color: #0000ff;\">OF</span> oWin <span style=\"color: #0000ff;\">ADJUST</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oImage:<span style=\"color: #0000ff;\">Progress</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">1024</span>,<span style=\"color: #000000;\">678</span> <span style=\"color: #0000ff;\">OF</span> oWin <span style=\"color: #0000ff;\">ADJUST</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oImage:<span style=\"color: #0000ff;\">Progress</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> ISWINXP<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">800</span>,<span style=\"color: #000000;\">500</span> <span style=\"color: #0000ff;\">OF</span> oWin <span style=\"color: #0000ff;\">ADJUST</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oImage:<span style=\"color: #0000ff;\">Progress</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">800</span>,<span style=\"color: #000000;\">510</span> <span style=\"color: #0000ff;\">OF</span> oWin <span style=\"color: #0000ff;\">ADJUST</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oImage:<span style=\"color: #0000ff;\">Progress</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp;ELSEIF nTipo == <span style=\"color: #000000;\">2</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush <span style=\"color: #0000ff;\">STYLE</span> <span style=\"color: #000000;\">&#40;</span> cStyle <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;ELSEIF nTipo == <span style=\"color: #000000;\">3</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> lSelect<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nCor := ChooseColor<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush <span style=\"color: #0000ff;\">COLOR</span> nCor<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//---- Estabelece o Brush da Janela</span><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nTipo != <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;SET <span style=\"color: #0000ff;\">BRUSH</span> <span style=\"color: #0000ff;\">OF</span> oWin <span style=\"color: #0000ff;\">TO</span> oBrush<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nOption != <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Grava no Arquivo INI as Modifica‡äes</span><br />&nbsp; &nbsp; &nbsp; &nbsp; INI oIni FILE <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\F</span>undo.ini\"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style=\"color: #ff0000;\">\"MAIN\"</span> ENTRY <span style=\"color: #ff0000;\">\"Tipo\"</span> &nbsp;<span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #0000ff;\">TO</span> nTipo<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style=\"color: #ff0000;\">\"MAIN\"</span> ENTRY <span style=\"color: #ff0000;\">\"Style\"</span> <span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #0000ff;\">TO</span> cStyle<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style=\"color: #ff0000;\">\"MAIN\"</span> ENTRY <span style=\"color: #ff0000;\">\"Cor\"</span> &nbsp; <span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #0000ff;\">TO</span> nCor<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style=\"color: #ff0000;\">\"MAIN\"</span> ENTRY <span style=\"color: #ff0000;\">\"File\"</span> &nbsp;<span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #0000ff;\">TO</span> cFile<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style=\"color: #ff0000;\">\"LOGO\"</span> ENTRY <span style=\"color: #ff0000;\">\"File\"</span> &nbsp;<span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #0000ff;\">TO</span> cLogo<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style=\"color: #ff0000;\">\"LOGO\"</span> ENTRY <span style=\"color: #ff0000;\">\"Row\"</span> &nbsp; <span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #0000ff;\">TO</span> nRow<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style=\"color: #ff0000;\">\"LOGO\"</span> ENTRY <span style=\"color: #ff0000;\">\"Col\"</span> &nbsp; <span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #0000ff;\">TO</span> nCol<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style=\"color: #ff0000;\">\"THANKS\"</span> ENTRY <span style=\"color: #ff0000;\">\"Special Thanks\"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"Ednaldo Rolim - <!-- e --><a href=\"mailto:ednaldorolim@uol.com.br\">ednaldorolim@uol.com.br</a><!-- e --> - My Friend\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style=\"color: #ff0000;\">\"THANKS\"</span> ENTRY <span style=\"color: #ff0000;\">\"Autor...\"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"JoÆo Santos &nbsp; - <!-- e --><a href=\"mailto:kapiabafwh@gmail.com.br\">kapiabafwh@gmail.com.br</a><!-- e -->\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style=\"color: #ff0000;\">\"THANKS\"</span> ENTRY <span style=\"color: #ff0000;\">\"Meu Site:.....\"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oIni <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"Visite: <!-- w --><a class=\"postlink\" href=\"http://www.pleno.com.br\">www.pleno.com.br</a><!-- w -->\"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; ENDINI<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// REINICIAR O PROGRAMA PARA ASSUMIR A NOVA TELA DE FUNDO</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nOption == <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Aten‡Æo Usu rio: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"</span> <span style=\"color: #000000;\">&#41;</span>+CRLF+ &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"PRECISO REINICIAR O PROGRAMA \"</span> <span style=\"color: #000000;\">&#41;</span>+CRLF+ &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Tecle <ENTER> Para Continuar \"</span> <span style=\"color: #000000;\">&#41;</span>, &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Tecle <Enter> Para Finalizar \"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MsgRun<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Desligando o Programa... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"Por Favor, Espere! &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> | oDlg | <span style=\"color: #000000;\">&#40;</span> DESLIGA_VENDAS<span style=\"color: #000000;\">&#40;</span> oDlg <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AEVAL<span style=\"color: #000000;\">&#40;</span>DIRECTORY<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"VENDAS.BAT\"</span> &nbsp; &nbsp; <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#123;</span> |aFILE| FERASE<span style=\"color: #000000;\">&#40;</span>aFILE<span style=\"color: #000000;\">&#91;</span>F_NAME<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> .NOT. FILE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"VENDAS.BAT\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NOME_ARQ := FCREATE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"VENDAS.BAT\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NREGISTRO := <span style=\"color: #ff0000;\">\"@ECHO OFF\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"CLS\"</span> &nbsp; &nbsp; &nbsp; &nbsp; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF + CRLF + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"VENDAS.EXE\"</span> &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF + CRLF + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"CLS\"</span> &nbsp; &nbsp; &nbsp; &nbsp; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"EXIT\"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FWRITE<span style=\"color: #000000;\">&#40;</span> NOME_ARQ, NREGISTRO <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FCLOSE<span style=\"color: #000000;\">&#40;</span> NOME_ARQ <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DbCloseAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WinExec<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"VENDAS.BAT\"</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;__Quit<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br />&nbsp;</div>[/code:rr23e7pf]\n\nRegards, saludos.", "time": "16:07", "topic": "AppCrash Windows 7 al leer INI", "username": "karinha" } ]
AppCrash Windows 7 al leer INI
[ { "date": "2022-08-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\n\nSólo con incluir esta función en el código fuente, ya funciona sin problemas.\nNo he tenido que cambiar el buffer\n\n[code=fw:2utbdxay]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#pragma</span> BEGINDUMP<br /><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><span style=\"color: #00D7D7;\">#include</span> <hbapi.h><br /><br /><span style=\"color: #00D7D7;\">#define</span> <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span>x,y,z<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span>x<span style=\"color: #000000;\">&#41;</span>?<span style=\"color: #000000;\">&#40;</span>y<span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\"><span style=\"color: #000000;\">&#40;</span>z</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />    <br />   #ifdef __HARBOUR__<br />       <span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> GETPVPROFSTRING <span style=\"color: #000000;\">&#41;</span><br />    #else<br />       <span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> GETPVPROFS <span style=\"color: #000000;\">&#41;</span><br />    #endif<br />    <span style=\"color: #000000;\">&#123;</span><br />       BYTE bBuffer<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">16384</span> <span style=\"color: #000000;\">&#93;</span>;<br />       WORD wLen;<br /><br />       wLen = GetPrivateProfileString<span style=\"color: #000000;\">&#40;</span> hb_parc<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>,     <span style=\"color: #B900B9;\">// Section</span><br />                                       <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> HB_ISCHAR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>, hb_parc<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>,   <span style=\"color: #B900B9;\">// Entry</span><br />                                       hb_parc<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span>,     <span style=\"color: #B900B9;\">// Default</span><br />                                       <span style=\"color: #000000;\">&#40;</span> char * <span style=\"color: #000000;\">&#41;</span> bBuffer,        <span style=\"color: #B900B9;\">// Destination Buffer</span><br />                                       sizeof<span style=\"color: #000000;\">&#40;</span> bBuffer <span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">1</span>,   <span style=\"color: #B900B9;\">// M x Len</span><br />                                       hb_parc<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;   <span style=\"color: #B900B9;\">// INI File</span><br />       <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> wLen <span style=\"color: #000000;\">&#41;</span><br />          hb_retclen<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> char * <span style=\"color: #000000;\">&#41;</span> bBuffer, wLen <span style=\"color: #000000;\">&#41;</span>;<br />       <span style=\"color: #00C800;\">else</span><br />          hb_retc<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span>;<br />    <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> ENDDUMP</div>[/code:2utbdxay]", "time": "09:49", "topic": "AppCrash Windows 7 al leer INI", "username": "fgondi" } ]
AppCrash Windows 7 al leer INI
[ { "date": "2019-12-24", "forum": "FiveWin for Harbour/xHarbour", "text": "hi,\n\nin many Sample i found \n[code=fw:12w751qz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">procedure AppSys  <span style=\"color: #B900B9;\">// XBase++ requirement</span><br /><span style=\"color: #00C800;\">return</span></div>[/code:12w751qz]\ni know what it is for Xbase++ but why i found it in FiveWin Sample <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\ni ask while i have exact that Problem <!-- s:!: --><img src=\"{SMILIES_PATH}/icon_exclaim.gif\" alt=\":!:\" title=\"Exclamation\" /><!-- s:!: --> with CMD Box under FinWin with my Sample.\n\nwhen start Short-Cut from Desktop\nwhen start from Total Commander or Explorer\n\nhere is the Code\n[code=fw:12w751qz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#define</span> Use_Gui<br /><br />#IFDEF __HARBOUR__<br />   #IFDEF Use_Gui<br />      <span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FIVEWIN.CH\"</span><br />   #ELSE<br />      REQUEST HB_GT_WIN_DEFAULT           <span style=\"color: #B900B9;\">// Console</span><br />      <span style=\"color: #00D7D7;\">#define</span> CRLF            CHR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">13</span><span style=\"color: #000000;\">&#41;</span>+CHR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />   #ENDIF<br />   <span style=\"color: #00D7D7;\">#define</span> WM_SETTEXT      0x000C<br />#ELSE<br />   <span style=\"color: #00D7D7;\">#define</span> CRLF            CHR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">13</span><span style=\"color: #000000;\">&#41;</span>+CHR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />#ENDIF<br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"DIRECTRY.CH\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"COMMON.CH\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"INKEY.CH\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FILEIO.CH\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> CVERSION <span style=\"color: #ff0000;\">'2.05.5'</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> nLineCount    := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">STATIC</span> nMasterCount  := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">STATIC</span> lLineContinue := .f.<br /><span style=\"color: #00C800;\">STATIC</span> lLastContinue := .f.<br /><span style=\"color: #00C800;\">STATIC</span> nStripComment := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">STATIC</span> lCommentMode  := .f.<br /><span style=\"color: #00C800;\">STATIC</span> oOutHandle<br /><span style=\"color: #00C800;\">STATIC</span> cFuncDiv<br /><span style=\"color: #00C800;\">STATIC</span> lDumpBuffer   := .f.<br /><span style=\"color: #00C800;\">STATIC</span> lMoreToGo     := .f.<br /><span style=\"color: #00C800;\">STATIC</span> aCommand      := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">STATIC</span> aCmdLogic     := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">STATIC</span> aFunction     := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">STATIC</span> cComCase<br /><span style=\"color: #00C800;\">STATIC</span> cFunCase<br /><span style=\"color: #00C800;\">STATIC</span> cBoolCase<br /><span style=\"color: #00C800;\">STATIC</span> nAlignMethod<br /><span style=\"color: #00C800;\">STATIC</span> nUnCase<br /><span style=\"color: #00C800;\">STATIC</span> nUnFor<br /><span style=\"color: #00C800;\">STATIC</span> nUnSequence<br /><span style=\"color: #00C800;\">STATIC</span> lVerbose<br /><span style=\"color: #00C800;\">STATIC</span> lMode5<br /><span style=\"color: #00C800;\">STATIC</span> nComntTab<br /><span style=\"color: #00C800;\">STATIC</span> lConvertSlash<br /><span style=\"color: #00C800;\">STATIC</span> lConvertStar<br /><span style=\"color: #00C800;\">STATIC</span> lConvertArray<br /><span style=\"color: #00C800;\">STATIC</span> lRemDupMTLine<br /><span style=\"color: #00C800;\">STATIC</span> lGotClass     := .f.<br /><span style=\"color: #00C800;\">STATIC</span> lDeflate1<br /><span style=\"color: #00C800;\">STATIC</span> lDeflate2<br /><span style=\"color: #00C800;\">STATIC</span> lDeflate3<br /><span style=\"color: #00C800;\">STATIC</span> lDeflate4<br /><span style=\"color: #00C800;\">STATIC</span> lDeflate5<br /><span style=\"color: #00C800;\">STATIC</span> nTabIf<br /><span style=\"color: #00C800;\">STATIC</span> nIndIf<br /><span style=\"color: #00C800;\">STATIC</span> nTabFor<br /><span style=\"color: #00C800;\">STATIC</span> nIndFor<br /><span style=\"color: #00C800;\">STATIC</span> nTabCase<br /><span style=\"color: #00C800;\">STATIC</span> nIndCase<br /><span style=\"color: #00C800;\">STATIC</span> nTabFunc<br /><span style=\"color: #00C800;\">STATIC</span> nIndFunc<br /><span style=\"color: #00C800;\">STATIC</span> nTabBegin<br /><span style=\"color: #00C800;\">STATIC</span> nIndBegin<br /><span style=\"color: #00C800;\">STATIC</span> nTabWhile<br /><span style=\"color: #00C800;\">STATIC</span> nIndWhile<br /><span style=\"color: #00C800;\">STATIC</span> nTabClass<br /><span style=\"color: #00C800;\">STATIC</span> lRestScrn<br /><span style=\"color: #00C800;\">STATIC</span> nMidScreen := <span style=\"color: #000000;\">15</span><br /><br />MEMVAR oStatusBox, oInBox, oOutBox, oFont<br />MEMVAR cStatusBox, cInBox, cOutBox, oForm, oProgress<br /><br />PROCEDURE AppSys<br /><span style=\"color: #00C800;\">RETURN</span><br /><br />PROCEDURE main<span style=\"color: #000000;\">&#40;</span> filespec <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> nTop    := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">LOCAL</span> nLeft   := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">LOCAL</span> nRight  := <span style=\"color: #000000;\">1024</span>   <span style=\"color: #B900B9;\">// ScreenWidth()</span><br /><span style=\"color: #00C800;\">LOCAL</span> nBottom := <span style=\"color: #000000;\">768</span>  <span style=\"color: #B900B9;\">// ScreenHeight()</span><br /><br /><span style=\"color: #00C800;\">PUBLIC</span> oStatusBox := <span style=\"color: #ff0000;\">\"\"</span><br /><span style=\"color: #00C800;\">PUBLIC</span> oInBox     := <span style=\"color: #ff0000;\">\"\"</span><br /><span style=\"color: #00C800;\">PUBLIC</span> oOutBox    := <span style=\"color: #ff0000;\">\"\"</span><br /><span style=\"color: #00C800;\">PUBLIC</span> oFont<br /><span style=\"color: #00C800;\">PUBLIC</span> oProgress<br /><span style=\"color: #00C800;\">PUBLIC</span> cStatusBox := <span style=\"color: #ff0000;\">\"\"</span><br /><span style=\"color: #00C800;\">PUBLIC</span> cInBox     := <span style=\"color: #ff0000;\">\"\"</span><br /><span style=\"color: #00C800;\">PUBLIC</span> cOutBox    := <span style=\"color: #ff0000;\">\"\"</span><br /><span style=\"color: #00C800;\">PUBLIC</span> oForm<br /><br />ALTD<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">DEFAULT</span> filespec <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">'*.PRG'</span><br /><br />#IFDEF Use_Gui<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ARIAL\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, - <span style=\"color: #000000;\">12</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oForm ;<br />        <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\" Click FiveWin Version\"</span> ;<br />        <span style=\"color: #0000ff;\">FROM</span> nTop, nLeft <span style=\"color: #0000ff;\">TO</span> nBottom, nRight <span style=\"color: #0000ff;\">PIXEL</span> ;<br />        NOMAXIMIZE ;<br />        <span style=\"color: #0000ff;\">MENU</span> BuildMenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   @  <span style=\"color: #000000;\">0</span>,  <span style=\"color: #000000;\">3</span> <span style=\"color: #0000ff;\">PROGRESS</span> oProgress <span style=\"color: #0000ff;\">OF</span> oForm <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">970</span>, <span style=\"color: #000000;\">20</span><br /><br />   @  <span style=\"color: #000000;\">0</span>, - <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">GET</span> oStatusBox <span style=\"color: #0000ff;\">VAR</span> cStatusBox ;<br />        <span style=\"color: #0000ff;\">OF</span> oForm ;<br />        MEMO ;<br />        <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">970</span>, <span style=\"color: #000000;\">150</span> ;<br />        <span style=\"color: #0000ff;\">FONT</span> oFont ;<br />        <span style=\"color: #0000ff;\">PIXEL</span><br /><br />   oStatusBox:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   @  <span style=\"color: #000000;\">0</span>, - <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">GET</span> oInBox <span style=\"color: #0000ff;\">VAR</span> cInBox ;<br />        <span style=\"color: #0000ff;\">OF</span> oForm ;<br />        MEMO ;<br />        <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">970</span>, <span style=\"color: #000000;\">250</span> ;<br />        <span style=\"color: #0000ff;\">FONT</span> oFont ;<br />        <span style=\"color: #0000ff;\">PIXEL</span><br /><br />   oInBox:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">190</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   @  <span style=\"color: #000000;\">0</span>, - <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">GET</span> oOutBox <span style=\"color: #0000ff;\">VAR</span> cOutBox ;<br />        MEMO ;<br />        <span style=\"color: #0000ff;\">FONT</span> oFont ;<br />        <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">970</span>, <span style=\"color: #000000;\">250</span> ;<br />        <span style=\"color: #0000ff;\">OF</span> oForm ;<br />        <span style=\"color: #0000ff;\">PIXEL</span><br /><br />   oOutBox:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">450</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oForm <span style=\"color: #0000ff;\">CENTER</span><br /><br />#ELSE<br />   StartClick<span style=\"color: #000000;\">&#40;</span> filespec <span style=\"color: #000000;\">&#41;</span><br />#ENDIF<br /><br /><span style=\"color: #00C800;\">RETURN</span><br /><br />PROCEDURE StartClick<span style=\"color: #000000;\">&#40;</span> filespec <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">RETURN</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> BuildMenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oMenu<br /><span style=\"color: #00C800;\">LOCAL</span> cPath := GetCurDir<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">MENU</span> oMenu<br />   <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&File\"</span><br />      <span style=\"color: #0000ff;\">MENU</span><br />      <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Directory\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"select Directory\"</span> ;<br />        <span style=\"color: #0000ff;\">ACTION</span> lay<span style=\"color: #000000;\">&#40;</span> cPath, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&CLICK\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"start Click\"</span> ;<br />        <span style=\"color: #0000ff;\">ACTION</span> StartClick<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Exit\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Exit Drag & Drop\"</span> ;<br />        <span style=\"color: #0000ff;\">ACTION</span> oForm:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">ENDMENU</span><br />      <span style=\"color: #B900B9;\">// oMenu:addmdi()                 // This is a standard windows menu</span><br />   <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Help\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Help on This Prgram\"</span><br />      <span style=\"color: #0000ff;\">MENU</span><br />      <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Contents\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Help on This Prgram\"</span><br />      <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Search for Help on...\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Help on This Prgram\"</span><br />      <span style=\"color: #0000ff;\">SEPARATOR</span><br />      <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&About\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Info About this Program\"</span> ;<br />        <span style=\"color: #0000ff;\">ACTION</span> MsgAbout<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"A&O\"</span>, <span style=\"color: #ff0000;\">\"Click for FiveWin\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">ENDMENU</span><br /><span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> oMenu<br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> Lay<span style=\"color: #000000;\">&#40;</span> cTemp, nFiles <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oDlg, oGet<br /><span style=\"color: #00C800;\">LOCAL</span> cINIfile := Space<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">80</span> <span style=\"color: #000000;\">&#41;</span><br /><br />IIF<span style=\"color: #000000;\">&#40;</span> !empty<span style=\"color: #000000;\">&#40;</span> cTemp <span style=\"color: #000000;\">&#41;</span>, cINIfile := <span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span>cTemp+Space<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">80</span> <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">80</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"CLICK Directory\"</span> ;<br />        <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">600</span>, <span style=\"color: #000000;\">150</span><br /><br />   @  <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1.5</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Directory\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">8</span><br />   @  <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1.0</span> <span style=\"color: #0000ff;\">GET</span> oGet <span style=\"color: #0000ff;\">VAR</span> cINIfile <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br />   @  <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1.0</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"open\"</span> ;<br />        <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> cTemp := CGETFOLDER<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Hello\"</span>,cINIfile<span style=\"color: #000000;\">&#41;</span>, ;<br />        <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> !Empty<span style=\"color: #000000;\">&#40;</span> cTemp <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#40;</span> cINIfile := cTemp, oGet:<span style=\"color: #0000ff;\">Refresh</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> <span style=\"color: #000000;\">&#41;</span><br /><br />   @  <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">21.5</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Start CLICK\"</span> <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hide</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, StartClick<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</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><br />   @  <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">43.0</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Exit\"</span> <span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:12w751qz]\n\nhere WIECMD.HBP\n[code=fw:12w751qz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">-I..\\..\\include<br />-L..\\..\\lib<br />-lfiveh<br />-lfivehc<br /><br />C:\\harbour\\contrib\\xhb\\xhb.hbc<br />C:\\harbour\\contrib\\hbwin\\hbwin.hbc<br />C:\\harbour\\contrib\\hbmzip\\hbmzip.hbc<br />C:\\harbour\\contrib\\hbziparc\\hbziparc.hbc<br /><br />WIECMD.PRG<br /> </div>[/code:12w751qz]\n\n[code=fw:12w751qz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">hbmk2 WIECMD.HBP -comp=bcc</div>[/code:12w751qz]\n\nif start from CMD BOX use SETFW.BAT\n\n[code=fw:12w751qz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">set bcdir=c:\\bcc7<br />set FWDIR=c:\\fwh<br />set fwh=c:\\fwh<br />set GT=gtgui<br />set HBDIR=c:\\harbour<br />set hdir=c:\\harbour<br />set hdirl=c:\\harbour\\lib<br />SET PATH=c:\\bcc7\\bin;%PATH%<br />SET INCLUDE=c:\\fwh\\include;%INCLUDE%<br /> </div>[/code:12w751qz]\nso what i'm doing wrong <!-- s:idea: --><img src=\"{SMILIES_PATH}/icon_idea.gif\" alt=\":idea:\" title=\"Idea\" /><!-- s:idea: --> \n\nhave a nice XMas", "time": "09:52", "topic": "AppSys Problem with Demo Code", "username": "Jimmy" } ]
AppSys Problem with Demo Code
[ { "date": "2019-12-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nYou have to remote such lines:\n\nprocedure AppSys // XBase++ requirement\nreturn\n\nYour code is compiled without errors in Harbour and FHW.", "time": "09:59", "topic": "AppSys Problem with Demo Code", "username": "MOISES" } ]
AppSys Problem with Demo Code
[ { "date": "2019-12-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n[quote=\"MOISES\":3d0fcjyv]\nYou have to remote such lines:\n[code=fw:3d0fcjyv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">procedure AppSys  <span style=\"color: #B900B9;\">// XBase++ requirement</span><br /><span style=\"color: #00C800;\">return</span><br /> </div>[/code:3d0fcjyv]\nYour code is compiled without errors in Harbour and FHW.[/quote:3d0fcjyv]\nplease try include Demo Code with *.HBP and hbmk2\n\nit does run <!-- s:!: --><img src=\"{SMILIES_PATH}/icon_exclaim.gif\" alt=\":!:\" title=\"Exclamation\" /><!-- s:!: --> in GUI but also <!-- s:? --><img src=\"{SMILIES_PATH}/icon_confused.gif\" alt=\":?\" title=\"Confused\" /><!-- s:? --> a CMD will open <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \nit have to do with Menu, that's why i include it so it is a full working FiveWin Sample which run on my PC and Tablet PC\n\nhave a nice Xmas", "time": "10:05", "topic": "AppSys Problem with Demo Code", "username": "Jimmy" } ]
AppSys Problem with Demo Code
[ { "date": "2019-12-24", "forum": "FiveWin for Harbour/xHarbour", "text": "I don´t have hbmk2\n\nI advise you to compile for starting with fwh\\samples\\buildh yourfile", "time": "10:14", "topic": "AppSys Problem with Demo Code", "username": "MOISES" } ]
AppSys Problem with Demo Code
[ { "date": "2019-12-24", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"MOISES\":37ap84w5]I don´t have hbmk2\nI advise you to compile for starting with fwh\\samples\\buildh yourfile[/quote:37ap84w5]\nyou need harbour \"Core-Master\" , which include HBMK2, with all LIBs and *.HBC like\n\n[code=fw:37ap84w5]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">C:\\harbour\\contrib\\xhb\\xhb.hbc<br />C:\\harbour\\contrib\\hbwin\\hbwin.hbc<br />C:\\harbour\\contrib\\hbmzip\\hbmzip.hbc<br />C:\\harbour\\contrib\\hbziparc\\hbziparc.hbc</div>[/code:37ap84w5]\nwhich FiveWin does not have.\n\nthis Demo is for Antonio who gave me the Hint and those Settings for *.HBP\n\nhave a nice Xmas", "time": "20:41", "topic": "AppSys Problem with Demo Code", "username": "Jimmy" } ]
AppSys Problem with Demo Code
[ { "date": "2019-12-26", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:2hrtl7ql]\nn many Sample i found\nCode:\nprocedure AppSys // XBase++ requirement\nreturn\n\ni know what it is for Xbase++ but why i found it in FiveWin Sample <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->\n[/quote:2hrtl7ql]\nBecause till a few years back, FWH was available for Xbase++ users also. These samples were made those days.\n\n[quote:2hrtl7ql]\ni know what it is for Xbase++ but why i found it in FiveWin Sample <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->\n\ni ask while i have exact that Problem <!-- s:!: --><img src=\"{SMILIES_PATH}/icon_exclaim.gif\" alt=\":!:\" title=\"Exclamation\" /><!-- s:!: --> with CMD Box under FinWin with my Sample.\n\nwhen start Short-Cut from Desktop\nwhen start from Total Commander or Explorer\n[/quote:2hrtl7ql]\n\nInclusion or not of the dummy procedure AppSys does not and logically can not make any such difference.\n\nIf properly compiled and linked, you will not get the dos box problem.\n\nI copied your program as it is into fwh\\samples folder with the nane \"jimmy1.prg\" and build with buildh.bat. Then I created a shortcut on the desktop. When I executed the shortcut, there is no such dos box and the window is displayed straight away.\n\n[url=https&#58;//imageshack&#46;com/i/plcmw3SRg:2hrtl7ql][img:2hrtl7ql]https&#58;//imagizer&#46;imageshack&#46;com/img921/8100/cmw3SR&#46;gif[/img:2hrtl7ql][/url:2hrtl7ql]\n\nIn future, whenever you get such doubts, please build your application with buildh.bat in the samples folder.\n\nPlease look into buildh.bat and take it as a template for preparing your link scripts.\n\n1) Include all the libraries in the buildh.bat.\n2) Include \"gtgui.lib\" but NOT \"gtwin.lib\"\n3) Ensure you use \"-aa\" flag in the ilink32 command.\n\nYou should not see the dosbox before executing the program.", "time": "18:36", "topic": "AppSys Problem with Demo Code", "username": "nageswaragunupudi" } ]
AppSys Problem with Demo Code
[ { "date": "2019-12-27", "forum": "FiveWin for Harbour/xHarbour", "text": "hi,\n\nThx for Answer,\n\n[quote=\"nageswaragunupudi\":1crr8b70]\nBecause till a few years back, FWH was available for Xbase++ users also. These samples were made those days.\n[/quote:1crr8b70]\ni was not aware that i can try to compile FiveWin Sample with Xbase++ ... hm ... <!-- s:idea: --><img src=\"{SMILIES_PATH}/icon_idea.gif\" alt=\":idea:\" title=\"Idea\" /><!-- s:idea: --> \nso i'm \"too late\" ...\n\ndoes those People have look on harbour before try to use there xBase Knowhow <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \ni saw some \"well known\" Name of Xbase++ Person. some have been working for Alaska before.\n\nthese People have all high Level ... but perhaps that was \"there\" Problem.\nthe Dream is to run Xbase++ Syntax with harbour \"without Work\" ... \"just\" inlcude some *.CH and LIB <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: --> \n\nit is also my Dream but my Way is Different while i try to find out what harbour already have and how to use it.\nbut it more difficult in FiveWin Environment for a Newbie to start so i have work first 100 Days most with HMG and its IDE.\n\n[quote=\"nageswaragunupudi\":1crr8b70]\nIn future, whenever you get such doubts, please build your application with buildh.bat in the samples folder.\nPlease look into buildh.bat and take it as a template for preparing your link scripts.\n[/quote:1crr8b70]\nso how to compile \"more\" that 1 File with buildh.bat when NOT use IDE <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\nthis was my Question and Antonio gave me those Setting using *.HBP and hbmk2.EXE\n[code=fw:1crr8b70]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">-I..\\..\\include<br />-L..\\..\\lib<br />-lfiveh<br />-lfivehc<br /><br />C:\\harbour\\contrib\\xhb\\xhb.hbc<br />C:\\harbour\\contrib\\hbwin\\hbwin.hbc<br />C:\\harbour\\contrib\\hbmzip\\hbmzip.hbc<br />C:\\harbour\\contrib\\hbziparc\\hbziparc.hbc<br /><br />CLICK2.PRG<br />... MORE<br /> </div>[/code:1crr8b70]\nit will not show Error when using IDE (for hole Project) so you need \"this\" *.HBP and harbour Way with hbmk2.EXE to produce the Behavior.\n\n[quote=\"nageswaragunupudi\":1crr8b70]\n1) Include all the libraries in the buildh.bat.\n2) Include \"gtgui.lib\" but NOT \"gtwin.lib\"\n3) Ensure you use \"-aa\" flag in the ilink32 command.\n[/quote:1crr8b70]\nad 1.) i like to compile/link hole Project ( 11 x *.PRG ) in CMD Box\nad 2.) hm .. i do not \"see\" GT* LIB <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> do i have to look into *.HBC <!-- s:idea: --><img src=\"{SMILIES_PATH}/icon_idea.gif\" alt=\":idea:\" title=\"Idea\" /><!-- s:idea: --> \nad 3.) em. äh ... is it again in BUILDh.BAT <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\nmy \"Problem\" with FivEdit is that it \"load\" Source (why ?)\nso when i \"edit\" same Source with \"My Editor\" FivEdit does not use \"new\" File.\nit does compile/link what FivEdit have \"load\" ...\n\nso i have still the Problem with FiveWin \"work Environment\" as Newbie ... there are 18 BUILD Files and so many Sample\n\n---\n\nQuestion : does\n[code=fw:1crr8b70]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">FUNCTION</span> HB_GTSYS<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span></div>[/code:1crr8b70]\nhave any function under FiveWin <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "01:24", "topic": "AppSys Problem with Demo Code", "username": "Jimmy" } ]
AppSys Problem with Demo Code
[ { "date": "2019-12-28", "forum": "FiveWin for Harbour/xHarbour", "text": "hi,\n\nhave found c:\\fwh\\makes\\bormake.zip <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\ninside is a *.MAK that i try to modify.\nFivEdit produce a B32.BC file so i try to use \"these\" LIB and i reduce it to 6 Error\n\n[quote:1466qrsk]'_HB_FUN_OCCURS' referenced from C:\\FWH\\LIB\\FIVEH.LIB|VALTOSTR\n'_hb_strAtI' referenced from C:\\FWH\\LIB\\FIVEH.LIB|VSTRFUN1\n'_HB_FUN_HB_BLEN' referenced from C:\\FWH\\LIB\\FIVEH.LIB|OLEFUNCS\n'_HB_FUN___OLEVARIANTNEW' referenced from C:\\FWH\\LIB\\FIVEH.LIB|ADOFUNCS\n'_hb_extIsNil' referenced from C:\\FWH\\LIB\\FIVEHC.LIB|RICHEDIT\n'_HB_FUN_HB_TSTOUTC' referenced from C:\\FWH\\LIB\\FIVEH.LIB|VALTOSTR\n[/quote:1466qrsk]\nbut there is (again) a funny think in FivEdit IDE : \ni don't have c:\\harbour\\lib ... i have c:\\harbour\\lib[size=150:1466qrsk]\\win\\bcc[/size:1466qrsk]\nbut FivEdit IDE produce a EXE while my *.MAK fail so what i'm missing   <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\n---\n\nfrom FivEdit IDE with wrong c:\\harbour\\lib path\n[code=fw:1466qrsk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">C:\\bcc7\\\\lib\\c0w32.obj +<br />C:\\fwh\\FIVEDIT\\Click2.obj +<br />C:\\fwh\\FIVEDIT\\Cmd_list.obj +<br />C:\\fwh\\FIVEDIT\\Declbust.obj +<br />C:\\fwh\\FIVEDIT\\Err_log.obj +<br />C:\\fwh\\FIVEDIT\\Filnpath.obj +<br />C:\\fwh\\FIVEDIT\\Functrak.obj +<br />C:\\fwh\\FIVEDIT\\Julian.obj +<br />C:\\fwh\\FIVEDIT\\Libread.obj +<br />C:\\fwh\\FIVEDIT\\Nicedate.obj +<br />C:\\fwh\\FIVEDIT\\Obufread.obj +<br />C:\\fwh\\FIVEDIT\\Obufwrit.obj +<br />C:\\fwh\\FIVEDIT\\Prb_ampm.obj +<br />C:\\fwh\\FIVEDIT\\Prb_pop.obj +<br />C:\\fwh\\FIVEDIT\\Prb_prop.obj +<br />C:\\fwh\\FIVEDIT\\Prb_stak.obj +<br />C:\\fwh\\FIVEDIT\\Profile.obj +<br />C:\\fwh\\FIVEDIT\\Qsort.obj +<br />C:\\fwh\\FIVEDIT\\Readlist.obj +<br />C:\\fwh\\FIVEDIT\\Readlnk.obj +<br />C:\\fwh\\FIVEDIT\\Token.obj +<br />C:\\fwh\\FIVEDIT\\Xbase.obj, +<br />C:\\FWH\\SAMPLES\\<span style=\"color: #000000;\">3</span>\\CLICK2.exe, +<br />, +<br />C:\\fwh\\lib\\fiveh.lib  +<br />C:\\fwh\\lib\\fivehc.lib  +<br />C:\\fwh\\lib\\libcurl.lib  +<br />  c:\\harbour\\lib\\hbwin.lib  +<br />c:\\harbour\\lib\\gtgui.lib  +<br />c:\\harbour\\lib\\hbrtl.lib  +<br />c:\\harbour\\lib\\hbvm.lib  +<br />c:\\harbour\\lib\\hblang.lib  +<br />c:\\harbour\\lib\\hbmacro.lib  +<br />c:\\harbour\\lib\\hbrdd.lib  +<br />c:\\harbour\\lib\\rddntx.lib  +<br />c:\\harbour\\lib\\rddcdx.lib  +<br />c:\\harbour\\lib\\rddfpt.lib  +<br />c:\\harbour\\lib\\hbsix.lib  +<br />c:\\harbour\\lib\\hbdebug.lib  +<br />c:\\harbour\\lib\\hbcommon.lib  +<br />c:\\harbour\\lib\\hbpp.lib  +<br />c:\\harbour\\lib\\hbcpage.lib  +<br />c:\\harbour\\lib\\hbcplr.lib  +<br />c:\\harbour\\lib\\hbct.lib  +<br />c:\\harbour\\lib\\hbpcre.lib  +<br />c:\\harbour\\lib\\xhb.lib  +<br />c:\\harbour\\lib\\hbziparc.lib  +<br />c:\\harbour\\lib\\hbmzip.lib  +<br />c:\\harbour\\lib\\hbzlib.lib  +<br />c:\\harbour\\lib\\minizip.lib  +<br />c:\\harbour\\lib\\png.lib  +<br />c:\\harbour\\lib\\hbcurl.lib  +<br />c:\\harbour\\lib\\hbusrrdd.lib  +<br />c:\\harbour\\lib\\hbtip.lib  +<br />c:\\harbour\\lib\\hbmxml.lib  +<br />c:\\harbour\\lib\\hbmisc.lib  +<br />C:\\bcc7\\lib\\cw32.lib  +<br />C:\\bcc7\\lib\\uuid.lib  +<br />C:\\bcc7\\lib\\import32.lib  +<br />C:\\bcc7\\lib\\psdk\\odbc32.lib  +<br />C:\\bcc7\\lib\\psdk\\nddeapi.lib  +<br />C:\\bcc7\\lib\\psdk\\Iphlpapi.lib  +<br />C:\\bcc7\\lib\\psdk\\msimg32.lib  +<br />C:\\bcc7\\lib\\psdk\\psapi.lib  +<br />C:\\bcc7\\lib\\psdk\\rasapi32.lib  +<br />C:\\bcc7\\lib\\psdk\\gdiplus.lib  +<br />C:\\bcc7\\lib\\psdk\\riched20.lib  +<br />C:\\bcc7\\lib\\psdk\\shell32.lib  +<br />C:\\bcc7\\lib\\psdk\\urlmon.lib,<br /> </div>[/code:1466qrsk]\n\nmy result that look for me the same\n[code=fw:1466qrsk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">c:\\bcc7\\lib\\c0w32.obj + <br />obj\\CLICK2.obj   obj\\CMD_LIST.obj   obj\\DECLBUST.obj   obj\\ERR_LOG.obj   obj\\FILNPATH.obj   obj\\FUNCTRAK.obj   obj\\JULIAN.obj   obj\\LIBREAD.obj   obj\\NICEDATE.obj   obj\\OBUFREAD.obj   obj\\OBUFWRIT.obj   obj\\PRB_AMPM.obj   obj\\PRB_POP.obj   obj\\PRB_PROP.obj   obj\\PRB_STAK.obj   obj\\PROFILE.obj   obj\\QSORT.obj   obj\\READLIST.obj   obj\\READLNK.obj   obj\\TOKEN.obj   obj\\XBASE.obj , + <br />CLICK3.exe, + <br />CLICK3.map, + <br />c:\\fwh\\lib\\FiveH.lib c:\\fwh\\lib\\FiveHC.lib + C:\\fwh\\lib\\libcurl.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbwin.lib + <br />c:\\harbour\\lib\\win\\bcc\\gtgui.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbrtl.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbvm.lib + <br />c:\\harbour\\lib\\win\\bcc\\hblang.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbmacro.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbrdd.lib + <br />c:\\harbour\\lib\\win\\bcc\\rddntx.lib + <br />c:\\harbour\\lib\\win\\bcc\\rddcdx.lib + <br />c:\\harbour\\lib\\win\\bcc\\rddfpt.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbsix.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbdebug.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbcommon.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbpp.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbcpage.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbcplr.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbct.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbpcre.lib + <br />c:\\harbour\\lib\\win\\bcc\\xhb.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbziparc.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbmzip.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbzlib.lib + <br />c:\\harbour\\lib\\win\\bcc\\minizip.lib + <br />c:\\harbour\\lib\\win\\bcc\\png.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbcurl.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbusrrdd.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbtip.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbmxml.lib + <br />c:\\harbour\\lib\\win\\bcc\\hbmisc.lib + <br />c:\\bcc7\\lib\\cw32.lib + <br />c:\\bcc7\\lib\\uuid.lib + <br />c:\\bcc7\\lib\\import32.lib + <br />c:\\bcc7\\lib\\psdk\\odbc32.lib + <br />c:\\bcc7\\lib\\psdk\\nddeapi.lib + <br />c:\\bcc7\\lib\\psdk\\iphlpapi.lib + <br />c:\\bcc7\\lib\\psdk\\msimg32.lib + <br />c:\\bcc7\\lib\\psdk\\psapi.lib + <br />c:\\bcc7\\lib\\psdk\\rasapi32.lib + <br />c:\\bcc7\\lib\\psdk\\gdiplus.lib + <br />c:\\bcc7\\lib\\psdk\\riched20.lib + <br />c:\\bcc7\\lib\\psdk\\shell32.lib + <br />c:\\bcc7\\lib\\psdk\\urlmon.lib, <br />CLICK2.res <br /> </div>[/code:1466qrsk]\nyou can compare it easy while i sort it in exact same Way so scroll both Code to compare.\n\nCLICK2.MAK\n[code=fw:1466qrsk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">#Borland make sample, <span style=\"color: #000000;\">&#40;</span>c<span style=\"color: #000000;\">&#41;</span> FiveTech Software <span style=\"color: #000000;\">2005</span><span style=\"color: #000000;\">-2009</span><br /><br />HBDIR=c:\\harbour<br />BCDIR=c:\\bcc7<br />FWDIR=c:\\fwh<br /><br />#change these paths as needed<br />.path.OBJ = .\\obj<br />.path.PRG = .\\<br />.path.CH  = $<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 />.path.C   = .\\<br />.path.rc  = .\\<br /><br />#important: <span style=\"color: #000000;\">Use</span> Uppercase <span style=\"color: #00C800;\">for</span> filenames extensions, in the <span style=\"color: #00C800;\">next</span> two rules!<br /><br />PRG =        \\<br />CLICK2.PRG   \\<br />CMD_LIST.PRG \\<br />DECLBUST.PRG \\<br />ERR_LOG.PRG  \\<br />FILNPATH.PRG \\<br />FUNCTRAK.PRG \\<br />JULIAN.PRG   \\<br />LIBREAD.PRG  \\<br />NICEDATE.PRG \\<br />OBUFREAD.PRG \\<br />OBUFWRIT.PRG \\<br />PRB_AMPM.PRG \\<br />PRB_POP.PRG  \\<br />PRB_PROP.PRG \\<br />PRB_STAK.PRG \\<br />PROFILE.PRG  \\<br />QSORT.PRG    \\<br />READLIST.PRG \\<br />READLNK.PRG  \\<br />TOKEN.PRG    \\<br />XBASE.PRG<br /><br />PROJECT    : <span style=\"color: #000000;\">CLICK3</span>.EXE<br /><br />CLICK3.exe  : $<span style=\"color: #000000;\">&#40;</span>PRG:.PRG=.OBJ<span style=\"color: #000000;\">&#41;</span> $<span style=\"color: #000000;\">&#40;</span>C:.C=.OBJ<span style=\"color: #000000;\">&#41;</span> CLICK2.res<br />   echo off<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\c0w32.obj + > b32.bc<br />   echo obj\\CLICK2.obj   \\<br />        obj\\CMD_LIST.obj \\<br />        obj\\DECLBUST.obj \\<br />        obj\\ERR_LOG.obj  \\<br />        obj\\FILNPATH.obj \\<br />        obj\\FUNCTRAK.obj \\<br />        obj\\JULIAN.obj   \\<br />        obj\\LIBREAD.obj  \\<br />        obj\\NICEDATE.obj \\<br />        obj\\OBUFREAD.obj \\<br />        obj\\OBUFWRIT.obj \\<br />        obj\\PRB_AMPM.obj \\<br />        obj\\PRB_POP.obj  \\<br />        obj\\PRB_PROP.obj \\<br />        obj\\PRB_STAK.obj \\<br />        obj\\PROFILE.obj  \\<br />        obj\\QSORT.obj    \\<br />        obj\\READLIST.obj \\<br />        obj\\READLNK.obj  \\<br />        obj\\TOKEN.obj    \\<br />        obj\\XBASE.obj , + >> b32.bc<br />   echo CLICK3.exe, + >> b32.bc<br />   echo CLICK3.map, + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>FWDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\FiveH.lib $<span style=\"color: #000000;\">&#40;</span>FWDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\FiveHC.lib + C:\\fwh\\lib\\libcurl.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbwin.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\gtgui.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbrtl.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbvm.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hblang.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbmacro.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbrdd.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\rddntx.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\rddcdx.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\rddfpt.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbsix.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbdebug.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbcommon.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbpp.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbcpage.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbcplr.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbct.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbpcre.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\xhb.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbziparc.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbmzip.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbzlib.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\minizip.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\png.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbcurl.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbusrrdd.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbtip.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbmxml.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\hbmisc.lib  + >> b32.bc<br /><br />   rem Uncomment these two lines <span style=\"color: #0000ff;\">to</span> use Advantage RDD<br />   rem echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\rddads.lib + >> b32.bc<br />   rem echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\win\\bcc\\Ace32.lib + >> b32.bc<br /><br />   rem was *.HBC but dupe<br />   rem echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbct.lib      + >> b32.bc<br />   rem echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbtip.lib     + >> b32.bc<br />   rem echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbwin.lib     + >> b32.bc<br />   rem echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbfship.lib   + >> b32.bc<br />   rem echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbxpp.lib     + >> b32.bc<br />   rem echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbmzip.lib    + >> b32.bc<br />   rem echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbziparc.lib  + >> b32.bc<br /><br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\cw32.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\uuid.lib  +  >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\import32.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\odbc32.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\nddeapi.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\iphlpapi.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\msimg32.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\psapi.lib  +  >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\rasapi32.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\gdiplus.lib  +  >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\riched20.lib  +  >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\shell32.lib  +  >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\urlmon.lib,  >> b32.bc<br /><br />   <span style=\"color: #00C800;\">IF</span> EXIST CLICK2.res echo CLICK2.res >> b32.bc<br />   $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\bin\\ilink32 -Gn -aa -Tpe -s @b32.bc<br />   del b32.bc<br /><br />.PRG.OBJ:<br />  $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\bin\\harbour $< /L /N /W /Oobj\\ /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 />  $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\bin\\bcc32 -c -tWM -I$<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\include -oobj\\$& obj\\$&.c<br /><br />.C.OBJ:<br />  echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp<br />  echo -I$<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\include;$<span style=\"color: #000000;\">&#40;</span>FWDIR<span style=\"color: #000000;\">&#41;</span>\\include >> tmp<br />  $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\bin\\bcc32 -oobj\\$& @tmp $&.c<br />  del tmp<br /><br />CLICK2.res : <span style=\"color: #000000;\">CLICK2</span>.rc<br />  $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\bin\\brc32.exe -r CLICK2.rc</div>[/code:1466qrsk]\nand GO.BAT\n[code=fw:1466qrsk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">if</span> not exist obj md obj<br />c:\\bcc7\\bin\\make.exe -fCLICK2.mak<br /> </div>[/code:1466qrsk]\nplease help to get rid of last 6 Error and tell me where they come from <!-- s:idea: --><img src=\"{SMILIES_PATH}/icon_idea.gif\" alt=\":idea:\" title=\"Idea\" /><!-- s:idea: -->", "time": "02:51", "topic": "AppSys Problem with Demo Code", "username": "Jimmy" } ]
AppSys Problem with Demo Code
[ { "date": "2019-12-28", "forum": "FiveWin for Harbour/xHarbour", "text": "hm ...\n\ni just have \"delete\" all (wrong) harbour LIBs in FivEdit IDE and add new from LIB\\WIN\\BCC\nnow i got same Error like *.MAK file\n\n[quote:25qqqw0q]Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc.\nError: Unresolved external '_HB_FUN_OCCURS' referenced from C:\\FWH\\LIB\\FIVEH.LIB|VALTOSTR\nError: Unresolved external '_hb_strAtI' referenced from C:\\FWH\\LIB\\FIVEH.LIB|VSTRFUN1\nError: Unresolved external '_HB_FUN_HB_BLEN' referenced from C:\\FWH\\LIB\\FIVEH.LIB|OLEFUNCS\nError: Unresolved external '_HB_FUN___OLEVARIANTNEW' referenced from C:\\FWH\\LIB\\FIVEH.LIB|ADOFUNCS\nError: Unresolved external '_hb_extIsNil' referenced from C:\\FWH\\LIB\\FIVEHC.LIB|RICHEDIT\nError: Unresolved external '_HB_FUN_HB_TSTOUTC' referenced from C:\\FWH\\LIB\\FIVEH.LIB|VALTOSTR\nError: Unable to perform link\nLink Error \n[/quote:25qqqw0q]\nso it work with EMPTY \\LIB but fail with right LIB\\WIN\\BCC <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "05:43", "topic": "AppSys Problem with Demo Code", "username": "Jimmy" } ]
AppSys Problem with Demo Code
[ { "date": "2019-12-28", "forum": "FiveWin for Harbour/xHarbour", "text": "hi,\n\nnow i have change in *.MAK all back to same like FivEdit C:\\harbour\\lib and now no Error when Compile / Link <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n[code=fw:27c7i1oo]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">#Borland make sample, <span style=\"color: #000000;\">&#40;</span>c<span style=\"color: #000000;\">&#41;</span> FiveTech Software <span style=\"color: #000000;\">2005</span><span style=\"color: #000000;\">-2019</span><br /><br />HBDIR=c:\\harbour<br />BCDIR=c:\\bcc7<br />FWDIR=c:\\fwh<br /><br />#change these paths as needed<br />.path.OBJ = .\\obj<br />.path.PRG = .\\<br />.path.CH  = $<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 />.path.C   = .\\<br />.path.rc  = .\\<br /><br />#important: <span style=\"color: #000000;\">Use</span> Uppercase <span style=\"color: #00C800;\">for</span> filenames extensions, in the <span style=\"color: #00C800;\">next</span> two rules!<br /><br />PRG =        \\<br />CLICK2.PRG   \\<br />CMD_LIST.PRG \\<br />DECLBUST.PRG \\<br />ERR_LOG.PRG  \\<br />FILNPATH.PRG \\<br />FUNCTRAK.PRG \\<br />JULIAN.PRG   \\<br />LIBREAD.PRG  \\<br />NICEDATE.PRG \\<br />OBUFREAD.PRG \\<br />OBUFWRIT.PRG \\<br />PRB_AMPM.PRG \\<br />PRB_POP.PRG  \\<br />PRB_PROP.PRG \\<br />PRB_STAK.PRG \\<br />PROFILE.PRG  \\<br />QSORT.PRG    \\<br />READLIST.PRG \\<br />READLNK.PRG  \\<br />TOKEN.PRG    \\<br />XBASE.PRG<br /><br />PROJECT    : <span style=\"color: #000000;\">CLICK2</span>.EXE<br /><br />CLICK2.exe  : $<span style=\"color: #000000;\">&#40;</span>PRG:.PRG=.OBJ<span style=\"color: #000000;\">&#41;</span> $<span style=\"color: #000000;\">&#40;</span>C:.C=.OBJ<span style=\"color: #000000;\">&#41;</span> CLICK2.res<br />   echo off<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\c0w32.obj + > b32.bc<br />   echo obj\\CLICK2.obj   \\<br />        obj\\CMD_LIST.obj \\<br />        obj\\DECLBUST.obj \\<br />        obj\\ERR_LOG.obj  \\<br />        obj\\FILNPATH.obj \\<br />        obj\\FUNCTRAK.obj \\<br />        obj\\JULIAN.obj   \\<br />        obj\\LIBREAD.obj  \\<br />        obj\\NICEDATE.obj \\<br />        obj\\OBUFREAD.obj \\<br />        obj\\OBUFWRIT.obj \\<br />        obj\\PRB_AMPM.obj \\<br />        obj\\PRB_POP.obj  \\<br />        obj\\PRB_PROP.obj \\<br />        obj\\PRB_STAK.obj \\<br />        obj\\PROFILE.obj  \\<br />        obj\\QSORT.obj    \\<br />        obj\\READLIST.obj \\<br />        obj\\READLNK.obj  \\<br />        obj\\TOKEN.obj    \\<br />        obj\\XBASE.obj , + >> b32.bc<br />   echo CLICK3.exe, + >> b32.bc<br />   echo CLICK3.map, + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>FWDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\FiveH.lib $<span style=\"color: #000000;\">&#40;</span>FWDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\FiveHC.lib + C:\\fwh\\lib\\libcurl.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbwin.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\gtgui.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbrtl.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbvm.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hblang.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbmacro.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbrdd.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\rddntx.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\rddcdx.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\rddfpt.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbsix.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbdebug.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbcommon.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbpp.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbcpage.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbcplr.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbct.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbpcre.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\xhb.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbziparc.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbmzip.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbzlib.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\minizip.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\png.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbcurl.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbusrrdd.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbtip.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbmxml.lib  + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\hbmisc.lib  + >> b32.bc<br /><br />   rem Uncomment these two lines <span style=\"color: #0000ff;\">to</span> use Advantage RDD<br />   rem echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\rddads.lib + >> b32.bc<br />   rem echo $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\Ace32.lib + >> b32.bc<br /><br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\cw32.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\uuid.lib  +  >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\import32.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\odbc32.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\nddeapi.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\iphlpapi.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\msimg32.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\psapi.lib  +  >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\rasapi32.lib + >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\gdiplus.lib  +  >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\riched20.lib  +  >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\shell32.lib  +  >> b32.bc<br />   echo $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\urlmon.lib,  >> b32.bc<br /><br />   <span style=\"color: #00C800;\">IF</span> EXIST CLICK2.res echo CLICK2.res >> b32.bc<br />   $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\bin\\ilink32 -Gn -aa -Tpe -s @b32.bc<br />   del b32.bc<br /><br />.PRG.OBJ:<br />  $<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\bin\\harbour $< /L /N /W /Oobj\\ /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 />  $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\bin\\bcc32 -c -tWM -I$<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\include -oobj\\$& obj\\$&.c<br /><br />CLICK2.res : <span style=\"color: #000000;\">CLICK2</span>.rc<br />  $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\bin\\brc32.exe -r CLICK2.rc</div>[/code:27c7i1oo]\ni do not use external \"C\" Code so i do not include\n[code=fw:27c7i1oo]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">.C.OBJ:<br />  echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp<br />  echo -I$<span style=\"color: #000000;\">&#40;</span>HBDIR<span style=\"color: #000000;\">&#41;</span>\\include;$<span style=\"color: #000000;\">&#40;</span>FWDIR<span style=\"color: #000000;\">&#41;</span>\\include >> tmp<br />  $<span style=\"color: #000000;\">&#40;</span>BCDIR<span style=\"color: #000000;\">&#41;</span>\\bin\\bcc32 -oobj\\$& @tmp $&.c<br />  del tmp</div>[/code:27c7i1oo]\nperhaps this was the Difference to Original Sample c:\\fwh\\makes\\bormake.zip\n\nso far all is fine and App work ... BUT i still have a DOS BOX <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: -->\ni will try to make a new Demo with \"this\" Type of *.MAK", "time": "06:23", "topic": "AppSys Problem with Demo Code", "username": "Jimmy" } ]
AppSys Problem with Demo Code
[ { "date": "2016-01-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi\nI just test small program from my old code to new FWH version.\nAppear Empty paper?\n[img:30vn37us]http&#58;//www&#46;fivetech&#46;com&#46;tw/downloads/TReport%20problem&#46;jpg[/img:30vn37us]", "time": "11:26", "topic": "Appear Empty paper when use TReport", "username": "richard-service" } ]
Appear Empty paper when use TReport
[ { "date": "2016-01-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Richard,\n\nIt looks like your report is printing too close to the bottom margin which is causing a page feed. You can try changing the margins in the printer setup or changing them in the program code.\n\nRegards,\nJames\n\n------------------------\nUse the method \"margin\" to change the default 0.2 inch margins.\n \n TReport::Margin( nValue, nType, nScale ) --> nil\n \n Modify any of the top, left, bottom & right report margins.\n \n nValue The value of the new margin to be used. Default is 0.2.\n \n nType The type of margin to be changed:\n \n LEFT 1 (default)\n TOP 4\n RIGHT 2\n BOTTOM 5\n \n nScale Inches or centimeters to be used:\n \n INCHES 1 (default)\n CENTIMETERS 2\n \n\nUse the manifest constants:\n\nRPT_LEFT\nRPT_RIGHT\t\nRPT_TOP\nRPT_BOTTOM\n\n----------------------------", "time": "18:23", "topic": "Appear Empty paper when use TReport", "username": "James Bott" } ]
Appear Empty paper when use TReport
[ { "date": "2016-01-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Richard,\nI fixed these problem for me like this:\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=31090&p=179578&hilit=oreport#p179578\">viewtopic.php?f=3&t=31090&p=179578&hilit=oreport#p179578</a><!-- l -->\n\nBest regards,\nOtto", "time": "20:41", "topic": "Appear Empty paper when use TReport", "username": "Otto" } ]
Appear Empty paper when use TReport
[ { "date": "2016-01-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi James, Otto\n\nThanks a lot for help me.\nThe problem be solved.", "time": "03:00", "topic": "Appear Empty paper when use TReport", "username": "richard-service" } ]
Appear Empty paper when use TReport
[ { "date": "2016-01-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Can the issue be solved by suitably setting top and bottom margins by\n\noRep:Margin( nPixels, RPT_BOTTOM, 0 )\nand\noRep:Margin( nPixels, RPT_TOP, 0 )\n?", "time": "15:09", "topic": "Appear Empty paper when use TReport", "username": "nageswaragunupudi" } ]
Appear Empty paper when use TReport
[ { "date": "2018-12-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi\nI had old FWH compiled app, when run it and press EXIT button.\nI got GPF error message below:\n\nFiveWin for Harbour GPF occurred\nCalled from UNNITIALIZE_OLE(181)\nCalled from UNNITIALIZE_OLE(181)\n\nI had to use OLE function.\n\nAny idea for welcome!!", "time": "12:51", "topic": "Appear GPF", "username": "richard-service" } ]
Appear GPF
[ { "date": "2008-10-27", "forum": "FiveWin for Harbour/xHarbour", "text": "I have a client with a large volume of new records daily. We are starting to have problems where a newly appended record is disappearing. What is the best way to handle append blank in a network environment. Currently, we have been using the sample below without a problem, but my client may have many instances where users are requesting APPEND BLANK at the same time. \r\n\r\nSELECT tools\r\nAPPEND BLANK\r\n\r\nThank you in advance for your assistance.", "time": "21:46", "topic": "Append Blank question", "username": "cdmmaui" } ]
Append Blank question
[ { "date": "2008-10-27", "forum": "FiveWin for Harbour/xHarbour", "text": "cdmmaui\r\n\r\nThere are two things you can do :\r\n\r\n1) dbCommit()\r\n2) GoTo recno()\r\n\r\ndbCommit is supposed to do a 'hard disk' write .. however it is un-acceptibly slow if you are appending lots of records in a loop.. If you are just adding one record at a time dbCommit is your answer. If you are appending lots of records in a loop .. I use GoTo Recno() after you append the last field .. then at the end of the loop .. a dbCommit()\r\n\r\nRick Lipkin", "time": "22:09", "topic": "Append Blank question", "username": "Rick Lipkin" } ]
Append Blank question
[ { "date": "2008-10-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Rick,\r\n\r\nThank You", "time": "22:14", "topic": "Append Blank question", "username": "cdmmaui" } ]
Append Blank question
[ { "date": "2008-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "cdmmaui,\r\n\r\nin a network environment it is dangerous not to check for neterr().\r\nHere a module i use for append in networks.\r\n\r\nexample:\r\n\r\n[code:d22wp1u3]\n#define WAIT_SECONDS 2\n\n if lNetAddRec&#40; \"tools\" &#41;\n ? \"New record was appended&#46;\"\n else\n ? \"Network error! No record appended&#46;\"\n endif\n\n\n/////////////////////////////\nFUNCTION lNetAddRec&#40; cAlias &#41;\n/////////////////////////////\n\n\n do while &#46;t&#46;\n if lAddRec&#40; WAIT_SECONDS, cAlias &#41;\n RETURN &#46;t&#46;\n endif\n\n if alert &#40; \"Could not append a new record&#46;;\", &#123; \"Try again\", \"Cancel\" &#125; &#41; != 1\n RETURN &#46;f&#46; \n endif\n enddo\nRETURN &#46;f&#46; \n\n////////////////////////////////////\nFUNCTION lAddRec&#40; nSeconds, cAlias &#41;\n////////////////////////////////////\n\n\n do while nSeconds > 0 \n &#40; cAlias &#41;->&#40; dbAppend&#40;&#41; &#41;\n \n if !neterr&#40;&#41;\n RETURN &#46;t&#46;\n endif\n \n inkey&#40; &#46;5 &#41;\n\n nSeconds -= 0&#46;5\n\t enddo\nRETURN &#46;f&#46;\n[/code:d22wp1u3]\r\nIMPORTANT: you must unlock the new record when you are ready editing it: [b:d22wp1u3] tools->( dbUnLock() )[/b:d22wp1u3]\r\n\r\nMaybe this could help you.\r\n\r\nRegards,\r\nDetlef", "time": "10:20", "topic": "Append Blank question", "username": "Detlef Hoefner" } ]
Append Blank question
[ { "date": "2008-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Darrell\r\n\r\nYou may also want to take a look at these articles. This info is from my notes and I didn't check to see if the links are still valid.\r\n\r\nRegards,\r\nJames\r\n\r\n-----------------------------\r\n4/27/2005 7:08 AM\r\n\r\nWindows' Oppontunistic Locking\r\n\r\nIs well described at:\r\n<!-- m --><a class=\"postlink\" href=\"http://www.dataaccess.com/whitepapers/opportunlockingreadcaching.html\">http://www.dataaccess.com/whitepapers/o ... ching.html</a><!-- m -->\r\n\r\nThere are some programs for testing network op locking and for updating the registry here:\r\n\r\n<!-- m --><a class=\"postlink\" href=\"http://drouillard.ca/Tips&Tricks/Samba/Oplocks.html\">http://drouillard.ca/Tips&Tricks/Samba/Oplocks.html</a><!-- m -->", "time": "19:44", "topic": "Append Blank question", "username": "James Bott" } ]
Append Blank question
[ { "date": "2008-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank You for the information", "time": "02:47", "topic": "Append Blank question", "username": "cdmmaui" } ]
Append Blank question
[ { "date": "2005-12-18", "forum": "FiveWin for Pocket PC", "text": "Antonio,\n\nI use in my program Append From commands (17.12.2005 version). When it function is invoked with cdx driver FwPpc show error:\nLockFile() not supported in PocketPc.\nAppend with ntx driver work ok.\n\nSample:\n[code:lp34f7ec]\n Request DbfCdx\n Request DbfFpt\n RddSetDefault &#40;'DbfCdx'&#41;\n Request Hb_Lang_PLWIN\n Request Hb_CodePage_PLWIN\n\n Set Century On\n Set Epoch To 1995\n Set Date German\n Set Deleted On\n Hb_LangSelect &#40;'PL'&#41;\n Hb_SetCodePage &#40;'PLWIN'&#41;\n\n Use T1 New\n Copy Structure To T2\n T1->&#40;DbCloseArea &#40;&#41;&#41;\n Use T2 New\n Append From &#40;'T1'&#41; All\n T2->&#40;DbCloseArea &#40;&#41;&#41;\n[/code:lp34f7ec]\n\nRegards\nPawel", "time": "10:54", "topic": "Append From", "username": "pawelu" } ]
Append From
[ { "date": "2005-12-18", "forum": "FiveWin for Pocket PC", "text": "Pawel,\n\nBut is the APPEND ... properly performed ? Does the DBF change ? Thanks.", "time": "13:26", "topic": "Append From", "username": "Antonio Linares" } ]
Append From
[ { "date": "2005-12-18", "forum": "FiveWin for Pocket PC", "text": "Antonio,\n\nYes, this method was previous properly. In this way I recreate table after change structure. First I create new table and append records from original table (with set deleted off statements). This method was very fast.\nIn this moment I change append from to dbappend() function.\n\nPawel", "time": "15:26", "topic": "Append From", "username": "pawelu" } ]
Append From
[ { "date": "2005-12-18", "forum": "FiveWin for Pocket PC", "text": "Antonio,\n\nprobably I find, error LockFile is show in this situation:\n- dbf is open eg. use table new without index file\n- index file exists when table is open\n- when append from invoked, fw show error\nwhen index dosn't exists append from work ok\n\n[code:1mjs98mq]\nuse test1 new // without index file, index test1&#46;cdx exists\ncopy structure to test2\ntest1->&#40;dbclosearea &#40;&#41;&#41;\nuse test2 new\nappend from &#40;'test1'&#41; all\ntest2->&#40;dbclosearea &#40;&#41;&#41;\n[/code:1mjs98mq]\n\nPawel", "time": "16:09", "topic": "Append From", "username": "pawelu" } ]
Append From
[ { "date": "2005-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Sabeis si está funcionando 100% en harbour, o da problemas??\nGracias.\n\nEl tema es que el mismo proceso en Clipper me va bien pero en Harbour me lanza un GPF y por ahí anda un Append From.\n\nGracias.", "time": "20:06", "topic": "Append From", "username": "AngelSalom" } ]
Append From
[ { "date": "2005-12-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Dejarlo estar, ya está solucionado.\nTenía una dbf con un nombre de campo duplicado y cascaba.", "time": "16:13", "topic": "Append From", "username": "AngelSalom" } ]
Append From
[ { "date": "2019-09-02", "forum": "FiveWin for Harbour/xHarbour", "text": "a sample of append from ( two dbf same structure) \n\nthanks", "time": "23:09", "topic": "Append From- RESOLVED", "username": "Silvio.Falconi" } ]
Append From- RESOLVED
[ { "date": "2019-09-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\nUSE test1 EXCLUSIVE\nAPPEND FROM test2\nCLOSE DATABASES\n\nUSE test1\nxbrowse()\n\nSaludos", "time": "01:47", "topic": "Append From- RESOLVED", "username": "wmormar" } ]
Append From- RESOLVED
[ { "date": "2019-09-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\nI think You changed to TDatabase\n\n[color=#0000FF:22nsgp9l]oData := TDatabase():New( , \"CUST1\", \"DBFCDX\", .F. ) // exclusive\noData:use()\n// AppendFrom( cFile, aFields, bFor, bWhile, nNext, nRec, lRest )\noData:AppendFrom( \"CUST2\" )\noData:Close()\noData := TDatabase():New( , \"CUST1\", \"DBFCDX\", .T. ) // shared\noData:use()\nxBrowse(oData)[/color:22nsgp9l]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "08:46", "topic": "Append From- RESOLVED", "username": "ukoenig" } ]
Append From- RESOLVED
[ { "date": "2019-09-03", "forum": "FiveWin for Harbour/xHarbour", "text": "thanks i wish tdatabase\nthe function of conversion of dbf also not run ok and i tried also with tdatabase while with normal ( silvio->) it is ok\nthis afternoon i will try it", "time": "14:51", "topic": "Append From- RESOLVED", "username": "Silvio.Falconi" } ]
Append From- RESOLVED
[ { "date": "2019-09-03", "forum": "FiveWin for Harbour/xHarbour", "text": "RESOLVED \nNOT NEED APPEND FROM\nnow I can converte all database on my dbf <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->", "time": "15:50", "topic": "Append From- RESOLVED", "username": "Silvio.Falconi" } ]
Append From- RESOLVED
[ { "date": "2010-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nI have a program that import some information from a text-file with the append from SDF command.\nFrom time to time it doesn't import all records.\nHere is the test-code:\n[code=fw:18tzir8b]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#INCLUDE</span> <span style=\"color: #ff0000;\">\"fivewin.CH\"</span><br />REQUEST DBFCDX<br /><span style=\"color: #00C800;\">FUNCTION</span> test<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> vstruct:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />   RDDSETDEFAULT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"DBFCDX\"</span><span style=\"color: #000000;\">&#41;</span><br />   dbstructuur:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />   aadd<span style=\"color: #000000;\">&#40;</span>vstruct,<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'LINE'</span>,<span style=\"color: #ff0000;\">'C'</span>,<span style=\"color: #000000;\">199</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br />   dbcreate<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'import.tmp'</span>,vstruct<span style=\"color: #000000;\">&#41;</span><br />   use <span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'import.tmp'</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">new</span><br />   appe <span style=\"color: #0000ff;\">from</span> test.txt sdf<br />   go top<br />   browse<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:18tzir8b]\n\nHere is the text-file that can't be imported completly. It allways stops at the same record, and I can't find out why.\n[url:18tzir8b]http&#58;//www&#46;vms&#46;be/FWTest/test&#46;txt[/url:18tzir8b]\nCan someone try this?\nMy last record is allways:\n[b:18tzir8b]<Artikelcode>SCTATC</Artikelcode>[/b:18tzir8b]\n\nI use FW710.\n\nThanks,\nMarc", "time": "20:38", "topic": "Append SDF error", "username": "Marc Vanzegbroeck" } ]
Append SDF error
[ { "date": "2010-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Marc,\n\nTo my opinion, your TEST.TXT-file is an XML-file.\nI don't think you can add data to your DBF-file by using SDF.", "time": "01:36", "topic": "Append SDF error", "username": "driessen" } ]
Append SDF error
[ { "date": "2010-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Michel,\n\nThis file is indead an xml-file. But this is also a text-file. So why can't he import it, and why always on the same line? It's only with this file. Most other xml-files give no problem.\nI head this problem also before when importing prg-files. Most of them are imported complete, other not...\n\nI also try it with clipper52 and also with foxpro, and then the file is imported without any problem!!!\n\nRegards,\nMarc", "time": "09:04", "topic": "Append SDF error", "username": "Marc Vanzegbroeck" } ]
Append SDF error
[ { "date": "2010-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Marc,\n\nIt is working fine here. I copied the text.txt from within IE. I wonder if there is some special character after the last line you are getting. Take a look at the original file with a hex editor, or zip it and send it to me at jbott at compuserve dot com.\n\nI am using FWH 10.8/xHarbour.\n\nRegards,\nJames", "time": "17:11", "topic": "Append SDF error", "username": "James Bott" } ]
Append SDF error
[ { "date": "2010-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\nFile send.\n\nRegards,\nMarc", "time": "19:48", "topic": "Append SDF error", "username": "Marc Vanzegbroeck" } ]
Append SDF error
[ { "date": "2010-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "For those interested in the solution, I found that if I appended a space to the end of each line in the text.txt file, then APPENDed it, it works fine. I have no idea why this is needed, but it is a viable workaround.\n\nRegards,\nJames", "time": "20:19", "topic": "Append SDF error", "username": "James Bott" } ]
Append SDF error
[ { "date": "2010-11-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Can you make a little sample and try it with Clipper? If it were a real bug I would report it to the developers list.\n\nEMG", "time": "11:38", "topic": "Append SDF error", "username": "Enrico Maria Giordano" } ]
Append SDF error
[ { "date": "2010-11-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nLike I already explained in previous message, in clipper52 it work just fine.\n\nHere is the link of the text-file in zip format.\n[url:1yv1wawm]http&#58;//www&#46;vms&#46;be/FWTest/test&#46;zip[/url:1yv1wawm]\n\nRegards,\nMarc", "time": "12:42", "topic": "Append SDF error", "username": "Marc Vanzegbroeck" } ]
Append SDF error
[ { "date": "2010-11-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Marc,\nThe fields in TEST.TXT are separated by hex \"0A\".\nIf they are before treted by an text editor and saved, the separator becomes \"0D0A\" and then it works right. It could be a xHarbour error. \nOnly tested with xHarbour Compiler build 1.0.0 (SimpLex)\nRegards, Euclides", "time": "13:16", "topic": "Append SDF error", "username": "Euclides" } ]
Append SDF error
[ { "date": "2010-11-06", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Marc Vanzegbroeck\":3qcnkllj]Enrico,\n\nLike I already explained in previous message, in clipper52 it work just fine.\n\nHere is the link of the text-file in zip format.\n[url]http::/www.vms.be/FWTest/test.zip[/url]\n\nRegards,\nMarc[/quote:3qcnkllj]\n\nThank you. I'm looking at the sample...\n\nEMG", "time": "13:28", "topic": "Append SDF error", "username": "Enrico Maria Giordano" } ]
Append SDF error
[ { "date": "2010-11-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Ok, I reported it to the developers list. I tried to fix the problem but it's really too much complicated for me, sorry.\n\nEMG", "time": "13:55", "topic": "Append SDF error", "username": "Enrico Maria Giordano" } ]
Append SDF error
[ { "date": "2010-11-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Euclides,\n\nThanks for the info.\n\nI use now this code as workaround.\n\n[code=fw:3mtjj796]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#INCLUDE</span> <span style=\"color: #ff0000;\">\"fivewin.CH\"</span><br />REQUEST DBFCDX<br /><span style=\"color: #00C800;\">FUNCTION</span> test<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> vstruct:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;memowrit<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'test.tmp'</span>,strtran<span style=\"color: #000000;\">&#40;</span>memoread<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'test.txt'</span><span style=\"color: #000000;\">&#41;</span>,chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span>,chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">13</span><span style=\"color: #000000;\">&#41;</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;RDDSETDEFAULT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"DBFCDX\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;dbstructuur:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aadd<span style=\"color: #000000;\">&#40;</span>vstruct,<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'LINE'</span>,<span style=\"color: #ff0000;\">'C'</span>,<span style=\"color: #000000;\">199</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;dbcreate<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'import.tmp'</span>,vstruct<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;use <span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'import.tmp'</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">new</span><br /><br />&nbsp; &nbsp;appe <span style=\"color: #0000ff;\">from</span> test.tmp sdf<br />&nbsp; &nbsp;go top<br />&nbsp; &nbsp;browse<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:3mtjj796]\n\nRegards,\nMarc", "time": "16:16", "topic": "Append SDF error", "username": "Marc Vanzegbroeck" } ]
Append SDF error
[ { "date": "2010-11-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Euclides,\n\n[quote:1aagyho3]The fields in TEST.TXT are separated by hex \"0A\".\nIf they are before treted by an text editor and saved, the separator becomes \"0D0A\" and then it works right. It could be a xHarbour error. \n[/quote:1aagyho3]\n\nWhen I look at the file the fields ARE separated by 0D0A already, so I don't think that is the problem.\n\nJames", "time": "18:36", "topic": "Append SDF error", "username": "James Bott" } ]
Append SDF error
[ { "date": "2010-11-09", "forum": "FiveWin for Harbour/xHarbour", "text": "The bug has been fixed by Vicente Guerra in the xHarbour CVS.\n\nEMG", "time": "09:25", "topic": "Append SDF error", "username": "Enrico Maria Giordano" } ]
Append SDF error
[ { "date": "2010-11-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nThanks for getting that done.\n\nJames", "time": "15:53", "topic": "Append SDF error", "username": "James Bott" } ]
Append SDF error
[ { "date": "2010-11-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks Enrico,\n\nWill this be available in the next release of xharbour, or can I already link the new function?\n\nRegards,\nMarc", "time": "22:42", "topic": "Append SDF error", "username": "Marc Vanzegbroeck" } ]
Append SDF error
[ { "date": "2010-11-09", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Marc Vanzegbroeck\":ufh4tvt7]Thanks Enrico,\n\nWill this be available in the next release of xharbour,[/quote:ufh4tvt7]\n\nSure.\n\n[quote=\"Marc Vanzegbroeck\":ufh4tvt7]or can I already link the new function?[/quote:ufh4tvt7]\n\nNo, you have to build xHarbour from CVS.\n\nEMG", "time": "22:56", "topic": "Append SDF error", "username": "Enrico Maria Giordano" } ]
Append SDF error
[ { "date": "2006-01-20", "forum": "FiveWin for Harbour/xHarbour", "text": "I am using FWH 2.5 when I have an append line as follows the program crashes.\n\n...\nUSE Tmp\nappend from (FileName) SDF\n...\n\nThe error I get is DBFNTX/1021 Data Width Error\nCalled from Fieldput(0)\nCalled from __DBSDF(196)\n...\n\nHowever if I use the same code in Clipper\nthe append works correctly.\n\nIs there an issue with the append command in FWH 2.5?\n\nThanks,\n\nVytas", "time": "15:33", "topic": "Append SDF fails", "username": "Vytas" } ]
Append SDF fails