topic
stringlengths
1
63
text
stringlengths
1
577k
App Termination and Relaunch.
Dear Byron, You may try: ShellExecute( 0, "open", "yourapp.exe" ) __Quit()
App Termination and Relaunch.
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: 1. Terminate the Current Instance: 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. 2. Relaunch the Application: After terminating the current instance, you can use one of the following methods to relaunch your application: a. `ShellExecute`: ```cpp #include <Windows.h> int main() { // Terminate the current instance // Relaunch the application ShellExecute(NULL, L"open", L"your_app.exe", NULL, NULL, SW_SHOWNORMAL); return 0; } ``` In this example, replace `"your_app.exe"` with the path to your application's executable. b. `CreateProcess`: ```cpp #include <Windows.h> int main() { // Terminate the current instance // Relaunch the application STARTUPINFO si = { sizeof(STARTUPINFO) }; PROCESS_INFORMATION pi; if (CreateProcess(NULL, L"your_app.exe", NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) { CloseHandle(pi.hProcess); CloseHandle(pi.hThread); } return 0; } ``` Again, replace `"your_app.exe"` with the path to your application's executable. Depending on your specific requirements, you may need to pass command-line arguments or adjust other parameters when relaunching your application. Remember 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.
App Termination and Relaunch.
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: 1. Create a text file with a `.bat` extension, such as `restart_my_app.bat`. 2. Edit the batch file using a text editor like Notepad, and add the following commands: ```batch @echo off taskkill /F /IM your_app.exe start "" "C:\path\to\your_app.exe" ``` Replace `"C:\path\to\your_app.exe"` with the actual path to your application's executable. Here's what these commands do: - `@echo off`: This command turns off the command echoing in the batch file, so the commands themselves won't be displayed on the console. - `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. - `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. Save the batch file after editing. 3. 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. Keep 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.
App Termination and Relaunch.
You can do this: Run an external program from your program -upg.exe () [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] From your program upg.exe () you launch your application, and upg.??? closing [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]
App Termination and Relaunch.
Simples, [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] Regards, saludos.
App a runtime error return to last function not quit app?
Hi, When we meet app runtime errors,could we return to last called from function intead of quit app? for example: Function a1() define dialog odlg resource "odlg" redefine button id 101 of odlg action a2() activate dialog odlg return function a2() local n1:=1/0 // local n1:="aaa"+2 return Click id 101 button only shows a runtime error ,then return to a1 odlg. Our customers feel this will be better than quit the app. Best Regard! Shuming Wang
App a runtime error return to last function not quit app?
Shuming, You can modify FWH\source\function\errsysw.prg
App a runtime error return to last function not quit app?
Antonio, Thank you! Shuming Wang
App as service default path
Is no one using FWH / Harbour to build a Windows service ? I would think someone must have encountered this issue. The 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. Surely someone has ideas on this.
App as service default path
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\ ). When run as an application, it checks the current drive and directory and creates a cPath variable that points to the data file. When 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. I 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 ). The easiest solution would be to get the service to know where it's file is located, and set it's path accordingly. Any suggestions on to get this accomplished within the service startup code ? Thanks.
App en DropBox?
Amigos: Alguien que tenga experiencia sobre montar una de nuestras aplicaciones, usando Mysql como motor, y quiera compartir su experiencia??? Alguna hebra por donde tirar? Saludos
App en DropBox?
Up!
App quits on error without showing error Windows 7
To All I 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. I 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. So 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. I 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. Here 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: --> Rick Lipkin [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]
App quits on error without showing error Windows 7
Do you use errsysw_.prg or the modified errsysw.prg that was published here as an enhancement? When 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 . // GDF Mod Error 02/05/2015 //hLogo = FWBitMap() hLogo = FWLogoBitMap() // GDF EndMod Error 02/05/2015
App quits on error without showing error Windows 7
Gale I have no modified programs .. just using the FWH libs <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> Rick
App quits on error without showing error Windows 7
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.
App quits on error without showing error Windows 7
Just a follow up .. when I run buildx tutor01 on my WinXP machine I get this error : [code=fw:2nl39gyy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿<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] but it works just fine on my Windows 7 machine. Rick Lipkin
App quits on error without showing error Windows 7
Hello, Do you have an hb_out.log file?. Harbour creates it when happens your problem.
App quits on error without showing error Windows 7
<!-- 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 -->
App quits on error without showing error Windows 7
To All Elvira, I am using xHarbour and no file what so ever is being created .. the application just abruptly quits. Hmpaquito, I read your thread and it seems to point to SqlRDD and I am not using any additional libs .. just standard FWH I 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: --> Rick Lipkin
App quits on error without showing error Windows 7
No Rick, what I mean is that you record calls at the beginning of ErrorSys so: [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]
App quits on error without showing error Windows 7
Another problem I had when upgraded was that some functions related to ADS were not automatically included. My app exited without any error message. Previously I just needed Request ADS, DBFCDX But I found that I had to add the following to keep my app from crashing. external adsgetrelkeypos, ADSSetRelKeyPos, ADSKeyCount I don't know why upgrading Fivewin would have affected my RDD functions.
App quits on error without showing error Windows 7
To All I 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. That 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 ). After 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. For whatever reason, Xp was a bit more (dos ) forgiving or I would have found this error sooner. Thanks to all for their help and advice. Rick Lipkin
App quits on error without showing error Windows 7
[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. Previously I just needed Request ADS, DBFCDX But I found that I had to add the following to keep my app from crashing. external adsgetrelkeypos, ADSSetRelKeyPos, ADSKeyCount I don't know why upgrading Fivewin would have affected my RDD functions.[/quote:2aovw51t] Earlier, we had to include "xbrowse.ch" separately. If ads.ch was included prior to xbrowse.ch, then xbrowse.ch automatically requests these ads* functions. Please see these lines at the end of xbrowse.ch: [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] But 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. if you are still have the program header like this: #include "fivewin.ch" #include "ads..ch" #include "xbrowse.ch" then I suggest this small modification in the copy of xbrowse.ch you have. Please see at the end of xbrowse.ch [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] Change these lines as: [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]
App quits on error without showing error Windows 7
Thank you for the explanation.
App. for devellopment and maintenance of DBF
Is there a sample out here that has some of the folowing functions insite. I 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 Also a list of the indexes and tags would help. If there is a working sample, I would be great.... else i try to make it from scratch.
App. for devellopment and maintenance of DBF
Mark, I 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. Regards, James
App. for devellopment and maintenance of DBF
[quote="Marc Venken":1jsgfyap]Is there a sample out here that has some of the folowing functions insite. I 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 Also a list of the indexes and tags would help. If there is a working sample, I would be great.... else i try to make it from scratch.[/quote:1jsgfyap] Interesting. We will provide soon.
App. for devellopment and maintenance of DBF
These applications are named "data dictionary" My 2 cents of merkel money
App.Ini vs Web.Config
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? Thanks,
App.Ini vs Web.Config
Hi, I think you can write/read yiur file config like a usual file. And for example you can use memowrit/memoread for it C.
App.Ini vs Web.Config
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.
App.Ini vs Web.Config
Byron, You can do [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]
App.Ini vs Web.Config
Below is a minimal web.config example from Microsoft Support. <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.web> </system.web> </configuration>
App.Path
How do I get application path in FW? Thanks in advance Otto
App.Path
[quote="Otto":n6rxokhp]How do I get application path in FW? Thanks in advance Otto[/quote:n6rxokhp] cFilePath( GetModuleFileName( GetInstance( ) ) )
App.Path
Thank you, Richard.
AppCrash Windows 7 al leer INI
Hola, Estoy complilando con la última version de FWH, Harbour y VS2022 Al trabajar con un INI en Windows 7 o Windows Server 2008, la aplicación devuelve un AppCrash. En Windows 10, 11 o Server de versión superior, funciona sin problemas. He probado con \Samples\TestIni.prg y también casca. En concreto casca en la primera llamada Get [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] el hbp que uso para construir el ejecutable es: [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] [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]
AppCrash Windows 7 al leer INI
Fernando, Por favor comprueba si se genera un fichero hb_out.log y copia el contenido aqui, gracias
AppCrash Windows 7 al leer INI
Hola, No genera el archivo hb_out.log Casca en la lectura del primer valor [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]
AppCrash Windows 7 al leer INI
Aparece algun error en pantalla o simplemente la aplicación termina ?
AppCrash Windows 7 al leer INI
Testini.exe dejo de funcionar [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]
AppCrash Windows 7 al leer INI
Hola, Un error recursivo podria estar generando ese problema Una 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 [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]
AppCrash Windows 7 al leer INI
Hola, Aun así sigue apereciendo el appcrash y no muestra ningún mensaje de error [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]
AppCrash Windows 7 al leer INI
Fernando, Por favor prueba a llamar la función del API de Windows directamente: MsgInfo( GetPvProfString( cSection, cEntry, cValToChar( uDefault ), cIniFile ) ) y comprueba si sucede lo mismo. gracias
AppCrash Windows 7 al leer INI
[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] No muestra ningún error adiccional. Aparece el print a y luego sigue apareciendo el appcrash No llega al print b [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]
AppCrash Windows 7 al leer INI
Fernando, Este es el código de la función GETPVPROFSTRING() Puede 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:-) --> Renombra la función para que puedas probarla facilmente sin tener que modificar las librerias de FWH [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]
AppCrash Windows 7 al leer INI
[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] Regards, saludos.
AppCrash Windows 7 al leer INI
Hola, Sólo con incluir esta función en el código fuente, ya funciona sin problemas. No he tenido que cambiar el buffer [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]
AppSys Problem with Demo Code
hi, in many Sample i found [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] i 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:?: --> i 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. when start Short-Cut from Desktop when start from Total Commander or Explorer here is the Code [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] here WIECMD.HBP [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] [code=fw:12w751qz]<div class="fw" id="{CB}" style="font-family: monospace;">hbmk2 WIECMD.HBP -comp=bcc</div>[/code:12w751qz] if start from CMD BOX use SETFW.BAT [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] so what i'm doing wrong <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: --> have a nice XMas
AppSys Problem with Demo Code
Hi, You have to remote such lines: procedure AppSys // XBase++ requirement return Your code is compiled without errors in Harbour and FHW.
AppSys Problem with Demo Code
Hi, [quote="MOISES":3d0fcjyv] You have to remote such lines: [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] Your code is compiled without errors in Harbour and FHW.[/quote:3d0fcjyv] please try include Demo Code with *.HBP and hbmk2 it 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: --> it 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 have a nice Xmas
AppSys Problem with Demo Code
I don´t have hbmk2 I advise you to compile for starting with fwh\samples\buildh yourfile
AppSys Problem with Demo Code
[quote="MOISES":37ap84w5]I don´t have hbmk2 I advise you to compile for starting with fwh\samples\buildh yourfile[/quote:37ap84w5] you need harbour "Core-Master" , which include HBMK2, with all LIBs and *.HBC like [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] which FiveWin does not have. this Demo is for Antonio who gave me the Hint and those Settings for *.HBP have a nice Xmas
AppSys Problem with Demo Code
[quote:2hrtl7ql] n many Sample i found Code: procedure AppSys // XBase++ requirement return i 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:?: --> [/quote:2hrtl7ql] Because till a few years back, FWH was available for Xbase++ users also. These samples were made those days. [quote:2hrtl7ql] i 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:?: --> i 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. when start Short-Cut from Desktop when start from Total Commander or Explorer [/quote:2hrtl7ql] Inclusion or not of the dummy procedure AppSys does not and logically can not make any such difference. If properly compiled and linked, you will not get the dos box problem. I 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. [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] In future, whenever you get such doubts, please build your application with buildh.bat in the samples folder. Please look into buildh.bat and take it as a template for preparing your link scripts. 1) Include all the libraries in the buildh.bat. 2) Include "gtgui.lib" but NOT "gtwin.lib" 3) Ensure you use "-aa" flag in the ilink32 command. You should not see the dosbox before executing the program.
AppSys Problem with Demo Code
hi, Thx for Answer, [quote="nageswaragunupudi":1crr8b70] Because till a few years back, FWH was available for Xbase++ users also. These samples were made those days. [/quote:1crr8b70] i 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: --> so i'm "too late" ... does 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:?: --> i saw some "well known" Name of Xbase++ Person. some have been working for Alaska before. these People have all high Level ... but perhaps that was "there" Problem. the 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: --> it is also my Dream but my Way is Different while i try to find out what harbour already have and how to use it. but it more difficult in FiveWin Environment for a Newbie to start so i have work first 100 Days most with HMG and its IDE. [quote="nageswaragunupudi":1crr8b70] In future, whenever you get such doubts, please build your application with buildh.bat in the samples folder. Please look into buildh.bat and take it as a template for preparing your link scripts. [/quote:1crr8b70] so 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:?: --> this was my Question and Antonio gave me those Setting using *.HBP and hbmk2.EXE [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] it 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. [quote="nageswaragunupudi":1crr8b70] 1) Include all the libraries in the buildh.bat. 2) Include "gtgui.lib" but NOT "gtwin.lib" 3) Ensure you use "-aa" flag in the ilink32 command. [/quote:1crr8b70] ad 1.) i like to compile/link hole Project ( 11 x *.PRG ) in CMD Box ad 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: --> ad 3.) em. äh ... is it again in BUILDh.BAT <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> my "Problem" with FivEdit is that it "load" Source (why ?) so when i "edit" same Source with "My Editor" FivEdit does not use "new" File. it does compile/link what FivEdit have "load" ... so i have still the Problem with FiveWin "work Environment" as Newbie ... there are 18 BUILD Files and so many Sample --- Question : does [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] have any function under FiveWin <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
AppSys Problem with Demo Code
hi, have found c:\fwh\makes\bormake.zip <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> inside is a *.MAK that i try to modify. FivEdit produce a B32.BC file so i try to use "these" LIB and i reduce it to 6 Error [quote:1466qrsk]'_HB_FUN_OCCURS' referenced from C:\FWH\LIB\FIVEH.LIB|VALTOSTR '_hb_strAtI' referenced from C:\FWH\LIB\FIVEH.LIB|VSTRFUN1 '_HB_FUN_HB_BLEN' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS '_HB_FUN___OLEVARIANTNEW' referenced from C:\FWH\LIB\FIVEH.LIB|ADOFUNCS '_hb_extIsNil' referenced from C:\FWH\LIB\FIVEHC.LIB|RICHEDIT '_HB_FUN_HB_TSTOUTC' referenced from C:\FWH\LIB\FIVEH.LIB|VALTOSTR [/quote:1466qrsk] but there is (again) a funny think in FivEdit IDE : i don't have c:\harbour\lib ... i have c:\harbour\lib[size=150:1466qrsk]\win\bcc[/size:1466qrsk] but 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:?: --> --- from FivEdit IDE with wrong c:\harbour\lib path [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] my result that look for me the same [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] you can compare it easy while i sort it in exact same Way so scroll both Code to compare. CLICK2.MAK [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] and GO.BAT [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] please 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: -->
AppSys Problem with Demo Code
hm ... i just have "delete" all (wrong) harbour LIBs in FivEdit IDE and add new from LIB\WIN\BCC now i got same Error like *.MAK file [quote:25qqqw0q]Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc. Error: Unresolved external '_HB_FUN_OCCURS' referenced from C:\FWH\LIB\FIVEH.LIB|VALTOSTR Error: Unresolved external '_hb_strAtI' referenced from C:\FWH\LIB\FIVEH.LIB|VSTRFUN1 Error: Unresolved external '_HB_FUN_HB_BLEN' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS Error: Unresolved external '_HB_FUN___OLEVARIANTNEW' referenced from C:\FWH\LIB\FIVEH.LIB|ADOFUNCS Error: Unresolved external '_hb_extIsNil' referenced from C:\FWH\LIB\FIVEHC.LIB|RICHEDIT Error: Unresolved external '_HB_FUN_HB_TSTOUTC' referenced from C:\FWH\LIB\FIVEH.LIB|VALTOSTR Error: Unable to perform link Link Error [/quote:25qqqw0q] so 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: -->
AppSys Problem with Demo Code
hi, now 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 --> [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] i do not use external "C" Code so i do not include [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] perhaps this was the Difference to Original Sample c:\fwh\makes\bormake.zip so 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: --> i will try to make a new Demo with "this" Type of *.MAK
Appear Empty paper when use TReport
Hi I just test small program from my old code to new FWH version. Appear Empty paper? [img:30vn37us]http&#58;//www&#46;fivetech&#46;com&#46;tw/downloads/TReport%20problem&#46;jpg[/img:30vn37us]
Appear Empty paper when use TReport
Richard, It 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. Regards, James ------------------------ Use the method "margin" to change the default 0.2 inch margins. TReport::Margin( nValue, nType, nScale ) --> nil Modify any of the top, left, bottom & right report margins. nValue The value of the new margin to be used. Default is 0.2. nType The type of margin to be changed: LEFT 1 (default) TOP 4 RIGHT 2 BOTTOM 5 nScale Inches or centimeters to be used: INCHES 1 (default) CENTIMETERS 2 Use the manifest constants: RPT_LEFT RPT_RIGHT RPT_TOP RPT_BOTTOM ----------------------------
Appear Empty paper when use TReport
Hello Richard, I fixed these problem for me like this: <!-- 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 --> Best regards, Otto
Appear Empty paper when use TReport
Hi James, Otto Thanks a lot for help me. The problem be solved.
Appear Empty paper when use TReport
Can the issue be solved by suitably setting top and bottom margins by oRep:Margin( nPixels, RPT_BOTTOM, 0 ) and oRep:Margin( nPixels, RPT_TOP, 0 ) ?
Appear GPF
Hi I had old FWH compiled app, when run it and press EXIT button. I got GPF error message below: FiveWin for Harbour GPF occurred Called from UNNITIALIZE_OLE(181) Called from UNNITIALIZE_OLE(181) I had to use OLE function. Any idea for welcome!!
Append Blank question
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. SELECT toolsAPPEND BLANKThank you in advance for your assistance.
Append Blank question
cdmmauiThere are two things you can do :1) dbCommit()2) GoTo recno()dbCommit 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()Rick Lipkin
Append Blank question
Hi Rick,Thank You
Append Blank question
cdmmaui,in a network environment it is dangerous not to check for neterr().Here a module i use for append in networks.example:[code:d22wp1u3] #define WAIT_SECONDS 2 if lNetAddRec&#40; "tools" &#41; ? "New record was appended&#46;" else ? "Network error! No record appended&#46;" endif ///////////////////////////// FUNCTION lNetAddRec&#40; cAlias &#41; ///////////////////////////// do while &#46;t&#46; if lAddRec&#40; WAIT_SECONDS, cAlias &#41; RETURN &#46;t&#46; endif if alert &#40; "Could not append a new record&#46;;", &#123; "Try again", "Cancel" &#125; &#41; != 1 RETURN &#46;f&#46; endif enddo RETURN &#46;f&#46; //////////////////////////////////// FUNCTION lAddRec&#40; nSeconds, cAlias &#41; //////////////////////////////////// do while nSeconds > 0 &#40; cAlias &#41;->&#40; dbAppend&#40;&#41; &#41; if !neterr&#40;&#41; RETURN &#46;t&#46; endif inkey&#40; &#46;5 &#41; nSeconds -= 0&#46;5 enddo RETURN &#46;f&#46; [/code:d22wp1u3]IMPORTANT: you must unlock the new record when you are ready editing it: [b:d22wp1u3] tools->( dbUnLock() )[/b:d22wp1u3]Maybe this could help you.Regards,Detlef
Append Blank question
DarrellYou 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.Regards,James-----------------------------4/27/2005 7:08 AMWindows' Oppontunistic LockingIs well described at:<!-- m --><a class="postlink" href="http://www.dataaccess.com/whitepapers/opportunlockingreadcaching.html">http://www.dataaccess.com/whitepapers/o ... ching.html</a><!-- m -->There are some programs for testing network op locking and for updating the registry here:<!-- m --><a class="postlink" href="http://drouillard.ca/Tips&Tricks/Samba/Oplocks.html">http://drouillard.ca/Tips&Tricks/Samba/Oplocks.html</a><!-- m -->
Append Blank question
Thank You for the information
Append From
Antonio, I use in my program Append From commands (17.12.2005 version). When it function is invoked with cdx driver FwPpc show error: LockFile() not supported in PocketPc. Append with ntx driver work ok. Sample: [code:lp34f7ec] Request DbfCdx Request DbfFpt RddSetDefault &#40;'DbfCdx'&#41; Request Hb_Lang_PLWIN Request Hb_CodePage_PLWIN Set Century On Set Epoch To 1995 Set Date German Set Deleted On Hb_LangSelect &#40;'PL'&#41; Hb_SetCodePage &#40;'PLWIN'&#41; Use T1 New Copy Structure To T2 T1->&#40;DbCloseArea &#40;&#41;&#41; Use T2 New Append From &#40;'T1'&#41; All T2->&#40;DbCloseArea &#40;&#41;&#41; [/code:lp34f7ec] Regards Pawel
Append From
Pawel, But is the APPEND ... properly performed ? Does the DBF change ? Thanks.
Append From
Antonio, Yes, 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. In this moment I change append from to dbappend() function. Pawel
Append From
Antonio, probably I find, error LockFile is show in this situation: - dbf is open eg. use table new without index file - index file exists when table is open - when append from invoked, fw show error when index dosn't exists append from work ok [code:1mjs98mq] use test1 new // without index file, index test1&#46;cdx exists copy structure to test2 test1->&#40;dbclosearea &#40;&#41;&#41; use test2 new append from &#40;'test1'&#41; all test2->&#40;dbclosearea &#40;&#41;&#41; [/code:1mjs98mq] Pawel
Append From
Sabeis si está funcionando 100% en harbour, o da problemas?? Gracias. El 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. Gracias.
Append From
Dejarlo estar, ya está solucionado. Tenía una dbf con un nombre de campo duplicado y cascaba.
Append From- RESOLVED
a sample of append from ( two dbf same structure) thanks
Append From- RESOLVED
Silvio, USE test1 EXCLUSIVE APPEND FROM test2 CLOSE DATABASES USE test1 xbrowse() Saludos
Append From- RESOLVED
Silvio, I think You changed to TDatabase [color=#0000FF:22nsgp9l]oData := TDatabase():New( , "CUST1", "DBFCDX", .F. ) // exclusive oData:use() // AppendFrom( cFile, aFields, bFor, bWhile, nNext, nRec, lRest ) oData:AppendFrom( "CUST2" ) oData:Close() oData := TDatabase():New( , "CUST1", "DBFCDX", .T. ) // shared oData:use() xBrowse(oData)[/color:22nsgp9l] regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Append From- RESOLVED
thanks i wish tdatabase the function of conversion of dbf also not run ok and i tried also with tdatabase while with normal ( silvio->) it is ok this afternoon i will try it
Append From- RESOLVED
RESOLVED NOT NEED APPEND FROM now I can converte all database on my dbf <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Append SDF error
Hello, I have a program that import some information from a text-file with the append from SDF command. From time to time it doesn't import all records. Here is the test-code: [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] Here is the text-file that can't be imported completly. It allways stops at the same record, and I can't find out why. [url:18tzir8b]http&#58;//www&#46;vms&#46;be/FWTest/test&#46;txt[/url:18tzir8b] Can someone try this? My last record is allways: [b:18tzir8b]<Artikelcode>SCTATC</Artikelcode>[/b:18tzir8b] I use FW710. Thanks, Marc
Append SDF error
Marc, To my opinion, your TEST.TXT-file is an XML-file. I don't think you can add data to your DBF-file by using SDF.
Append SDF error
Michel, This 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. I head this problem also before when importing prg-files. Most of them are imported complete, other not... I also try it with clipper52 and also with foxpro, and then the file is imported without any problem!!! Regards, Marc
Append SDF error
Marc, It 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. I am using FWH 10.8/xHarbour. Regards, James
Append SDF error
James, File send. Regards, Marc
Append SDF error
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. Regards, James
Append SDF error
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. EMG
Append SDF error
Enrico, Like I already explained in previous message, in clipper52 it work just fine. Here is the link of the text-file in zip format. [url:1yv1wawm]http&#58;//www&#46;vms&#46;be/FWTest/test&#46;zip[/url:1yv1wawm] Regards, Marc
Append SDF error
Marc, The fields in TEST.TXT are separated by hex "0A". If 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. Only tested with xHarbour Compiler build 1.0.0 (SimpLex) Regards, Euclides
Append SDF error
[quote="Marc Vanzegbroeck":3qcnkllj]Enrico, Like I already explained in previous message, in clipper52 it work just fine. Here is the link of the text-file in zip format. [url]http::/www.vms.be/FWTest/test.zip[/url] Regards, Marc[/quote:3qcnkllj] Thank you. I'm looking at the sample... EMG
Append SDF error
Ok, I reported it to the developers list. I tried to fix the problem but it's really too much complicated for me, sorry. EMG
Append SDF error
Euclides, Thanks for the info. I use now this code as workaround. [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] Regards, Marc
Append SDF error
Euclides, [quote:1aagyho3]The fields in TEST.TXT are separated by hex "0A". If 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. [/quote:1aagyho3] When I look at the file the fields ARE separated by 0D0A already, so I don't think that is the problem. James
Append SDF error
The bug has been fixed by Vicente Guerra in the xHarbour CVS. EMG
Append SDF error
Enrico, Thanks for getting that done. James
Append SDF error
Thanks Enrico, Will this be available in the next release of xharbour, or can I already link the new function? Regards, Marc
Append SDF error
[quote="Marc Vanzegbroeck":ufh4tvt7]Thanks Enrico, Will this be available in the next release of xharbour,[/quote:ufh4tvt7] Sure. [quote="Marc Vanzegbroeck":ufh4tvt7]or can I already link the new function?[/quote:ufh4tvt7] No, you have to build xHarbour from CVS. EMG
Append SDF fails
I am using FWH 2.5 when I have an append line as follows the program crashes. ... USE Tmp append from (FileName) SDF ... The error I get is DBFNTX/1021 Data Width Error Called from Fieldput(0) Called from __DBSDF(196) ... However if I use the same code in Clipper the append works correctly. Is there an issue with the append command in FWH 2.5? Thanks, Vytas