Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Shared data problem, use of #pragma data_seg() Pin
Blake Miller17-Jun-05 6:53
Blake Miller17-Jun-05 6:53 
GeneralRe: Shared data problem, use of #pragma data_seg() Pin
Vaibhav Sanghavi20-Jun-05 2:27
Vaibhav Sanghavi20-Jun-05 2:27 
GeneralC++ file I/O Pin
Hachaso17-Jun-05 0:49
Hachaso17-Jun-05 0:49 
GeneralRe: C++ file I/O Pin
toxcct17-Jun-05 0:59
toxcct17-Jun-05 0:59 
GeneralRe: C++ file I/O Pin
xiaohe52117-Jun-05 1:14
xiaohe52117-Jun-05 1:14 
GeneralRe: C++ file I/O Pin
toxcct17-Jun-05 1:24
toxcct17-Jun-05 1:24 
GeneralRe: C++ file I/O Pin
Bob Stanneveld17-Jun-05 1:44
Bob Stanneveld17-Jun-05 1:44 
GeneralRe: C++ file I/O Pin
David Crow17-Jun-05 2:25
David Crow17-Jun-05 2:25 
Hachaso wrote:
file.getline(buf, 100);

If you are going to be asking for 100 bytes from the file, the buffer needs to be large enough. As it stands you are only allocating room for 1. Change the allocation to:

buf = new char[100];
Don't forget to delete it when done!


"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown


GeneralASCII text files under CE Pin
Member 205289016-Jun-05 23:43
Member 205289016-Jun-05 23:43 
GeneralRe: ASCII text files under CE Pin
John R. Shaw17-Jun-05 0:22
John R. Shaw17-Jun-05 0:22 
GeneralRe: ASCII text files under CE Pin
Member 205289017-Jun-05 5:21
Member 205289017-Jun-05 5:21 
Generalword automation Pin
vcpgmr16-Jun-05 23:29
vcpgmr16-Jun-05 23:29 
GeneralRe: word automation Pin
Rage17-Jun-05 1:44
professionalRage17-Jun-05 1:44 
Questionhow to add static control to a toolbar? Pin
ThinkingPrometheus16-Jun-05 23:14
ThinkingPrometheus16-Jun-05 23:14 
GeneralSet focus to the edit box Pin
topagarwal16-Jun-05 22:51
topagarwal16-Jun-05 22:51 
GeneralRe: Set focus to the edit box Pin
John R. Shaw16-Jun-05 23:09
John R. Shaw16-Jun-05 23:09 
GeneralAssertion on Context sensitive help Pin
topagarwal16-Jun-05 22:46
topagarwal16-Jun-05 22:46 
GeneralRe: Assertion on Context sensitive help Pin
BlackDice17-Jun-05 2:56
BlackDice17-Jun-05 2:56 
GeneralRe: Assertion on Context sensitive help Pin
BlackDice17-Jun-05 4:46
BlackDice17-Jun-05 4:46 
QuestionHow to set default radio button in MFC Pin
Vaclav16-Jun-05 22:09
Vaclav16-Jun-05 22:09 
AnswerRe: How to set default radio button in MFC Pin
Jitendra gangwar16-Jun-05 22:17
Jitendra gangwar16-Jun-05 22:17 
GeneralRe: How to set default radio button in MFC Pin
Vaclav17-Jun-05 6:14
Vaclav17-Jun-05 6:14 
AnswerRe: How to set default radio button in MFC Pin
Priyank Bolia16-Jun-05 22:23
Priyank Bolia16-Jun-05 22:23 
AnswerRe: How to set default radio button in MFC Pin
David Crow17-Jun-05 2:30
David Crow17-Jun-05 2:30 
AnswerRe: How to set default radio button in MFC Pin
Vaclav17-Jun-05 6:06
Vaclav17-Jun-05 6:06 

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.