Jay,
You do not have access to the FoxPro windows message handling loop.
It is quite easy to create a COM server with VFP that C++ can instantiate and issue method calls to. It's also possible to use the RegisterWindowMessage() API call so that FoxPro can SendMessage() or PostMessage() to put messages into the C++ event loop.
>I am a C++ programmer that has been told to get a FoxPro program working with my API. From a FoxPro program I need to hand the API the window handle of the FoxPro program and a WM_USER event.
>
>1. How do I get the handle of the window to hand to the API?
>2. How do I trap the WM_USER event inside of FoxPro?
>
>This has been the only thing I haven't been able to figure out.