Hi Jay,
>>Has anyone modified the QuitApp project to work in VFP6? As much as I can tell the _VFP.hWnd variable is not available in version 6. Thanks!
>
>Renoir,
>
>You can use
DECLARE long GetActiveWindow IN WIN32API
>hWnd = GetActiveWindow()
I took Sergey's suggestion and replace the _VFP.HWND references with a result of the GetActiveWindow call.
>Thanks Sergey! Now for extra credit, do you know why this app does not seem to have any code to add records to the QuitApp table? I'll email the author, but thought I would give you first crack at it.
For the second question. In the Timer event of the QuitApp class, it attempts to locate a existing record in the QuitApp.dbf, if not found, a record is added. You will find this at line 158 in the current download.
If you, or anyone else, has enhanced the class, please send me the changes.
Greg
Greg Reichert