Click here to Skip to main content
15,904,655 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Help with C++ Win32 GDI Program Pin
Cedric Moonen21-Nov-07 4:08
Cedric Moonen21-Nov-07 4:08 
QuestionExtracting formatted text from Excel [modified] Pin
martinds4421-Nov-07 3:50
martinds4421-Nov-07 3:50 
QuestionActiveX Pin
ashok_toknow21-Nov-07 2:29
ashok_toknow21-Nov-07 2:29 
QuestionWizard for derivated classes Pin
Dirso21-Nov-07 2:12
Dirso21-Nov-07 2:12 
QuestionHelp regarding DeleteFile(..) Pin
chandu00421-Nov-07 1:55
chandu00421-Nov-07 1:55 
QuestionRe: Help regarding DeleteFile(..) Pin
Nelek21-Nov-07 2:00
protectorNelek21-Nov-07 2:00 
AnswerRe: Help regarding DeleteFile(..) Pin
chandu00421-Nov-07 2:16
chandu00421-Nov-07 2:16 
GeneralRe: Help regarding DeleteFile(..) Pin
Nelek21-Nov-07 3:48
protectorNelek21-Nov-07 3:48 
I make it like follows:

void CMyView::OtherFunction ()
{
	char FileName[MAX_PATH];
	GetModuleFileName(NULL, FileName, MAX_PATH);
	m_szOfflineName = FileName;
	m_szOfflineName = m_szOfflineName.Left(m_szOfflineName.ReverseFind('\\'));
	m_szOfflineName += "\\OfflinePCode.pc";
}
.
.
void CMyView::OnDestroy() 
{	CFormView::OnDestroy();

	CFile f;
	
	//The offline PCode is not needed anymore
	if (f.Open (m_szOfflineName, CFile::modeRead))
	{	f.Close ();
		f.Remove (m_szOfflineName);
	}
}


But I am in MFC, I dont know if u can use the CFile

Greetings.

--------
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

GeneralRe: Help regarding DeleteFile(..) Pin
chandu00421-Nov-07 4:51
chandu00421-Nov-07 4:51 
AnswerRe: Help regarding DeleteFile(..) Pin
chandu00421-Nov-07 2:21
chandu00421-Nov-07 2:21 
GeneralRe: Help regarding DeleteFile(..) Pin
Nelek21-Nov-07 3:19
protectorNelek21-Nov-07 3:19 
GeneralRe: Help regarding DeleteFile(..) Pin
chandu00421-Nov-07 4:49
chandu00421-Nov-07 4:49 
GeneralRe: Help regarding DeleteFile(..) Pin
Nelek21-Nov-07 20:32
protectorNelek21-Nov-07 20:32 
AnswerRe: Help regarding DeleteFile(..) Pin
Malli_S21-Nov-07 2:02
Malli_S21-Nov-07 2:02 
GeneralRe: Help regarding DeleteFile(..) Pin
chandu00421-Nov-07 2:22
chandu00421-Nov-07 2:22 
QuestionHow to print a bmp file through printer? Pin
bankey101021-Nov-07 1:42
bankey101021-Nov-07 1:42 
AnswerRe: How to print a bmp file through printer? Pin
Nelek21-Nov-07 1:59
protectorNelek21-Nov-07 1:59 
QuestionRe: How to print a bmp file through printer? Pin
fantasy121521-Nov-07 14:21
fantasy121521-Nov-07 14:21 
AnswerRe: How to print a bmp file through printer? Pin
Hamid_RT21-Nov-07 18:56
Hamid_RT21-Nov-07 18:56 
AnswerRe: How to print a bmp file through printer? Pin
Nelek21-Nov-07 20:29
protectorNelek21-Nov-07 20:29 
AnswerRe: How to print a bmp file through printer? Pin
Hamid_RT21-Nov-07 6:58
Hamid_RT21-Nov-07 6:58 
GeneralRe: How to print a bmp file through printer? Pin
Nelek21-Nov-07 20:24
protectorNelek21-Nov-07 20:24 
Questionget height and width of image in pictur box Pin
CJ94200221-Nov-07 1:20
CJ94200221-Nov-07 1:20 
AnswerRe: get height and width of image in pictur box Pin
Mark Salsbery21-Nov-07 5:45
Mark Salsbery21-Nov-07 5:45 
QuestionRe: get height and width of image in pictur box Pin
Hamid_RT21-Nov-07 6:56
Hamid_RT21-Nov-07 6:56 

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.