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

C / C++ / MFC

 
GeneralRe: rplease help Pin
Zac Howland14-Jul-06 3:11
Zac Howland14-Jul-06 3:11 
Questionany Idea for a Project? Pin
Semion_N13-Jul-06 6:45
Semion_N13-Jul-06 6:45 
AnswerRe: any Idea for a Project? Pin
valikac13-Jul-06 7:05
valikac13-Jul-06 7:05 
GeneralRe: any Idea for a Project? Pin
Semion_N13-Jul-06 7:08
Semion_N13-Jul-06 7:08 
AnswerRe: any Idea for a Project? Pin
Wes Aday13-Jul-06 7:10
professionalWes Aday13-Jul-06 7:10 
GeneralRe: any Idea for a Project? Pin
cppcook13-Jul-06 7:17
cppcook13-Jul-06 7:17 
AnswerRe: any Idea for a Project? Pin
earl13-Jul-06 7:49
earl13-Jul-06 7:49 
GeneralRe: any Idea for a Project? Pin
Semion_N13-Jul-06 8:06
Semion_N13-Jul-06 8:06 
AnswerRe: any Idea for a Project? Pin
David Crow13-Jul-06 7:49
David Crow13-Jul-06 7:49 
AnswerRe: any Idea for a Project? Pin
FarPointer13-Jul-06 8:58
FarPointer13-Jul-06 8:58 
GeneralRe: any Idea for a Project? Pin
Semion_N13-Jul-06 8:05
Semion_N13-Jul-06 8:05 
GeneralRe: any Idea for a Project? Pin
Semion_N13-Jul-06 9:02
Semion_N13-Jul-06 9:02 
QuestionGetKeyboardState(); Pin
Max++13-Jul-06 6:18
Max++13-Jul-06 6:18 
AnswerRe: GetKeyboardState(); Pin
Randor 13-Jul-06 6:31
professional Randor 13-Jul-06 6:31 
QuestionTutorial or Learning Tools. Pin
WREY13-Jul-06 6:03
WREY13-Jul-06 6:03 
AnswerRe: Tutorial or Learning Tools. Pin
David Crow13-Jul-06 7:45
David Crow13-Jul-06 7:45 
QuestionProblems of Updating contents in an Edit box in vc6 Pin
cppcook13-Jul-06 5:22
cppcook13-Jul-06 5:22 
AnswerRe: Problems of Updating contents in an Edit box in vc6 Pin
Zac Howland13-Jul-06 5:30
Zac Howland13-Jul-06 5:30 
CEdit m_fileContent;
CFile pFile;
m_fileContent.SetWindowText(""); //clear
pFile.open(.....);
int length = pFile.GetLength();
//CString* strContent = new CString("");		// why are you putting CString on the heap?  This is a waste.
CString strContent = _T("");
pFile.Read(strContent.GetBuffer(0),length);
strContent.ReleaseBuffer();
m_fileContent.SetWindowText(strContent); //update file content
//strContent->ReleaseBuffer(0);	// need to do this before using the buffer anywhere
//delete strContent;		// not needed
pFile.Close();


If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac
GeneralRe: Problems of Updating contents in an Edit box in vc6 Pin
cppcook13-Jul-06 7:15
cppcook13-Jul-06 7:15 
AnswerRe: Problems of Updating contents in an Edit box in vc6 Pin
David Crow13-Jul-06 5:41
David Crow13-Jul-06 5:41 
QuestionHow the application knows whether the machine is Laptop or Desktop????? Pin
nagamohan_p13-Jul-06 5:04
nagamohan_p13-Jul-06 5:04 
QuestionRe: How the application knows whether the machine is Laptop or Desktop????? Pin
David Crow13-Jul-06 5:34
David Crow13-Jul-06 5:34 
AnswerRe: How the application knows whether the machine is Laptop or Desktop????? Pin
Jun Du13-Jul-06 5:47
Jun Du13-Jul-06 5:47 
QuestionSound detection [modified] Pin
Ivan Cachicatari13-Jul-06 4:48
Ivan Cachicatari13-Jul-06 4:48 
Questioncode formatting style [modified] Pin
aafcls13-Jul-06 4:19
aafcls13-Jul-06 4:19 

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.