Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Look for a powerful datagrid control for VC++ Pin
ThatsAlok19-Jan-07 22:38
ThatsAlok19-Jan-07 22:38 
GeneralRe: Look for a powerful datagrid control for VC++ Pin
liur1720-Jan-07 2:16
liur1720-Jan-07 2:16 
Questionerror compiliing pwlib Pin
Kiran Pinjala19-Jan-07 19:11
Kiran Pinjala19-Jan-07 19:11 
AnswerRe: error compiliing pwlib Pin
ThatsAlok19-Jan-07 23:06
ThatsAlok19-Jan-07 23:06 
GeneralRe: error compiliing pwlib Pin
Kiran Pinjala19-Jan-07 23:30
Kiran Pinjala19-Jan-07 23:30 
QuestionWinHTTP Pin
shadrach_india19-Jan-07 18:51
shadrach_india19-Jan-07 18:51 
AnswerRe: WinHTTP Pin
Mark Salsbery20-Jan-07 6:06
Mark Salsbery20-Jan-07 6:06 
QuestionVector iterators Pin
Waldermort19-Jan-07 18:38
Waldermort19-Jan-07 18:38 
This is somewhat of a difficult problem to explain, so please bare with me.

I have a class which is resposible for the allocation of an array of 4 structs. This class is a base class through which I can retrieve a pointer to the array and modify the struct members. Due to the nature of the program, I need access to all the structs ( for each instance of the class ). So, In the base class I created a static vector of structs, each time an instance of the class is created it add 4 new members to this static vector.

This is where my problem lies. Each instance needs to know exactly where in the vector it's 4 structs are located. This could be easily solved by recording the index they were inserted. But lets say I create 3 instances ( 12 structs in the vector ), then I delete the first instance. I would need to erase those 4 members from the vector which would cause the next instance to index the wrong value, and the third to be past the end.

I need some way to keep track of those 4 structs without needing to worry about instances being added or deleted. Any ideas?
AnswerRe: Vector iterators Pin
Christian Graus19-Jan-07 18:43
protectorChristian Graus19-Jan-07 18:43 
GeneralRe: Vector iterators Pin
Waldermort19-Jan-07 19:01
Waldermort19-Jan-07 19:01 
AnswerRe: Vector iterators Pin
John R. Shaw21-Jan-07 0:55
John R. Shaw21-Jan-07 0:55 
QuestionHow to implement BHO Pin
johnalek19-Jan-07 18:30
johnalek19-Jan-07 18:30 
AnswerRe: How to implement BHO Pin
prasad_som20-Jan-07 3:16
prasad_som20-Jan-07 3:16 
Questionhow to convert WCHAR TO string Pin
amitmistry_petlad 19-Jan-07 16:18
amitmistry_petlad 19-Jan-07 16:18 
QuestionClient Server Application. Pin
Sameerkumar Namdeo19-Jan-07 15:56
Sameerkumar Namdeo19-Jan-07 15:56 
QuestionC++ certification Pin
celllllllll19-Jan-07 13:31
celllllllll19-Jan-07 13:31 
AnswerRe: C++ certification Pin
#realJSOP19-Jan-07 13:42
mve#realJSOP19-Jan-07 13:42 
GeneralRe: C++ certification Pin
Christian Graus19-Jan-07 18:45
protectorChristian Graus19-Jan-07 18:45 
GeneralRe: C++ certification Pin
#realJSOP20-Jan-07 1:05
mve#realJSOP20-Jan-07 1:05 
AnswerRe: C++ certification Pin
Nemanja Trifunovic19-Jan-07 14:12
Nemanja Trifunovic19-Jan-07 14:12 
GeneralRe: C++ certification Pin
celllllllll19-Jan-07 14:16
celllllllll19-Jan-07 14:16 
AnswerRe: C++ certification Pin
Christian Graus19-Jan-07 18:44
protectorChristian Graus19-Jan-07 18:44 
JokeRe: C++ certification Pin
Rajesh R Subramanian19-Jan-07 19:01
professionalRajesh R Subramanian19-Jan-07 19:01 
GeneralRe: C++ certification Pin
Christian Graus19-Jan-07 19:27
protectorChristian Graus19-Jan-07 19:27 
AnswerRe: C++ certification Pin
Waldermort19-Jan-07 19:07
Waldermort19-Jan-07 19:07 

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.