Dan,
as far as the DECLARE in VFP is concerned it's case-sensitive to the VC++ declaration. There are two ways of making the entry point visible to the external world. The one I use is making a line in the
exports section of the .DEF file.
The second method is to add the macros
extern "C" __declspec(dllexport) in front of the member function. If that syntax isn't exactly right ask Vlad for the correct syntax.
>DECLARE MyMessageBox IN "MyFirstVfpDll"
>
>?MyMessageBox()
>
>Error: An entry point for MyMessageBox could not be found.