[fpc-pascal] Re: Passing objects to libraries and back
Jonas Maebe
jonas.maebe at elis.ugent.be
Sat Feb 26 10:12:15 CET 2011
On 26 Feb 2011, at 08:12, leledumbo wrote:
>> can i pass ansistrings ?
>
> Yes, but only if you know what you're doing. NEVER modify the passed strings
> (it would confuse the reference counting). Use const parameter all the time.
Or, alternatively, use the "cmem" unit in both the application and the plugin (or the "sharemem" unit under Windows).
Jonas
More information about the fpc-pascal
mailing list