Click here to Skip to main content
15,885,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can handle this exception? Pin
Alain Rist17-Nov-10 0:11
Alain Rist17-Nov-10 0:11 
GeneralRe: How can handle this exception? Pin
Le@rner17-Nov-10 0:35
Le@rner17-Nov-10 0:35 
GeneralRe: How can handle this exception? Pin
Alain Rist17-Nov-10 1:29
Alain Rist17-Nov-10 1:29 
QuestionRe: How can handle this exception? Pin
David Crow17-Nov-10 3:19
David Crow17-Nov-10 3:19 
Questionbuffer filled with trash [modified] Pin
ALLERSLIT16-Nov-10 13:22
ALLERSLIT16-Nov-10 13:22 
AnswerRe: buffer filled with trash Pin
Stephen Hewitt16-Nov-10 17:35
Stephen Hewitt16-Nov-10 17:35 
GeneralRe: buffer filled with trash Pin
Richard MacCutchan16-Nov-10 21:22
mveRichard MacCutchan16-Nov-10 21:22 
QuestionAccessing vector in another class?? Pin
AmbiguousName16-Nov-10 0:53
AmbiguousName16-Nov-10 0:53 
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 MyProjDlg.cpp...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 that im doing? Confused | :confused:
AnswerRe: Accessing vector in another class?? Pin
Chris Losinger16-Nov-10 1:37
professionalChris Losinger16-Nov-10 1:37 
AnswerRe: Accessing vector in another class?? Pin
Richard MacCutchan16-Nov-10 1:40
mveRichard MacCutchan16-Nov-10 1:40 
GeneralRe: Accessing vector in another class?? Pin
AmbiguousName16-Nov-10 2:14
AmbiguousName16-Nov-10 2:14 
QuestionCan i use Property Page as a dialog Box? Pin
Le@rner15-Nov-10 20:11
Le@rner15-Nov-10 20:11 
AnswerRe: Can i use Property Page as a dialog Box? Pin
Cedric Moonen15-Nov-10 20:33
Cedric Moonen15-Nov-10 20:33 
GeneralRe: Can i use Property Page as a dialog Box? Pin
Le@rner15-Nov-10 20:49
Le@rner15-Nov-10 20:49 
GeneralRe: Can i use Property Page as a dialog Box? Pin
Cool_Dev15-Nov-10 21:27
Cool_Dev15-Nov-10 21:27 
GeneralRe: Can i use Property Page as a dialog Box? Pin
Le@rner15-Nov-10 23:09
Le@rner15-Nov-10 23:09 
GeneralRe: Can i use Property Page as a dialog Box? Pin
Cool_Dev15-Nov-10 23:30
Cool_Dev15-Nov-10 23:30 
AnswerRe: Can i use Property Page as a dialog Box? Pin
Alain Rist16-Nov-10 5:21
Alain Rist16-Nov-10 5:21 
AnswerRe: Can i use Property Page as a dialog Box? Pin
David Crow16-Nov-10 3:55
David Crow16-Nov-10 3:55 
QuestionHow can use it in List Ctrl? Pin
Le@rner15-Nov-10 18:10
Le@rner15-Nov-10 18:10 
AnswerRe: How can use it in List Ctrl? Pin
Cool_Dev15-Nov-10 21:34
Cool_Dev15-Nov-10 21:34 
GeneralRe: How can use it in List Ctrl? Pin
Le@rner15-Nov-10 21:38
Le@rner15-Nov-10 21:38 
GeneralRe: How can use it in List Ctrl? Pin
Cool_Dev15-Nov-10 22:23
Cool_Dev15-Nov-10 22:23 
AnswerRe: How can use it in List Ctrl? Pin
Code-o-mat15-Nov-10 21:38
Code-o-mat15-Nov-10 21:38 
GeneralRe: How can use it in List Ctrl? Pin
Le@rner15-Nov-10 21:40
Le@rner15-Nov-10 21:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.