Is there a way to extract regular strings out of a wstring variable (without the pointer)?
Posted on 2006-04-30
Vecotr of wstring is crashing my programing becuase it wont take pointers, which wstring is a pointer. My crrent vecor is declare as follow. It's getting Uninitilize Memory in my Rational Purfiy program when I primaryGroups.Push_back().
It's also crashing my program.
vector <std::wstring> primaryGroups;
I need to change the above declaration to a type of string that's not a pointer to a string. Since all my code and data are in wstring for this, Is there a way to extract regular strings out of a wstring variable (without the pointer)? And I sould be able to declare my vector of that type.