Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vc++
Message
 
À
14/12/1998 17:22:31
George Lee
Microcomputer Engineering Services, Llc
Huntington Beach, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: Vc++
Divers
Thread ID:
00166468
Message ID:
00167495
Vues:
19
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
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform