Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing CStrings in DLLs from VP5
Message
 
 
To
09/04/1998 22:08:10
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00090588
Message ID:
00091093
Views:
30
Vlad,

>As you already said, the call of this function (from VFP) crashes VFP. Anyway, I really don't see how the conversion would be done. CString is a class, and C is not OO.

Internally the CString is still just a char memory buffer with stored length. The online VC++ docs show it can be substituted for C char arrays. Since you can send it as the source to strcpy() that pretty much says it works the same. I think the crashing is simply related to a memory allocation issue.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform