Petros,
There are two sample VC++ projects on my website that should be good examples for you to look through. Check the SpyIn and DeQuote samples.
>I am trying to write a simple function in Visual C++ 6.0 (DLL) which add
>2 variables that I send from Visual FoxPro 6.0, ADD them together and return the value back to VFP. How I can do this ? (Please give me some sample code)