Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing CStrings in DLLs from VP5
Message
 
 
À
09/04/1998 22:08:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00090588
Message ID:
00091093
Vues:
32
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform