Apr 19, 2010 at 1:35pm
Dear Max5 externals C++ programmers,
I have a C++ class with a string as (protected) member. I have to set the string and output it. That works perfectly when I stay in C++ and don’t try to include this in a Max5 external.
If you think of any pointers to help me understand what’s going on, I would appreciate…
Apr 19, 2010 at 6:56pm
If there’s an issue using a std::string embedded in your max object, it is probably because the constructor is not getting called.
You have several options:
myobj = (MyObj *)object_alloc(myobj_class);
and remember to deallocate in the myobj_free:
3) Use the templates I made for C++ externals: http://www.mat.ucsb.edu/~wakefield/software.html#maxcpp
Apr 19, 2010 at 11:01pm
Thank’s for your answer !
I’ll keep you posted of the results anyway.
You must be logged in to reply to this topic.