You can't DECLARE to objects and object methods. If you want to use classes etc.
in VC++ you'll have to create wrapper functions that call the object and
then DECLARE those in VFP.
+++ Rick ---
>>The SpyIn sample on my website has a basic VC++ DLL creation project and shows how to create member functions that are callable from VFP. It's really pretty easy. You don't have to do too much MFC the wizards are actually useful tools in VC++, they create stubs that you merely have to flesh out with your function code. The curly braces are easy it's the & and -> that'll bite you.
>>
>
>Dave.
>
>I tried to make a simple MessageBox function but I did it in VC++ 6.0 as part of VS6.
>
>Everything looks the same except for the workspaces. The code is :
>
>
>void CMyFirstVfpDllApp::MyMessageBox(void)
>{
> AFX_MANAGE_STATE(AfxGetStaticModuleState());
> MessageBox( NULL, "Hello World", "MessageBox", MB_OK );
>}
>
><\text>
>
>It compiles and builds correctly. I copied out the files from the release directory to my test directory. I stated VFP and moved to the test directory. I then:
>
>DECLARE MyMessageBox IN "MyFirstVfpDll"
>
>?MyMessageBox()
>
>Error: An entry point for MyMessageBox could not be found.
>
>What am I doing wrong?
>
>Please help me? :)
>
>TIA
>
>Dan