Click here to Skip to main content
15,906,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing an "array" in C Pin
PIEBALDconsult31-Jul-15 14:17
mvePIEBALDconsult31-Jul-15 14:17 
GeneralRe: Passing an "array" in C Pin
PIEBALDconsult1-Aug-15 21:18
mvePIEBALDconsult1-Aug-15 21:18 
GeneralRe: Passing an "array" in C Pin
Chris Losinger2-Aug-15 3:52
professionalChris Losinger2-Aug-15 3:52 
GeneralRe: Passing an "array" in C Pin
PIEBALDconsult2-Aug-15 6:36
mvePIEBALDconsult2-Aug-15 6:36 
GeneralRe: Passing an "array" in C Pin
Chris Losinger2-Aug-15 7:06
professionalChris Losinger2-Aug-15 7:06 
GeneralRe: Passing an "array" in C Pin
PIEBALDconsult2-Aug-15 7:17
mvePIEBALDconsult2-Aug-15 7:17 
GeneralRe: Passing an "array" in C Pin
PIEBALDconsult4-Aug-15 15:06
mvePIEBALDconsult4-Aug-15 15:06 
GeneralRe: Passing an "array" in C Pin
Chris Losinger5-Aug-15 1:20
professionalChris Losinger5-Aug-15 1:20 
that's probably the VMS stack size.

i believe the struct returning behavior is compiler dependent (OS dependent?). some will return the struct in a register, if the struct is small enough, or on the stack. some compilers are smart enough to use the caller's struct directly so as to avoid making a copy.

that struct i showed is sizeof(int *) + sizeof(int). so, 8 or 12 bytes. nothing to worry about.

GeneralRe: Passing an "array" in C Pin
k50545-Aug-15 4:22
mvek50545-Aug-15 4:22 
GeneralRe: Passing an "array" in C Pin
CPallini31-Jul-15 21:32
mveCPallini31-Jul-15 21:32 
GeneralRe: Passing an "array" in C Pin
PIEBALDconsult1-Aug-15 5:00
mvePIEBALDconsult1-Aug-15 5:00 
GeneralRe: Passing an "array" in C Pin
CPallini1-Aug-15 5:13
mveCPallini1-Aug-15 5:13 
GeneralRe: Passing an "array" in C Pin
PIEBALDconsult1-Aug-15 5:40
mvePIEBALDconsult1-Aug-15 5:40 
GeneralRe: Passing an "array" in C Pin
CPallini1-Aug-15 5:55
mveCPallini1-Aug-15 5:55 
QuestionC++ Service Crash in Windows Server 2008 R2 Machine Pin
janaswamy uday29-Jul-15 7:26
janaswamy uday29-Jul-15 7:26 
QuestionRe: C++ Service Crash in Windows Server 2008 R2 Machine Pin
Richard MacCutchan29-Jul-15 21:10
mveRichard MacCutchan29-Jul-15 21:10 
GeneralWho has the type of remote control code, can you give me a copy? Pin
HackLee27-Jul-15 16:20
HackLee27-Jul-15 16:20 
GeneralRe: Who has the type of remote control code, can you give me a copy? Pin
enhzflep27-Jul-15 18:19
enhzflep27-Jul-15 18:19 
GeneralRe: Who has the type of remote control code, can you give me a copy? Pin
HackLee27-Jul-15 19:42
HackLee27-Jul-15 19:42 
GeneralRe: Who has the type of remote control code, can you give me a copy? Pin
HackLee27-Jul-15 19:41
HackLee27-Jul-15 19:41 
QuestionError reading characters of string Pin
Django_Untaken27-Jul-15 9:19
Django_Untaken27-Jul-15 9:19 
AnswerRe: Error reading characters of string Pin
Richard Andrew x6427-Jul-15 9:54
professionalRichard Andrew x6427-Jul-15 9:54 
GeneralRe: Error reading characters of string Pin
Django_Untaken27-Jul-15 18:06
Django_Untaken27-Jul-15 18:06 
AnswerRe: Error reading characters of string Pin
Richard Andrew x6427-Jul-15 18:21
professionalRichard Andrew x6427-Jul-15 18:21 
GeneralRe: Error reading characters of string Pin
Django_Untaken27-Jul-15 18:32
Django_Untaken27-Jul-15 18:32 

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.