hello guys... I have a file MyClass.cpp inwhich I declared a vector array. I then added some string data to it and want to access it in MyProjDlg.cpp. It is dialoged based app in vc6. Here it is
MyClass.cpp
-----------
using namespace std;
typedef vector<LPTSTR> StudentData;
//some code here...
void someFunc()
{
//vector array
StudentData std;
//some loop
std.push_back(stdentName);
}
MyProjDlg.cpp
-------------
//Now here in [I]MyProjDlg.cpp[/I]...what should I do to access this vector array and
//put that data in Listbox..here it is what I tried so far but no result
extern StudentData std;
//some loop to enter this data in listbox....
for (int i=0; i<5; i++)
listbox.AddString(std.pop_back());
it is showing 7 defferent errors....any idea whats wrong im doing?