Click here to Skip to main content
16,007,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Full Screen Dialog Bug Pin
Scott H. Settlemier10-Dec-02 4:01
Scott H. Settlemier10-Dec-02 4:01 
GeneralRe: Full Screen Dialog Bug Pin
mediamaster4010-Dec-02 4:23
mediamaster4010-Dec-02 4:23 
GeneralRe: Full Screen Dialog Bug Pin
Scott H. Settlemier10-Dec-02 6:41
Scott H. Settlemier10-Dec-02 6:41 
Generalfopen and CStringArray Pin
Anonymous9-Dec-02 3:09
Anonymous9-Dec-02 3:09 
GeneralRe: fopen and CStringArray Pin
Gary Kirkham9-Dec-02 3:25
Gary Kirkham9-Dec-02 3:25 
GeneralRe: fopen and CStringArray Pin
Nitron9-Dec-02 4:10
Nitron9-Dec-02 4:10 
GeneralRe: fopen and CStringArray Pin
Christian Graus9-Dec-02 8:59
protectorChristian Graus9-Dec-02 8:59 
GeneralRe: fopen and CStringArray Pin
Joe Woodbury9-Dec-02 19:18
professionalJoe Woodbury9-Dec-02 19:18 
There is no reason not to use MFC. The problem lies with the stringArrayPath.SetAt(...); you have not preallocated the size of the array and should have used stringArrayPath.SetAtGrow().

First, though, drop the fopen and use the CStdioFile class.

For the loop, simply use:

<br />
CString str;<br />
<br />
while (file.GetString(str))<br />
{<br />
<br />
// to append to the array<br />
stringArrayPath.Add(str); // you can also pass a pointer to a string<br />
<br />
// to set a specific entry<br />
stringArrayPath.SetAtGrow(entry, str);<br />
}<br />
<br />

Generalerror 1063 in StartServiceCtrlDispatcher Pin
maloo9-Dec-02 2:26
maloo9-Dec-02 2:26 
GeneralRe: error 1063 in StartServiceCtrlDispatcher Pin
Debs9-Dec-02 23:38
Debs9-Dec-02 23:38 
GeneralCTreeCtrl::OnLButtonUp doesn't get called Pin
Arjan Schouten9-Dec-02 2:22
Arjan Schouten9-Dec-02 2:22 
GeneralRe: CTreeCtrl::OnLButtonUp doesn't get called Pin
Tibor Blazko9-Dec-02 3:13
Tibor Blazko9-Dec-02 3:13 
GeneralRe: CTreeCtrl::OnLButtonUp doesn't get called Pin
Arjan Schouten9-Dec-02 3:30
Arjan Schouten9-Dec-02 3:30 
GeneralRe: CTreeCtrl::OnLButtonUp doesn't get called Pin
Tibor Blazko9-Dec-02 3:32
Tibor Blazko9-Dec-02 3:32 
GeneralTranslate Pin
hest9-Dec-02 1:43
hest9-Dec-02 1:43 
GeneralRe: Translate Pin
xi9049-Dec-02 1:51
xi9049-Dec-02 1:51 
GeneralRe: Translate Pin
jhwurmbach9-Dec-02 1:54
jhwurmbach9-Dec-02 1:54 
GeneralUsing IDL defined enums Pin
Martijn9-Dec-02 1:40
Martijn9-Dec-02 1:40 
GeneralGetClientSite returns NULL Pin
hdi99kf@syd.kth.se9-Dec-02 0:18
hdi99kf@syd.kth.se9-Dec-02 0:18 
QuestionCHtmlView ? Pin
Henrik_O9-Dec-02 0:09
Henrik_O9-Dec-02 0:09 
AnswerRe: CHtmlView ? Pin
Shaun Wilde9-Dec-02 0:34
Shaun Wilde9-Dec-02 0:34 
GeneralVC++ 7.0 compiltaion problem Pin
A victim of VC++ 7.09-Dec-02 0:03
sussA victim of VC++ 7.09-Dec-02 0:03 
GeneralRe: VC++ 7.0 compiltaion problem Pin
Chris Losinger9-Dec-02 5:00
professionalChris Losinger9-Dec-02 5:00 
GeneralHelp! Pin
Rage8-Dec-02 23:39
professionalRage8-Dec-02 23:39 
GeneralRe: Help! Pin
Michael P Butler8-Dec-02 23:54
Michael P Butler8-Dec-02 23:54 

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.