I have the same problem with other non basic types as vectors. It might be that I’m forgetting something? Should I make a function in my class to get the values (of strings and vectors) by Object.invoke()?
For non-POD member types, Set() expects the address of the value of the data member, which must be of the same type as the data member. I.e. you need to pass the address of an std::string. Does that help?
For non-POD member types, Set() expects the address of the value of the data member, which must be of the same type as the data member. I.e. you need to pass the address of an std::string. Does that help?
Cheers, Axel.[/quote]
Thanks, Axel. I’m trying to do it but I get the same result. I cant’ set the value of the string. Do you mean to do this??
Member strMember=t.MemberByName(“s”);
strMember.Set(o,(void*)&(“this is a string”));
Its necessary to load some additional libraries to work with non-POD member types??? (In this case something like string.dll or similar???)