Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / SDK / std::ostream with MString
  RSS 2.0 ATOM  

std::ostream with MString
Rate this thread
 
59953
 
Permlink of this thread  
avatar
  • Location: Saarbruecken
  • Total Posts: 10
  • Joined: 17 February 2007 02:20 AM

Hi,

I downloaded the sourcecode for a MAYA Plug-In ( Rawkee ) which uses std::cout << MString very often. At runtime I get acess voilation exceptions at every usage, and for me this way of using MString has never worked, instead I had to use std::cout << MString::asCahr().

Well I don’t thing that the developers are stupid, so somehow it must have worked for them. Reading the MString Header I find this at line 168:

friend OPENMAYA_EXPORT std::ostream& operator<<(std::ostream&, const MString& );
Doesn’t this mean that MString was overloaded for ostream somewhere, and that it should work directly ? Any idea why it does not on ( my ) Windows System ?

THX
_________________
Cheers, searching for the Pivot of my Soul, PP !!!



Cheers, searching for the Pivot of my Soul, PP !!!

Replies: 0