Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C++ DLL help
Message
 
À
20/08/2008 17:03:35
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01340071
Message ID:
01340582
Vues:
13
Hi James,

> Here is the function call and the compile error I am getting is "cannot convert parameter 1 from 'void *' to 'Cstring'

You need to create a CString object before you can pass it to the function. Something like this:
   class __declspec(dllimport) CSampleSelect oSampleSelect;

   CString s1( _HandToPtr(parm->p[0].val.ev_handle));
   CString s2( _HandToPtr(parm->p[1].val.ev_handle));
   CString s3( _HandToPtr(parm->p[2].val.ev_handle));
   nTest = oSampleSelect.MainSampleSelect(s1,s2,s3);
You might need to convert the string to Unicode before calling the FLL, though, using STRCONV().
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform