Click here to Skip to main content
15,891,633 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOpening folders Pin
dave_long13-May-03 5:13
dave_long13-May-03 5:13 
GeneralRe: Opening folders Pin
valikac13-May-03 7:54
valikac13-May-03 7:54 
GeneralRe: Opening folders Pin
dave_long13-May-03 9:07
dave_long13-May-03 9:07 
GeneralRe: Opening folders Pin
J. Dunlap13-May-03 9:51
J. Dunlap13-May-03 9:51 
GeneralRe: Opening folders Pin
Hari Krishnan (Noida)13-May-03 17:05
Hari Krishnan (Noida)13-May-03 17:05 
GeneralRe: Opening folders Pin
dave_long13-May-03 22:09
dave_long13-May-03 22:09 
GeneralPassing a pointer to an array Pin
Tom Wright13-May-03 5:09
Tom Wright13-May-03 5:09 
GeneralRe: Passing a pointer to an array Pin
Chris Meech13-May-03 5:21
Chris Meech13-May-03 5:21 
Tom Wright wrote:
return * pArray;

Is this right?


Unfortunately no. In the absense of any other code, I will suggest the following, though it may not work.
return &pArray[0];

Questions for you, since the array is contained within a class, istead of providing direct access to the member, why not provide Set/Get methods for the strings? Why not use the CStringArray class? Or even the STL equivalent?

Chris Meech

"what makes CP different is the people and sense of community, things people will only discover if they join up and join in." Christian Graus Nov 14, 2002.

"Microsoft hasn't ever enforced its patents. Apparently they keep them for defensive reasons only. Or, they could be waiting 'til they have a critical mass of patents, enforce them all at once and win the game of Risk that they're playing with the world." Chris Sells Feb 18, 2003.
GeneralRe: Passing a pointer to an array Pin
Alvaro Mendez13-May-03 6:13
Alvaro Mendez13-May-03 6:13 
GeneralRe: Passing a pointer to an array Pin
Tom Wright13-May-03 8:50
Tom Wright13-May-03 8:50 
GeneralRe: Passing a pointer to an array Pin
Tom Wright13-May-03 8:52
Tom Wright13-May-03 8:52 
GeneralRe: Passing a pointer to an array Pin
David Crow13-May-03 9:35
David Crow13-May-03 9:35 
GeneralRe: Passing a pointer to an array Pin
Renjith Ramachandran13-May-03 7:10
Renjith Ramachandran13-May-03 7:10 
GeneralPS or PDF display/print Pin
Bartosz Bien13-May-03 5:06
Bartosz Bien13-May-03 5:06 
GeneralRe: PS or PDF display/print Pin
imsniper13-May-03 23:38
imsniper13-May-03 23:38 
QuestionHow To Get Pointer to Main Menu in case of MDI Application Pin
Anonymous13-May-03 4:50
Anonymous13-May-03 4:50 
AnswerRe: How To Get Pointer to Main Menu in case of MDI Application Pin
Gary Kirkham13-May-03 7:23
Gary Kirkham13-May-03 7:23 
QuestionHow to get data from a password protected webpage Pin
NorbertBehrens13-May-03 4:45
NorbertBehrens13-May-03 4:45 
GeneralPut button in CListCtrl Pin
JensB13-May-03 4:14
JensB13-May-03 4:14 
GeneralRe: Put button in CListCtrl Pin
basementman13-May-03 7:11
basementman13-May-03 7:11 
GeneralRe: Put button in CListCtrl Pin
Joan M13-May-03 21:52
professionalJoan M13-May-03 21:52 
GeneralCSpinButtonCtrl problem Pin
Trollslayer13-May-03 3:45
mentorTrollslayer13-May-03 3:45 
GeneralRe: CSpinButtonCtrl problem Pin
Rage13-May-03 4:07
professionalRage13-May-03 4:07 
GeneralOnly for the best ;o) Pin
MemLeak13-May-03 3:28
MemLeak13-May-03 3:28 
GeneralRe: Only for the best ;o) Pin
valikac13-May-03 8:41
valikac13-May-03 8:41 

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.