Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to bindevent window messaging [Convert memo] dialog
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01514433
Message ID:
01514455
Views:
60
hmm ok I see your situation now. I don't know where to get the WinEvent.H - I don't have it here but I might have it at home - I'll check tonight when I get back.

>Thanks Victor - I suppose I could ... but ... quick lean clean and cheap is the game's name.
>
>I am not sure if the "production" app is a large DB4 exe - I can't even remember if DB4 has an ODBC socket feature.
>
>The client is remote. The budget does not allow for the time to "chat" with the client's Network admins or DBAs or any quibbling issues they might have with me accessing their ODBC (or - for that matter - writing a user/password/ODBC management guy.
>
>Plus - I already worked out and tested Win APIs to notify when their production system drops a new batch (DBF and DBT) in a specific folder:
FindNextChangeNotification
>FindCloseChangeNotification
>FindFirstChangeNotification
>WaitForSingleObject
>
>BTW, Victor .. Do you know where I can get a copy of WinEvent.H? I could work it from there. I need the event ID for VFP9's "Convert Memo" dialog event. Once I have that guy it's just a matter of instanciating the dialog through it's hWnd (i think :)
>
>>Can you use an ODBC driver to connect to the DB4 tables? That would handle the conversion for you if it's possible...
>>
>>>Have a project that need to automatically convert DB4 DBT memo fields to VFP fpt memo fields.
>>>
>>>I got the low level code page assignment working.
>>>
>>>However - there ain't no way round (yet) the "Convert Memo" VFP message dialog.
>>>
>>>Was thinking I could use bindevent to click the "OK" button on the VFP "Convert Memo" dialog using VFP's IDE message ID (that will still bite).
>>>
>>>According to Windows Event Binding Made Easy, in the section titled, "Binding to VFP IDE window events", there is a header file, WinEvents.H that I might be able to use when VFP's "Convert Memo" pops up to do the job.
>>>
>>>(btw: I can't find a copy of "WinEvents.H" anywhere - if ya got one - post it back and I'll make sure the big sky mall manager blesses you forever or the end of time {whichever comes first or last depending on your preferences})
>>>
>>>The approach is to use bindevents to determine that the "Convert Memo" dialog had indeed popped and then use Win APIs to get it's (the "Convert Memo" dialog) hWnd and send a click request or keyboard the space bar to press the "Yes" button on VFPs "Convert Memo" dialog.
>>>
>>>I aint proud - if you got it solved I'll trade an industrial single option base 1 array (no "safe array" required "cubic spline" algorithm, or FEDEX my gerbil (Gerty) to use at a pleasure, for the favor.
>>>
>>>Thanks
>>>Terry
>>>www.r6solutions.com
ICQ 10556 (ya), 254117
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform