>Thank you for explaining me what to do,
>
>I guess I have to use an ActiveX or FLL instead of doing it myself.
>
>I have searched around the internet for an example but so far I haven't found anything. I know that there is an example somewhere, but I just don't know where to search around the internet. It is really a mess.
>
>All I get is VB code examples but I want to do this in VFP.
>
>I know that there is an example in the FoxAdvisor by Microsoft that explains how to do this in VFP, but we lost the August 2001 issue of the magazine.
>
If you have a copy of Dan Appleman's book on VB, he includes an ActiveX control on the CD that can be used to publish callbacks for a variety of API callback types not directly supported by VB pre VB6, with C source code; being an ActiveX control, it should be usable with a little effort under VFP (I haven't tried, having my own tools for handling this for my prouction environment already, but Dan's stuff if pretty solid, and his book is one of the best introductions to the API available anywhere.) Somewhere in the Files Section, there's a sample FLL used to handle callbacks, possibly as a part of Christof Lange's STRUCT class, so I'd try there are well.
I don't have a copy of the book here at home to give you the details on the book, but if youu go to amazon.com and do a search on Dan Appleman's books, it should be listed there.
>MANY MANY thanks for your effort,
>Jacques Herweijer