Peter,
If the C code is not trying to access VFP routines then it's much simpler to just compile the C code to a DLL and use a DECLARE command in VFP to access it. There are two different VC++ sample projects and the VFP code to access the DLLs over on my website. They are under the Samples section SpyIn and DeQuote.
>A colleague of mine has written a C routine that's supposed to write messages to the eventlog.
>
>As far as I can determine, he went by the book as described in VFP Help.
>
>When I SET LIBRARY TO MyVeryOwn.FLL I get a Library...is invalid message, and that's it.