Marvin,
If you are just wanting to write a function in C/C++ and call it from VFP, it's much easier to create just a plain DLL. There are two example VC++ projects over on my website: DeQuote and SpyIn.
>I found a hello.c program in the Samples\Api\ section of Visual FoxPro, but I am not able to compile it properly.