Click here to Skip to main content
15,907,326 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Error in CodeProject article "Calculating a Rich Edit Control Minimum Size" Pin
Jochen Arndt15-Aug-17 3:05
professionalJochen Arndt15-Aug-17 3:05 
GeneralRe: Error in CodeProject article "Calculating a Rich Edit Control Minimum Size" Pin
ForNow15-Aug-17 3:14
ForNow15-Aug-17 3:14 
Questionfunction soft thresholding Pin
saidinsan00000000013-Aug-17 3:13
saidinsan00000000013-Aug-17 3:13 
AnswerRe: function soft thresholding Pin
Victor Nijegorodov13-Aug-17 7:00
Victor Nijegorodov13-Aug-17 7:00 
GeneralRe: function soft thresholding Pin
David Crow14-Aug-17 4:07
David Crow14-Aug-17 4:07 
QuestionC function call question. Pin
samzcs11-Aug-17 3:18
samzcs11-Aug-17 3:18 
AnswerRe: C function call question. Pin
Chris Losinger11-Aug-17 3:36
professionalChris Losinger11-Aug-17 3:36 
GeneralRe: C function call question. Pin
samzcs11-Aug-17 3:50
samzcs11-Aug-17 3:50 
GeneralRe: C function call question. Pin
Chris Losinger11-Aug-17 3:52
professionalChris Losinger11-Aug-17 3:52 
GeneralRe: C function call question. Pin
samzcs11-Aug-17 4:22
samzcs11-Aug-17 4:22 
GeneralRe: C function call question. Pin
«_Superman_»14-Aug-17 15:50
professional«_Superman_»14-Aug-17 15:50 
GeneralRe: C function call question. Pin
Richard MacCutchan11-Aug-17 3:59
mveRichard MacCutchan11-Aug-17 3:59 
GeneralRe: C function call question. Pin
k505411-Aug-17 5:13
mvek505411-Aug-17 5:13 
You shoud correct your caller.h to have the correct prototype for A(). Then #include caller.h in both where you define A() and where you invoke it.

This "works", due to C calling conventions, where the caller is responsible for pushing and popping arguments off the stack. In your case the caller doesn't push anything on the stack. When A() executes it will use whatever values are on the stack as its parameters, which in this case could be any value at all.
GeneralRe: C function call question. Pin
k505411-Aug-17 10:35
mvek505411-Aug-17 10:35 
AnswerRe: C function call question. Pin
Kornfeld Eliyahu Peter12-Aug-17 23:47
professionalKornfeld Eliyahu Peter12-Aug-17 23:47 
QuestionRe: C function call question. Pin
David Crow14-Aug-17 2:16
David Crow14-Aug-17 2:16 
AnswerRe: C function call question. Pin
Kornfeld Eliyahu Peter14-Aug-17 2:54
professionalKornfeld Eliyahu Peter14-Aug-17 2:54 
QuestionRe: C function call question. Pin
David Crow14-Aug-17 2:57
David Crow14-Aug-17 2:57 
AnswerRe: C function call question. Pin
Kornfeld Eliyahu Peter14-Aug-17 4:02
professionalKornfeld Eliyahu Peter14-Aug-17 4:02 
QuestionOut of Memory Exception in C++ Pin
divya0310-Aug-17 2:16
divya0310-Aug-17 2:16 
QuestionRe: Out of Memory Exception in C++ Pin
David Crow10-Aug-17 3:19
David Crow10-Aug-17 3:19 
AnswerRe: Out of Memory Exception in C++ Pin
divya0310-Aug-17 3:26
divya0310-Aug-17 3:26 
QuestionRe: Out of Memory Exception in C++ Pin
David Crow10-Aug-17 3:32
David Crow10-Aug-17 3:32 
AnswerRe: Out of Memory Exception in C++ Pin
divya0310-Aug-17 17:24
divya0310-Aug-17 17:24 
AnswerRe: Out of Memory Exception in C++ Pin
jeron110-Aug-17 3:54
jeron110-Aug-17 3:54 

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.