Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String vs Character Type in COM Object
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
String vs Character Type in COM Object
Miscellaneous
Thread ID:
01501310
Message ID:
01501310
Views:
101
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
Next
Reply
Map
View

Click here to load this message in the networking platform