Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C++ DLL help
Message
 
To
20/08/2008 17:03:35
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01340071
Message ID:
01340582
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform