Click here to Skip to main content
15,921,643 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: check how many variable arguments are passed? Pin
CPallini7-Jun-07 3:57
mveCPallini7-Jun-07 3:57 
GeneralRe: check how many variable arguments are passed? Pin
hansipet7-Jun-07 4:03
hansipet7-Jun-07 4:03 
GeneralRe: check how many variable arguments are passed? Pin
Roger Stoltz7-Jun-07 4:03
Roger Stoltz7-Jun-07 4:03 
GeneralRe: check how many variable arguments are passed? Pin
hansipet7-Jun-07 5:46
hansipet7-Jun-07 5:46 
GeneralRe: check how many variable arguments are passed? Pin
Roger Stoltz7-Jun-07 6:42
Roger Stoltz7-Jun-07 6:42 
QuestionHook Procedure not working when window is minimized Pin
Jayapal Chandran6-Jun-07 23:41
Jayapal Chandran6-Jun-07 23:41 
QuestionManaging Bitrate through Programming Pin
Andy Rama6-Jun-07 23:22
Andy Rama6-Jun-07 23:22 
QuestionEarly Morning blues - Array of object pointers Pin
mcsherry6-Jun-07 22:57
mcsherry6-Jun-07 22:57 
QuestionRe: Early Morning blues - Array of object pointers Pin
mcsherry6-Jun-07 23:00
mcsherry6-Jun-07 23:00 
AnswerRe: Early Morning blues - Array of object pointers Pin
Cedric Moonen6-Jun-07 23:08
Cedric Moonen6-Jun-07 23:08 
GeneralRe: Early Morning blues - Array of object pointers Pin
mcsherry6-Jun-07 23:45
mcsherry6-Jun-07 23:45 
GeneralRe: Early Morning blues - Array of object pointers Pin
Cedric Moonen7-Jun-07 0:05
Cedric Moonen7-Jun-07 0:05 
QuestionString Pin
mazeed6-Jun-07 22:53
mazeed6-Jun-07 22:53 
AnswerRe: String Pin
SandipG 7-Jun-07 1:21
SandipG 7-Jun-07 1:21 
GeneralRe: String Pin
mazeed7-Jun-07 14:50
mazeed7-Jun-07 14:50 
GeneralRe: String Pin
mazeed7-Jun-07 14:56
mazeed7-Jun-07 14:56 
QuestionRe: String Pin
David Crow7-Jun-07 4:24
David Crow7-Jun-07 4:24 
QuestionSummation of numbers Pin
LiYS6-Jun-07 22:50
LiYS6-Jun-07 22:50 
AnswerRe: Summation of numbers Pin
CPallini6-Jun-07 23:21
mveCPallini6-Jun-07 23:21 
AnswerRe: Summation of numbers Pin
prasad_som6-Jun-07 23:42
prasad_som6-Jun-07 23:42 
AnswerRe: Summation of numbers Pin
Rajkumar R6-Jun-07 23:45
Rajkumar R6-Jun-07 23:45 
GeneralRe: Summation of numbers Pin
LiYS7-Jun-07 0:50
LiYS7-Jun-07 0:50 
AnswerRe: Summation of numbers Pin
Rajkumar R7-Jun-07 3:00
Rajkumar R7-Jun-07 3:00 
There is nothing theoritical, It depends on the implementation of the compiler.

if _asm::call is the opcode for a function call, then it has to place its return value in some register/memory location;

I guessed it is some where on the return mechanism and verified in code dissassembly.

int n = ss(4); will be something like
push 4
call ss
mov dword ptr [n],eax

After a call, we need the return value, called subroutine places its return value in eax.

Iam not sure, the theory of VC++ compiler is available open, but i believe this depends on the compiler implementation, for instance gcc compiler may not behave the same, hence most compiler flashes warning some thing like "not all code path returns value"

Best Regards
Raj
AnswerRe: Summation of numbers Pin
Rajkumar R7-Jun-07 0:09
Rajkumar R7-Jun-07 0:09 
Questionc++ DLL get parameters Pin
Hayden256-Jun-07 22:47
Hayden256-Jun-07 22:47 

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.