Click here to Skip to main content
15,903,632 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: posting code to this website Pin
ke5in18-Jun-03 18:18
ke5in18-Jun-03 18:18 
GeneralRe: posting code to this website Pin
Ryan Binns18-Jun-03 18:28
Ryan Binns18-Jun-03 18:28 
GeneralHELP! How can I open an Excel file with Password Pin
ATC18-Jun-03 16:20
ATC18-Jun-03 16:20 
QuestionHow do I extract specific part of string needed using strstr.. Pin
IrishSonic18-Jun-03 14:58
IrishSonic18-Jun-03 14:58 
AnswerRe: How do I extract specific part of string needed using strstr.. Pin
Nish Nishant18-Jun-03 16:08
sitebuilderNish Nishant18-Jun-03 16:08 
QuestionCCombo Box and Currently Selected Item? Pin
adonisv18-Jun-03 14:54
adonisv18-Jun-03 14:54 
AnswerNevermind! Pin
adonisv19-Jun-03 14:27
adonisv19-Jun-03 14:27 
QuestionNested vectors don't work the way I had hoped - am I doing this right? Pin
kleft18-Jun-03 13:05
kleft18-Jun-03 13:05 
Intellisense shows that I can access myPlines (myGroups[i]->)... why can't I access myVerts? (see bold code below). Shouldn't this work like a nested structure? Thanks for any help.


class Group
{
public:
list < Pline * > myPlines;
void addPline(Pline *p) {myPlines.push_back(p);}
}

class Pline
{
public:
void addVert(CPoint *v) {myVerts.push_back(v);}
void removeLastVert() {myVerts.erase(myVerts.end());}
list < CPoint * > myVerts;
};

**********FormView.h****************
Group *myGroups[10];


*********FormView.cpp ***************
FormView::OnDraw(CDC* pDC)
{
pDC->Polyline(myGroups[i]->myPlines[k]->?
}


**********************************************************
**********************************************************



I had hoped it'd work like this:

*************** Nest.h *******************************
typedef struct {
int *x1;
} One;

typedef struct {
One *x2;
} Two;

typedef struct {
Two *x3;
} Three;


class Nest
{
public:
Nest();
Three myNest;
virtual ~Nest();
};


************** Nest.cpp *********************************


Nest::Nest()
{
myNest->x3->x2->x1 = 10;
}
AnswerRe: Nested vectors don't work the way I had hoped - am I doing this right? Pin
Dave Bryant18-Jun-03 13:11
Dave Bryant18-Jun-03 13:11 
Generaltolerance :o) Pin
MemLeak18-Jun-03 9:38
MemLeak18-Jun-03 9:38 
GeneralRe: tolerance :o) Pin
kochhar18-Jun-03 12:44
kochhar18-Jun-03 12:44 
GeneralRe: tolerance :o) Pin
Baris Kurtlutepe18-Jun-03 22:50
Baris Kurtlutepe18-Jun-03 22:50 
GeneralRe: tolerance :o) Pin
John M. Drescher19-Jun-03 0:15
John M. Drescher19-Jun-03 0:15 
GeneralShell ComboBox Pin
Nicholas Naddaf18-Jun-03 9:28
Nicholas Naddaf18-Jun-03 9:28 
GeneralRe: Shell ComboBox Pin
valikac18-Jun-03 12:49
valikac18-Jun-03 12:49 
GeneralRe: Shell ComboBox Pin
Nicholas Naddaf19-Jun-03 2:58
Nicholas Naddaf19-Jun-03 2:58 
GeneralTool bar is moving.... Pin
Shay Harel18-Jun-03 9:14
Shay Harel18-Jun-03 9:14 
GeneralC++ Filter Pin
Anton A. Loukine18-Jun-03 9:11
Anton A. Loukine18-Jun-03 9:11 
GeneralRe: C++ Filter Pin
act_x18-Jun-03 9:49
act_x18-Jun-03 9:49 
GeneralRe: C++ Filter Pin
Anton A. Loukine18-Jun-03 9:54
Anton A. Loukine18-Jun-03 9:54 
GeneralRe: C++ Filter Pin
Andrew Walker18-Jun-03 16:50
Andrew Walker18-Jun-03 16:50 
QuestionWhere to find DISK DEFRAGMENTER source code? Pin
Bartosz Bien18-Jun-03 9:09
Bartosz Bien18-Jun-03 9:09 
AnswerRe: Where to find DISK DEFRAGMENTER source code? Pin
John M. Drescher18-Jun-03 9:27
John M. Drescher18-Jun-03 9:27 
AnswerRe: Where to find DISK DEFRAGMENTER source code? Pin
John M. Drescher18-Jun-03 16:47
John M. Drescher18-Jun-03 16:47 
GeneralRe: Where to find DISK DEFRAGMENTER source code? Pin
Bartosz Bien18-Jun-03 22:35
Bartosz Bien18-Jun-03 22:35 

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.