Actually, you can't use objects directly such as CString to set the data map. 
You need to extract the char string first from CString and then use 
PutItemValue or SetValues (depending of your context) to set the data.

-mab

From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Marc-Andre Belzile
Sent: Tuesday, October 02, 2012 9:21 AM
To: softimage@listproc.autodesk.com
Subject: RE: [C++] UserDataMap data type

UserDataMap supports binary data so you can use any data type you want.

-mab

From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Ahmidou Lyazidi
Sent: Tuesday, October 02, 2012 4:51 AM
To: softimage@listproc.autodesk.com
Subject: [C++] UserDataMap data type

Hi there
I'm still diving in the C++ world and I was wondering if there is a list of 
data types that can be stored in a c++ user data map?
Is is only the numeric types ? It seems arrays(any kind) and CStrings embed in 
a struct can't be read back.

Thanks

--
Ahmidou Lyazidi
Director | TD | CG artist
http://vimeo.com/ahmidou/videos

<<attachment: winmail.dat>>

Reply via email to