Click here to Skip to main content
15,927,799 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Appending & inseting Text in RichEdit Pin
Mark Salsbery15-Feb-07 7:04
Mark Salsbery15-Feb-07 7:04 
QuestionReference class from global Pin
Oliver12314-Feb-07 18:18
Oliver12314-Feb-07 18:18 
AnswerRe: Reference class from global Pin
jhwurmbach14-Feb-07 21:59
jhwurmbach14-Feb-07 21:59 
Questionc programming Pin
deeps_cute14-Feb-07 17:05
deeps_cute14-Feb-07 17:05 
AnswerRe: c programming Pin
Waldermort14-Feb-07 20:22
Waldermort14-Feb-07 20:22 
QuestionHow to creat a new folder and a new file Pin
zhangguoliming14-Feb-07 9:20
zhangguoliming14-Feb-07 9:20 
QuestionRe: How to creat a new folder and a new file Pin
David Crow14-Feb-07 9:54
David Crow14-Feb-07 9:54 
AnswerRe: How to creat a new folder and a new file Pin
#realJSOP14-Feb-07 10:01
professional#realJSOP14-Feb-07 10:01 
1) don't put m_Luting in a _T() macro.

2) Since you're using MFC, use it all the way...

if (CreateDirectory(m_Luting))
{
	CString sPath;
	sPath.Format("%s\\%s%s", m_Luting, m_Name, stName);
	CFile file;
	CFileException e;
	if (file.Open(sPath, CFile::modeCreate | CFile::modeWrite, &e)
	{
		#ifdef _DEBUG
		afxDump << "File could not be opened " << e.m_cause << "\n";
		#endif
		return;
	}
	else
	{
		file.Close();
	}
}
else
{
	AfxMessageBox("Could not create folder.");
}



"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


AnswerRe: How to creat a new folder and a new file Pin
Sceptic Mole14-Feb-07 10:19
Sceptic Mole14-Feb-07 10:19 
AnswerRe: How to creat a new folder and a new file Pin
Hamid_RT14-Feb-07 17:48
Hamid_RT14-Feb-07 17:48 
QuestionApplication name depending on code #define? Pin
suggam14-Feb-07 8:10
suggam14-Feb-07 8:10 
AnswerRe: Application name depending on code #define? Pin
Mark Salsbery14-Feb-07 8:39
Mark Salsbery14-Feb-07 8:39 
AnswerRe: Application name depending on code #define? [modified] Pin
#realJSOP14-Feb-07 9:49
professional#realJSOP14-Feb-07 9:49 
GeneralRe: Application name depending on code #define? Pin
jhwurmbach14-Feb-07 22:03
jhwurmbach14-Feb-07 22:03 
GeneralRe: Application name depending on code #define? Pin
suggam15-Feb-07 3:45
suggam15-Feb-07 3:45 
GeneralRe: Application name depending on code #define? Pin
#realJSOP15-Feb-07 8:51
professional#realJSOP15-Feb-07 8:51 
GeneralRe: Application name depending on code #define? Pin
suggam15-Feb-07 12:01
suggam15-Feb-07 12:01 
QuestionPassing pointers from VB Pin
Renato Carvalho14-Feb-07 7:52
Renato Carvalho14-Feb-07 7:52 
GeneralRe: Passing pointers from VB Pin
Renato Carvalho14-Feb-07 8:16
Renato Carvalho14-Feb-07 8:16 
QuestionVirtual Memory Question Pin
act_x14-Feb-07 5:50
act_x14-Feb-07 5:50 
AnswerRe: Virtual Memory Question Pin
Maximilien14-Feb-07 6:29
Maximilien14-Feb-07 6:29 
AnswerRe: Virtual Memory Question Pin
toxcct14-Feb-07 6:33
toxcct14-Feb-07 6:33 
AnswerRe: Virtual Memory Question Pin
Stephen Hewitt14-Feb-07 11:37
Stephen Hewitt14-Feb-07 11:37 
Questionvista-vs 2005 compatability Pin
beegu14-Feb-07 5:19
beegu14-Feb-07 5:19 
AnswerRe: vista-vs 2005 compatability Pin
toxcct14-Feb-07 6:02
toxcct14-Feb-07 6:02 

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.