Click here to Skip to main content
15,916,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionstatic varible Pin
Krishnatv25-May-06 19:41
Krishnatv25-May-06 19:41 
AnswerRe: static varible Pin
Nibu babu thomas25-May-06 20:09
Nibu babu thomas25-May-06 20:09 
GeneralRe: static varible Pin
Krishnatv25-May-06 20:33
Krishnatv25-May-06 20:33 
AnswerRe: static varible Pin
knoxplusplus29-May-06 8:00
knoxplusplus29-May-06 8:00 
Questionwhat the heck is __stdcall about? Pin
Member 303984325-May-06 19:31
Member 303984325-May-06 19:31 
AnswerRe: what the heck is __stdcall about? Pin
Nibu babu thomas25-May-06 19:41
Nibu babu thomas25-May-06 19:41 
GeneralRe: what the heck is __stdcall about? Pin
Smith#25-May-06 21:49
Smith#25-May-06 21:49 
GeneralRe: what the heck is __stdcall about? Pin
Steve S25-May-06 22:09
Steve S25-May-06 22:09 
Variable number of arguments:
Think printf, where you can pass one or more arguments, and the format control string determines how many arguments there are (hopefully correctly!).

fastcall wouldn't be suitable for functions that take more than two or three arguments, and in some cases might be slower; there aren't an unlimited number of registers on a 32 bit processor.

Generally, you don't need to specify the calling convention, but in some cases, you do, simply to ensure that the function has the one expected. Good examples are the functions you pass to things like qsort() and _beginthreadex().

Steve S
Developer for hire
GeneralRe: what the heck is __stdcall about? Pin
Smith#25-May-06 22:13
Smith#25-May-06 22:13 
GeneralRe: what the heck is __stdcall about? Pin
Nibu babu thomas25-May-06 22:15
Nibu babu thomas25-May-06 22:15 
GeneralRe: what the heck is __stdcall about? Pin
Member 303984326-May-06 19:08
Member 303984326-May-06 19:08 
AnswerRe: what the heck is __stdcall about? Pin
Hamid_RT25-May-06 20:19
Hamid_RT25-May-06 20:19 
QuestionRichEdit Errors Pin
VinayCool25-May-06 19:26
VinayCool25-May-06 19:26 
AnswerRe: RichEdit Errors Pin
Hamid_RT25-May-06 19:31
Hamid_RT25-May-06 19:31 
GeneralRe: RichEdit Errors Pin
VinayCool25-May-06 19:37
VinayCool25-May-06 19:37 
AnswerRe: RichEdit Errors Pin
Hamid_RT25-May-06 19:39
Hamid_RT25-May-06 19:39 
AnswerRe: RichEdit Errors [modified] Pin
Steve Echols25-May-06 19:41
Steve Echols25-May-06 19:41 
GeneralRe: RichEdit Errors [modified] Pin
VinayCool25-May-06 20:01
VinayCool25-May-06 20:01 
GeneralRe: RichEdit Errors Pin
Steve Echols25-May-06 20:17
Steve Echols25-May-06 20:17 
GeneralRe: RichEdit Errors Pin
VinayCool25-May-06 20:21
VinayCool25-May-06 20:21 
GeneralRe: RichEdit Errors [modified] Pin
Nibu babu thomas25-May-06 20:06
Nibu babu thomas25-May-06 20:06 
GeneralRe: RichEdit Errors Pin
Steve Echols25-May-06 20:29
Steve Echols25-May-06 20:29 
GeneralRe: RichEdit Errors Pin
Nibu babu thomas25-May-06 20:34
Nibu babu thomas25-May-06 20:34 
GeneralRe: RichEdit Errors Pin
Steve Echols25-May-06 20:42
Steve Echols25-May-06 20:42 
GeneralRe: RichEdit Errors Pin
Hamid_RT25-May-06 20:40
Hamid_RT25-May-06 20:40 

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.