Click here to Skip to main content
15,902,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblem with CPropertyPage/Sheet Pin
el davo2-Nov-03 13:26
el davo2-Nov-03 13:26 
GeneralRe: Problem with CPropertyPage/Sheet Pin
Markyg2-Nov-03 14:56
Markyg2-Nov-03 14:56 
GeneralRe: Problem with CPropertyPage/Sheet Pin
Ravi Bhavnani2-Nov-03 15:00
professionalRavi Bhavnani2-Nov-03 15:00 
GeneralRe: Problem with CPropertyPage/Sheet Pin
el davo2-Nov-03 15:02
el davo2-Nov-03 15:02 
GeneralRe: Problem with CPropertyPage/Sheet Pin
Steve Mayfield2-Nov-03 15:01
Steve Mayfield2-Nov-03 15:01 
GeneralRe: Problem with CPropertyPage/Sheet Pin
Ravi Bhavnani2-Nov-03 15:07
professionalRavi Bhavnani2-Nov-03 15:07 
GeneralRe: Problem with CPropertyPage/Sheet Pin
Steve Mayfield4-Nov-03 9:20
Steve Mayfield4-Nov-03 9:20 
GeneralProblem with opening a file in editbox Pin
Deepak Samuel2-Nov-03 12:33
Deepak Samuel2-Nov-03 12:33 
Hi,
I tried opening a file in a edit box using the following code
CFile ComFile(triccomfilename,CFile::modeRead);

DWORD dwSize = ComFile.GetLength();
Buffer = new TCHAR[dwSize];
ComFile.Read(Buffer, dwSize);
ComFile.Close();
ccedit->SetWindowText(Buffer);

The code works perfectly, but the problem is that I get some extra characters in the edit box, for example if the file contains "HELLO" , then the edit box displays, "HELLO yyyyYYYYYYYYYYYYYYA". I dont know why it happens , can anyone help me out?.
Thanks,

Deepak Samuel
GeneralRe: Problem with opening a file in editbox Pin
Christian Graus2-Nov-03 12:46
protectorChristian Graus2-Nov-03 12:46 
GeneralRe: Problem with opening a file in editbox Pin
Deepak Samuel2-Nov-03 12:55
Deepak Samuel2-Nov-03 12:55 
GeneralExiting Dialog to calling Dialog with data Pin
Karen03022-Nov-03 12:02
Karen03022-Nov-03 12:02 
GeneralRe: Exiting Dialog to calling Dialog with data Pin
Christian Graus2-Nov-03 12:11
protectorChristian Graus2-Nov-03 12:11 
GeneralRe: Exiting Dialog to calling Dialog with data Pin
Karen03022-Nov-03 12:18
Karen03022-Nov-03 12:18 
GeneralRe: Exiting Dialog to calling Dialog with data Pin
Christian Graus2-Nov-03 12:20
protectorChristian Graus2-Nov-03 12:20 
GeneralRe: Exiting Dialog to calling Dialog with data Pin
Karen03022-Nov-03 12:41
Karen03022-Nov-03 12:41 
GeneralRe: Exiting Dialog to calling Dialog with data Pin
Christian Graus2-Nov-03 12:44
protectorChristian Graus2-Nov-03 12:44 
GeneralRe: Exiting Dialog to calling Dialog with data Pin
Karen03022-Nov-03 12:59
Karen03022-Nov-03 12:59 
GeneralRe: Exiting Dialog to calling Dialog with data Pin
Karen03022-Nov-03 13:02
Karen03022-Nov-03 13:02 
GeneralRe: Exiting Dialog to calling Dialog with data Pin
Christian Graus2-Nov-03 13:08
protectorChristian Graus2-Nov-03 13:08 
GeneralRe: Exiting Dialog to calling Dialog with data Pin
Karen03022-Nov-03 13:14
Karen03022-Nov-03 13:14 
GeneralRe: Exiting Dialog to calling Dialog with data Pin
Christian Graus2-Nov-03 13:15
protectorChristian Graus2-Nov-03 13:15 
GeneralRe: Exiting Dialog to calling Dialog with data Pin
Karen03023-Nov-03 2:05
Karen03023-Nov-03 2:05 
GeneralRe: Exiting Dialog to calling Dialog with data Pin
Christian Graus3-Nov-03 9:09
protectorChristian Graus3-Nov-03 9:09 
Questionhow to debug dll Pin
pnpfriend2-Nov-03 11:26
pnpfriend2-Nov-03 11:26 
AnswerRe: how to debug dll Pin
Brad Bruce2-Nov-03 12:35
Brad Bruce2-Nov-03 12:35 

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.