Game Development Community

How to use stl string class

by gamer · in Torque Game Engine · 06/07/2006 (6:40 pm) · 2 replies

I am tring to add a class in the c++ engine. the compiler can't resolve the string class although its declared in string.h.
any idea how to set it up in vc 7/ visual studio 2003?
thanks

#include <string>  //or #include "string.h"
class ExternalProcess
{
public :
	string getExeName(string strFullPathToExe);
	

};

#1
06/07/2006 (6:41 pm)
Doing a search for STL would have given you quite a few answers...
To sum it up : the custom memory manager TGE uses doesn't play nice with STL in general, but there have been community fixes to help with this, including a thread about it just a few days ago.
#2
06/07/2006 (6:42 pm)
Ok I should have added #using namespace std;
thanks!!