Click here to Skip to main content
14,430,522 members

C / C++ / MFC

 
GeneralRe: Passing an "array" in C Pin
PIEBALDconsult2-Aug-15 7:36
professionalPIEBALDconsult2-Aug-15 7:36 
GeneralRe: Passing an "array" in C Pin
Chris Losinger2-Aug-15 8:06
professionalChris Losinger2-Aug-15 8:06 
GeneralRe: Passing an "array" in C Pin
PIEBALDconsult2-Aug-15 8:17
professionalPIEBALDconsult2-Aug-15 8:17 
GeneralRe: Passing an "array" in C Pin
PIEBALDconsult4-Aug-15 16:06
professionalPIEBALDconsult4-Aug-15 16:06 
GeneralRe: Passing an "array" in C Pin
Chris Losinger5-Aug-15 2:20
professionalChris Losinger5-Aug-15 2:20 
GeneralRe: Passing an "array" in C Pin
k50545-Aug-15 5:22
Memberk50545-Aug-15 5:22 
GeneralRe: Passing an "array" in C Pin
CPallini31-Jul-15 22:32
mveCPallini31-Jul-15 22:32 
GeneralRe: Passing an "array" in C Pin
PIEBALDconsult1-Aug-15 6:00
professionalPIEBALDconsult1-Aug-15 6:00 
Thanks.

The sentinel method worked well in this case, but then Chris Losinger suggested method 3 -- using a container*. So I'm using that now. This technique has the added benefit that I can store the number of items allocated as well as the number of items in use -- sort of like how a List works in .net. I can add items up to the limit (I have no need to expand the array; I know how many items I need up front).


* Didn't we used to call that a Control Block? A simple way to avoid having bullions and bullions of function parameters?
GeneralRe: Passing an "array" in C Pin
CPallini1-Aug-15 6:13
mveCPallini1-Aug-15 6:13 
GeneralRe: Passing an "array" in C Pin
PIEBALDconsult1-Aug-15 6:40
professionalPIEBALDconsult1-Aug-15 6:40 
GeneralRe: Passing an "array" in C Pin
CPallini1-Aug-15 6:55
mveCPallini1-Aug-15 6:55 
QuestionC++ Service Crash in Windows Server 2008 R2 Machine Pin
janaswamy uday29-Jul-15 8:26
Memberjanaswamy uday29-Jul-15 8:26 
QuestionRe: C++ Service Crash in Windows Server 2008 R2 Machine Pin
Richard MacCutchan29-Jul-15 22:10
communityengineerRichard MacCutchan29-Jul-15 22:10 
GeneralWho has the type of remote control code, can you give me a copy? Pin
HackLee27-Jul-15 17:20
MemberHackLee27-Jul-15 17:20 
GeneralRe: Who has the type of remote control code, can you give me a copy? Pin
enhzflep27-Jul-15 19:19
Memberenhzflep27-Jul-15 19:19 
GeneralRe: Who has the type of remote control code, can you give me a copy? Pin
HackLee27-Jul-15 20:42
MemberHackLee27-Jul-15 20:42 
GeneralRe: Who has the type of remote control code, can you give me a copy? Pin
HackLee27-Jul-15 20:41
MemberHackLee27-Jul-15 20:41 
QuestionError reading characters of string Pin
Django_Untaken27-Jul-15 10:19
MemberDjango_Untaken27-Jul-15 10:19 
AnswerRe: Error reading characters of string Pin
Richard Andrew x6427-Jul-15 10:54
professionalRichard Andrew x6427-Jul-15 10:54 
GeneralRe: Error reading characters of string Pin
Django_Untaken27-Jul-15 19:06
MemberDjango_Untaken27-Jul-15 19:06 
AnswerRe: Error reading characters of string Pin
Richard Andrew x6427-Jul-15 19:21
professionalRichard Andrew x6427-Jul-15 19:21 
GeneralRe: Error reading characters of string Pin
Django_Untaken27-Jul-15 19:32
MemberDjango_Untaken27-Jul-15 19:32 
AnswerRe: Error reading characters of string Pin
Richard Andrew x6427-Jul-15 19:58
professionalRichard Andrew x6427-Jul-15 19:58 
AnswerRe: Error reading characters of string Pin
Albert Holguin28-Jul-15 7:23
professionalAlbert Holguin28-Jul-15 7:23 
QuestionRe: Error reading characters of string Pin
Richard MacCutchan27-Jul-15 22:02
communityengineerRichard MacCutchan27-Jul-15 22:02 

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.