Click here to Skip to main content
11,704,044 members (66,355 online)

C / C++ / MFC

 
GeneralRe: C++ Compiler Warnings Pin
DavidCrow24-Jun-09 3:11
mvpDavidCrow24-Jun-09 3:11 
AnswerRe: C++ Compiler Warnings Pin
«_Superman_»23-Jun-09 16:26
member«_Superman_»23-Jun-09 16:26 
AnswerRe: C++ Compiler Warnings Pin
KarstenK23-Jun-09 21:31
memberKarstenK23-Jun-09 21:31 
QuestionConsiderations and implementation of a method to copy the vector<t>::iterator</t> Pin
Cyrilix23-Jun-09 9:23
memberCyrilix23-Jun-09 9:23 
AnswerRe: Considerations and implementation of a method to copy the vector::iterator Pin
Stuart Dootson23-Jun-09 9:28
memberStuart Dootson23-Jun-09 9:28 
GeneralRe: Considerations and implementation of a method to copy the vector::iterator Pin
Cyrilix23-Jun-09 10:25
memberCyrilix23-Jun-09 10:25 
GeneralRe: Considerations and implementation of a method to copy the vector::iterator Pin
Stuart Dootson23-Jun-09 10:33
memberStuart Dootson23-Jun-09 10:33 
GeneralRe: Considerations and implementation of a method to copy the vector::iterator [modified] Pin
Michael Dunn23-Jun-09 14:41
sitebuilderMichael Dunn23-Jun-09 14:41 
In any recent version of VC, iterators are not simple pointers. There is some debug info kept around to detect dangling iterators and iterators that point outside of their containers. So doing a straight memcpy will work only as long as the original iterator exists.
What about this:
vector<T>::iterator* piter = new vector<T>::iterator ( someVector.begin() );
void* pv = (void*) piter;</T>
?

Last modified: 5hrs 10mins after originally posted -- fixde tpyo


--Mike--

GeneralRe: Considerations and implementation of a method to copy the vector::iterator Pin
Cyrilix23-Jun-09 15:03
memberCyrilix23-Jun-09 15:03 
Questiontransfer date time string to SYSTEMTIME Pin
includeh1023-Jun-09 6:44
memberincludeh1023-Jun-09 6:44 
AnswerRe: transfer date time string to SYSTEMTIME Pin
Jijo raj23-Jun-09 7:02
memberJijo raj23-Jun-09 7:02 
AnswerRe: transfer date time string to SYSTEMTIME Pin
Stuart Dootson23-Jun-09 7:12
memberStuart Dootson23-Jun-09 7:12 
Question[SOLVED] Need help with WinAPI AlphaBlend() [modified] Pin
Rozis23-Jun-09 6:06
memberRozis23-Jun-09 6:06 
Questionbase or super-like functionality in C++? Pin
Michael P. Scherer23-Jun-09 5:35
memberMichael P. Scherer23-Jun-09 5:35 
AnswerRe: base or super-like functionality in C++? Pin
Fernando A. Gomez F.23-Jun-09 6:04
memberFernando A. Gomez F.23-Jun-09 6:04 
GeneralRe: base or super-like functionality in C++? Pin
Michael P. Scherer23-Jun-09 6:09
memberMichael P. Scherer23-Jun-09 6:09 
AnswerRe: base or super-like functionality in C++? Pin
Nemanja Trifunovic23-Jun-09 6:17
memberNemanja Trifunovic23-Jun-09 6:17 
AnswerRe: base or super-like functionality in C++? Pin
Stuart Dootson23-Jun-09 6:54
memberStuart Dootson23-Jun-09 6:54 
Questionhow to save image from webBrowser Control Pin
voo doo1223-Jun-09 5:32
membervoo doo1223-Jun-09 5:32 
QuestionSetFont at Runtime Pin
p_196023-Jun-09 5:15
memberp_196023-Jun-09 5:15 
Questionhow to replace " with \" Pin
Ash_VCPP23-Jun-09 4:31
memberAsh_VCPP23-Jun-09 4:31 
AnswerRe: how to replace " with \" Pin
led mike23-Jun-09 4:37
mvpled mike23-Jun-09 4:37 
AnswerRe: how to replace " with \" Pin
«_Superman_»23-Jun-09 4:54
member«_Superman_»23-Jun-09 4:54 
QuestionMemory Leak Help Pin
OrangeV23-Jun-09 3:50
memberOrangeV23-Jun-09 3:50 
AnswerRe: Memory Leak Help Pin
«_Superman_»23-Jun-09 4:02
member«_Superman_»23-Jun-09 4:02 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.150819.1 | Last Updated 28 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid