In OM_GET, how do you return a text string, a node, BOOL, negative number (-1 for BackPen), or anything other than a uint32 number?
I only get garbage text back with
as a test.
All BOOLs come back as FALSE, even if TRUE. Tried casting.
There is nothing wrong with this one lonely line of code you gave us to judge.
Maybe you need to check your call to GetAttr. opg_Storage is basically the third argument you give to GetAttr.
Also make sure that the string remains valid after you forwarded its pointer.
Transferring boolean values is a bit tricky because OM_GET always overwrites 32 bits of storage, so you cannot let GetAttr point directly to a BOOL variable, you have to let it write to a 32 bit integer first and then assign it to the BOOL variable.