Hi,
>the problem is the forth parameter that is the address of a function that for each time muse be called.
Since VFP doesn't compile to native machine code you cannot pass the address to any VFP procedure to an API function.
In VFP 9 you can look for an API function that uses Windows messages. To bind to Windows messages, use the BINDEVENT() function.
In previous version of VFP or when there is no such API function, you need to write a DLL function in C++ that either performs the desired action or uses the _Execute() VFP API function to run VFP code. _Execute() requires that you create an FLL.
--
Christof