Click here to Skip to main content
15,901,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
A statement of the form:
LPHWAVEOUT		_hOutputDevice = NULL;

states that _hOutputDevice is a pointer to a HWAVEOUT (whatever that may be). However, you have also initialised it to the value NULL which means that it is not pointing to anything. If you then pass that as the function parameter then the function will reject it as part of the response is to return some data in the memory that is pointed to. Since the value is NULL the function cannot store the response.

It is much better practice to do something like:
HWAVEOUT		_hOutputDevice;
function(&_hOutputDevice, ...

It's time for a new signature.

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 
AnswerRe: ConnectEx fails Pin
Richard Andrew x646-Aug-10 15:06
professionalRichard Andrew x646-Aug-10 15:06 
GeneralRe: ConnectEx fails Pin
followait6-Aug-10 16:09
followait6-Aug-10 16:09 
GeneralRe: ConnectEx fails Pin
Richard MacCutchan6-Aug-10 21:49
mveRichard MacCutchan6-Aug-10 21:49 
GeneralRe: ConnectEx fails Pin
followait7-Aug-10 2:16
followait7-Aug-10 2:16 
GeneralRe: ConnectEx fails Pin
Richard MacCutchan7-Aug-10 2:24
mveRichard MacCutchan7-Aug-10 2:24 

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.