We aimed for code migration to the new C++ Builder 2010 from Embarcadero. We had to work through few problems STL which is provided from Dikumware.com. Specially the CodeGuard throws many exceptions when using STL. Therefore we had to change our TFileOutputStream and TFileInputStream and removed the fstream classes. Following code illustrates the problem


int _tmain(int argc, _TCHAR* argv[])
{
  //This code works!!!!
  
  return 0;
}