Click here to Skip to main content
15,904,339 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Bitmap Pin
Sangeetha_J21-Jan-07 19:11
Sangeetha_J21-Jan-07 19:11 
QuestionWindows delayed write failed Pin
mt_samiei19-Jan-07 23:15
mt_samiei19-Jan-07 23:15 
AnswerRe: Windows delayed write failed Pin
Mark Salsbery20-Jan-07 6:04
Mark Salsbery20-Jan-07 6:04 
AnswerRe: Windows delayed write failed Pin
Hamid_RT20-Jan-07 6:07
Hamid_RT20-Jan-07 6:07 
Questionmy code is not working for WCHAR to string Pin
amitmistry_petlad 19-Jan-07 22:44
amitmistry_petlad 19-Jan-07 22:44 
AnswerRe: my code is not working for WCHAR to string Pin
Christian Graus19-Jan-07 23:16
protectorChristian Graus19-Jan-07 23:16 
AnswerRe: my code is not working for WCHAR to string Pin
Michael Dunn20-Jan-07 9:40
sitebuilderMichael Dunn20-Jan-07 9:40 
QuestionHelp me in creating a control Pin
Raj Prathap19-Jan-07 21:38
Raj Prathap19-Jan-07 21:38 
AnswerRe: Help me in creating a control Pin
Waldermort19-Jan-07 22:31
Waldermort19-Jan-07 22:31 
AnswerRe: Help me in creating a control Pin
ThatsAlok19-Jan-07 22:37
ThatsAlok19-Jan-07 22:37 
AnswerRe: Help me in creating a control Pin
Joan M20-Jan-07 5:44
professionalJoan M20-Jan-07 5:44 
AnswerRe: Help me in creating a control Pin
Hamid_RT20-Jan-07 6:06
Hamid_RT20-Jan-07 6:06 
QuestionLook for a powerful datagrid control for VC++ Pin
liur1719-Jan-07 19:45
liur1719-Jan-07 19:45 
AnswerRe: Look for a powerful datagrid control for VC++ Pin
Rajesh R Subramanian19-Jan-07 20:30
professionalRajesh R Subramanian19-Jan-07 20:30 
GeneralRe: Look for a powerful datagrid control for VC++ Pin
ThatsAlok19-Jan-07 22:37
ThatsAlok19-Jan-07 22:37 
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 

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.