Error: 15 C:\wxdevcpp\proiecte\1st\Project1App.cpp `string' does not name a typeCode:#include "Project1App.h" #include "Project1Frm.h" #include <string> string n; IMPLEMENT_APP(Project1FrmApp) bool Project1FrmApp::OnInit() { Project1Frm* frame = new Project1Frm(NULL); SetTopWindow(frame); frame->Show(); return true; } int Project1FrmApp::OnExit() { return 0; }
I'm trying to declare a vector visible outside the wx implementation, but that did not work, so i cam back to an int. It worked, char worked, but string and any other standard class, doesn't. This is so annoying. I almost thought I got the smallest hang of C++.