Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing CStrings in DLLs from VP5
Message
De
18/04/1998 04:15:31
 
 
À
08/04/1998 23:53:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00090588
Message ID:
00093141
Vues:
41
Yes, I agreed. The DLL itself have to be compiled as regular DLL, no MFC classes can be exported using regular DLL. Instead of return CString, the function should return LPTSTR and make sure to use the __stdcall calling convention.

Thanks.HTH.
>If it uses CStrings, than it's C++...
>
>I don't believe that a function that returns a CString can be exported as C standard.
>
>Vlad
>
>>I think if it returns CString you can declare that as STRING in VFP.
>>
>>>I am using VFP5 and I need to use a DLL with most of their returns as CStrings from MFC.The return from the method in the DLL is a CString. Does anyone knows which is the proper way to reference them in the DECLARE?
>>>I keep getting the error that the DLL can not find the point of entry for the method.
Lim Boon Eam
limbe@pc.jaring.my
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform