Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to do fast Zip in c++? Pin
elchupathingy8-Aug-10 19:18
elchupathingy8-Aug-10 19:18 
GeneralRe: How to do fast Zip in c++? Pin
002comp8-Aug-10 21:11
002comp8-Aug-10 21:11 
GeneralRe: How to do fast Zip in c++? Pin
002comp9-Aug-10 0:16
002comp9-Aug-10 0:16 
GeneralRe: How to do fast Zip in c++? Pin
Moak10-Aug-10 13:13
Moak10-Aug-10 13:13 
QuestionHow to check the NULL iterator? Pin
DevelopmentNoob8-Aug-10 17:26
DevelopmentNoob8-Aug-10 17:26 
AnswerRe: How to check the NULL iterator? [modified] PinPopular
Niklas L8-Aug-10 19:44
Niklas L8-Aug-10 19:44 
AnswerRe: How to check the NULL iterator? Pin
Moak8-Aug-10 21:39
Moak8-Aug-10 21:39 
AnswerRe: How to check the NULL iterator? Pin
Aescleal8-Aug-10 22:22
Aescleal8-Aug-10 22:22 
You are paying the price for using an implementation detail of the Microsoft's standard library implementation. The idea that your code "work well" is only true if you like writing redundant stuff.

In Microsoft VC++ 6 (also known as VC++'98 to give you an idea of how much of an antique it is) std::vector::end returned NULL, so the check for if(iter) is completely redundant - you can remove it on VC++6 and not see any observable difference.

So the rules are...

- Don't assume anything about the implementation of an iterator
- Don't compare iterators against anything that isn't another iterator of the same type - that includes NULL, 0, nullptr, nullptr_t()

Cheers,

Ash
QuestionwaveOutOpen returning no message?? Pin
AmbiguousName8-Aug-10 2:45
AmbiguousName8-Aug-10 2:45 
AnswerRe: waveOutOpen returning no message?? Pin
Richard MacCutchan8-Aug-10 2:54
mveRichard MacCutchan8-Aug-10 2:54 
GeneralRe: waveOutOpen returning no message?? Pin
AmbiguousName8-Aug-10 4:30
AmbiguousName8-Aug-10 4:30 
GeneralRe: waveOutOpen returning no message?? Pin
Luc Pattyn8-Aug-10 4:58
sitebuilderLuc Pattyn8-Aug-10 4:58 
GeneralRe: waveOutOpen returning no message?? Pin
Richard MacCutchan8-Aug-10 5:31
mveRichard MacCutchan8-Aug-10 5:31 
QuestionAvoiding Resource Conflicts in MFC Extension DLLs Pin
softwaremonkey7-Aug-10 21:07
softwaremonkey7-Aug-10 21:07 
AnswerRe: Avoiding Resource Conflicts in MFC Extension DLLs Pin
Niklas L7-Aug-10 22:27
Niklas L7-Aug-10 22:27 
GeneralRe: Avoiding Resource Conflicts in MFC Extension DLLs Pin
softwaremonkey8-Aug-10 4:21
softwaremonkey8-Aug-10 4:21 
QuestionError :: C1061 compiler limit : blocks nested too deeply Pin
Le@rner6-Aug-10 22:31
Le@rner6-Aug-10 22:31 
AnswerRe: Error :: C1061 compiler limit : blocks nested too deeply Pin
Code-o-mat6-Aug-10 22:52
Code-o-mat6-Aug-10 22:52 
GeneralRe: Error :: C1061 compiler limit : blocks nested too deeply Pin
Le@rner6-Aug-10 23:23
Le@rner6-Aug-10 23:23 
GeneralRe: Error :: C1061 compiler limit : blocks nested too deeply [modified] Pin
Richard MacCutchan7-Aug-10 2:39
mveRichard MacCutchan7-Aug-10 2:39 
GeneralRe: Error :: C1061 compiler limit : blocks nested too deeply Pin
MuraliKrishnaP7-Aug-10 3:07
MuraliKrishnaP7-Aug-10 3:07 
AnswerRe: Error :: C1061 compiler limit : blocks nested too deeply Pin
Luc Pattyn7-Aug-10 11:02
sitebuilderLuc Pattyn7-Aug-10 11:02 
GeneralRe: Error :: C1061 compiler limit : blocks nested too deeply Pin
David Crow7-Aug-10 15:58
David Crow7-Aug-10 15:58 
AnswerRe: Error :: C1061 compiler limit : blocks nested too deeply Pin
Moak6-Aug-10 23:14
Moak6-Aug-10 23:14 
QuestionConnectEx fails Pin
followait6-Aug-10 14:25
followait6-Aug-10 14:25 

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.