i was not able to assign any char array with more than 15 charactors into a std::string variable. the variable will be corrupted. it works fine with anything less or equal to 15 chars. same code worked perfectly with VC++6.0. why is this happening? my program talks to an API, which expects its args as type of std::string, i have no control over that. please help.