Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String vs Character Type in COM Object
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
String vs Character Type in COM Object
Divers
Thread ID:
01501310
Message ID:
01501310
Vues:
102
Hi

I have created a VFP MT COM dll which has one method:

ParseResponse(tcTxt As String) As String

Now I want to know the difference between declaring it as string vs declaring it as character?

When I create the COM object from using CoCreateInstance I get a valid COM object and and call the Release method etc. but when I try to received the return value I get a memory error so I am trying to understand what the VFP COM object is returning. The VFP code just returns a string of up to as many 512 characters. What does COM do to that string and what format is it actually a string or is it just a pointer to a buffer?

Thanks,
Simon
Simon White
dCipher Computing
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform