For more detail then it made no difference if the property in the
plugin that I was trying to talk to was defined like:
{ nil, "Count", "Integer", 0, (REALproc)StringArray_GetCount ,nil},
or
{ nil, "Count", "Integer", 0, REALstandardGetter
,nil,FieldOffset(StringArrayStruct, m_lCount)},
Both ways simply just fail with the dynamic SDK.
I have now changed it to function and the Dynamic SDK is working
perfectly for that.
Björn
It seems that REALGetPropValue is definitly not working in all cases.
propertyLoaded = REALGetPropValue(stringArray, "Count", &count);
This will always return false.
I am loading here a "Count as Integer" property from a plugin class. I
am able to load all of its methods perfectly with the dynamic API. But
I can in no way make it work to read the Count property of it.
I will work around it now by updating the plugin that I am talking to
to change the Count from a Property to a function.
But this shows clearly what has been said here before that the
Property accessors in the dynamic API are not reliable to work always.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|