Click here to Skip to main content
15,896,313 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: IOCP again Pin
cmk6-Jul-11 10:38
cmk6-Jul-11 10:38 
AnswerRe: IOCP again Pin
Mark Salsbery6-Jul-11 10:56
Mark Salsbery6-Jul-11 10:56 
GeneralRe: IOCP again Pin
csrss6-Jul-11 11:11
csrss6-Jul-11 11:11 
QuestionThe code, in short Pin
csrss6-Jul-11 11:58
csrss6-Jul-11 11:58 
AnswerRe: The code, in short Pin
Mark Salsbery6-Jul-11 13:21
Mark Salsbery6-Jul-11 13:21 
GeneralRe: The code, in short Pin
csrss6-Jul-11 14:53
csrss6-Jul-11 14:53 
GeneralRe: The code, in short Pin
Mark Salsbery6-Jul-11 15:22
Mark Salsbery6-Jul-11 15:22 
QuestionDynamic Tree Pin
john56326-Jul-11 1:28
john56326-Jul-11 1:28 
AnswerRe: Dynamic Tree Pin
Emilio Garavaglia6-Jul-11 2:19
Emilio Garavaglia6-Jul-11 2:19 
AnswerRe: Dynamic Tree Pin
Niklas L6-Jul-11 4:47
Niklas L6-Jul-11 4:47 
QuestionHow to retrieve Icon/Bitmap/HBITMAP information from CMenu? [modified] Pin
nate316-Jul-11 0:30
nate316-Jul-11 0:30 
AnswerRe: How to retrieve Icon/Bitmap/HBITMAP information from CMenu? Pin
Richard MacCutchan6-Jul-11 0:37
mveRichard MacCutchan6-Jul-11 0:37 
GeneralRe: How to retrieve Icon/Bitmap/HBITMAP information from CMenu? Pin
nate316-Jul-11 15:52
nate316-Jul-11 15:52 
QuestionRe: How to retrieve Icon/Bitmap/HBITMAP information from CMenu? Pin
David Crow6-Jul-11 3:52
David Crow6-Jul-11 3:52 
AnswerRe: How to retrieve Icon/Bitmap/HBITMAP information from CMenu? Pin
nate316-Jul-11 15:53
nate316-Jul-11 15:53 
GeneralRe: How to retrieve Icon/Bitmap/HBITMAP information from CMenu? Pin
David Crow6-Jul-11 16:55
David Crow6-Jul-11 16:55 
QuestionAt CADORecordset.Close() Application get crashed. Pin
Amrit Agr5-Jul-11 23:16
Amrit Agr5-Jul-11 23:16 
AnswerRe: At CADORecordset.Close() Application get crashed. Pin
Niklas L6-Jul-11 0:04
Niklas L6-Jul-11 0:04 
GeneralRe: At CADORecordset.Close() Application get crashed. Pin
Amrit Agr6-Jul-11 0:19
Amrit Agr6-Jul-11 0:19 
GeneralRe: At CADORecordset.Close() Application get crashed. Pin
Niklas L6-Jul-11 0:42
Niklas L6-Jul-11 0:42 
The CString does not only contain a pointer to a character array, but also more information such as allocation size and length of current data. If you use a CString as an argument you will push all that to the stack, when in fact you only want the pointer to the character array on the stack, as described by the format specifiers to CString::Format(). You will simply mess up the arguments/stack. Do the conversion I suggested in the answer above to avoid this.

This is one reason to avoid variable arguments whenever possible. The compiler cannot perform type checks.

Does your code still fail?
Questionwin32 dll is not working for c# application. Pin
Le@rner5-Jul-11 21:17
Le@rner5-Jul-11 21:17 
AnswerRe: win32 dll is not working for c# application. Pin
Cedric Moonen5-Jul-11 21:37
Cedric Moonen5-Jul-11 21:37 
QuestionRe: win32 dll is not working for c# application. Pin
Malli_S5-Jul-11 21:56
Malli_S5-Jul-11 21:56 
AnswerRe: win32 dll is not working for c# application. Pin
Le@rner5-Jul-11 22:00
Le@rner5-Jul-11 22:00 
AnswerRe: win32 dll is not working for c# application. Pin
Malli_S5-Jul-11 22:09
Malli_S5-Jul-11 22:09 

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.