Click here to Skip to main content
15,887,267 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: win32 dll is not working for c# application. Pin
Le@rner5-Jul-11 22:34
Le@rner5-Jul-11 22:34 
GeneralRe: win32 dll is not working for c# application. Pin
Malli_S5-Jul-11 23:46
Malli_S5-Jul-11 23:46 
QuestionSometimes variable is not created using add variable wizard in VC++ 10 Pin
VCProgrammer5-Jul-11 20:26
VCProgrammer5-Jul-11 20:26 
AnswerRe: Sometimes variable is not created using add variable wizard in VC++ 10 Pin
Rajesh R Subramanian5-Jul-11 21:08
professionalRajesh R Subramanian5-Jul-11 21:08 
AnswerRe: Sometimes variable is not created using add variable wizard in VC++ 10 Pin
Niklas L6-Jul-11 0:10
Niklas L6-Jul-11 0:10 
AnswerRe: Sometimes variable is not created using add variable wizard in VC++ 10 Pin
Albert Holguin6-Jul-11 3:55
professionalAlbert Holguin6-Jul-11 3:55 
GeneralRe: Sometimes variable is not created using add variable wizard in VC++ 10 Pin
VCProgrammer6-Jul-11 21:05
VCProgrammer6-Jul-11 21:05 
GeneralRe: Sometimes variable is not created using add variable wizard in VC++ 10 Pin
Albert Holguin7-Jul-11 3:54
professionalAlbert Holguin7-Jul-11 3:54 
QuestionMemory Usage Error Pin
Anu_Bala5-Jul-11 18:54
Anu_Bala5-Jul-11 18:54 
AnswerRe: Memory Usage Error Pin
Mark Salsbery5-Jul-11 19:41
Mark Salsbery5-Jul-11 19:41 
GeneralRe: Memory Usage Error Pin
Anu_Bala5-Jul-11 19:52
Anu_Bala5-Jul-11 19:52 
AnswerRe: Memory Usage Error Pin
Malli_S5-Jul-11 21:22
Malli_S5-Jul-11 21:22 

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.