Click here to Skip to main content
15,890,336 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: When call CWnd::Creat, the parent windows parameter can't be NULL Pin
followait20-Mar-09 18:36
followait20-Mar-09 18:36 
QuestionBinary Edit Source Pin
ShiXiangYang20-Mar-09 15:53
ShiXiangYang20-Mar-09 15:53 
AnswerRe: Binary Edit Source Pin
Yusuf20-Mar-09 16:17
Yusuf20-Mar-09 16:17 
AnswerRe: Binary Edit Source Pin
Michael Schubert21-Mar-09 0:49
Michael Schubert21-Mar-09 0:49 
JokeRe: Binary Edit Source Pin
norish21-Mar-09 1:49
norish21-Mar-09 1:49 
JokeRe: Binary Edit Source Pin
Rajesh R Subramanian21-Mar-09 4:52
professionalRajesh R Subramanian21-Mar-09 4:52 
GeneralRe: Binary Edit Source Pin
Michael Schubert21-Mar-09 8:30
Michael Schubert21-Mar-09 8:30 
QuestionReadString() crashes at the end of file? [modified] Pin
AlanLai20-Mar-09 14:37
AlanLai20-Mar-09 14:37 
Hi everyone,

I am in need of help here. I have a dll which create a text file using FILE* and CFile class ( I tried both ways). At each line of text, text are "\t" delimited and "\n" at the end of text. The dll is created in C++ Visual Studio v6. There used to be a application (writen in version 6 as well) calling this dll and it works fine. Now, the application is ported into C++ VS2005 platform and calling this dll. It crashes at the end of file. Basically, it doesn't pick up the last "\n" and it run into while loop one more time. Since the additional loop doesn't see an EOF or "\n", it crashes. Can anyone tells me what's going on?

One interesting thing is that the same file reader function is used elsewhere in the same application and it works fine. Please help. I've run out of ideas and tests.

modified on Friday, March 20, 2009 9:16 PM

AnswerRe: ReadString() crashes at the end of file? Pin
CPallini21-Mar-09 1:13
mveCPallini21-Mar-09 1:13 
GeneralRe: ReadString() crashes at the end of file? Pin
AlanLai23-Mar-09 10:24
AlanLai23-Mar-09 10:24 
GeneralRe: ReadString() crashes at the end of file? Pin
CPallini23-Mar-09 10:45
mveCPallini23-Mar-09 10:45 
GeneralRe: ReadString() crashes at the end of file? Pin
AlanLai23-Mar-09 11:45
AlanLai23-Mar-09 11:45 
GeneralRe: ReadString() crashes at the end of file? Pin
AlanLai31-Mar-09 9:00
AlanLai31-Mar-09 9:00 
QuestionRun-time error stops dialog when combo box added: [8002] Window Create, and Create Dialog failure Error code-20 Pin
Goo220-Mar-09 12:00
Goo220-Mar-09 12:00 
AnswerRe: Run-time error stops dialog when combo box added: [8002] Window Create, and Create Dialog failure Error code-20 Pin
norish20-Mar-09 19:48
norish20-Mar-09 19:48 
QuestionWant to stop full screen display when using Windows media player Pin
Keith Worden20-Mar-09 8:43
Keith Worden20-Mar-09 8:43 
AnswerRe: Want to stop full screen display when using Windows media player Pin
V Shah11-Mar-10 6:28
V Shah11-Mar-10 6:28 
GeneralRe: Want to stop full screen display when using Windows media player Pin
Keith Worden11-Mar-10 6:45
Keith Worden11-Mar-10 6:45 
QuestionGetSaveFileName: does not work propoerly when the option "Hide file extension for know file type" is checked Pin
zouzoulikou20-Mar-09 7:49
zouzoulikou20-Mar-09 7:49 
AnswerRe: GetSaveFileName: does not work propoerly when the option "Hide file extension for know file type" is checked Pin
David Crow20-Mar-09 7:57
David Crow20-Mar-09 7:57 
GeneralRe: GetSaveFileName: does not work propoerly when the option "Hide file extension for know file type" is checked Pin
zouzoulikou20-Mar-09 22:48
zouzoulikou20-Mar-09 22:48 
GeneralRe: GetSaveFileName: does not work propoerly when the option "Hide file extension for know file type" is checked Pin
David Crow21-Mar-09 16:11
David Crow21-Mar-09 16:11 
AnswerRe: GetSaveFileName: does not work propoerly when the option "Hide file extension for know file type" is checked Pin
norish21-Mar-09 1:54
norish21-Mar-09 1:54 
Questionhow to use #pragma data_seq() Pin
ernst2002053020-Mar-09 7:48
ernst2002053020-Mar-09 7:48 
AnswerRe: how to use #pragma data_seq() Pin
David Crow20-Mar-09 7:55
David Crow20-Mar-09 7:55 

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.