Click here to Skip to main content
15,898,740 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: ATLASSERT question Pin
KarstenK17-Dec-08 23:01
mveKarstenK17-Dec-08 23:01 
QuestionHow to attach my window to another? Pin
extreme00117-Dec-08 21:40
extreme00117-Dec-08 21:40 
QuestionDoModal creates problem.. Pin
m_mun17-Dec-08 21:10
m_mun17-Dec-08 21:10 
AnswerRe: DoModal creates problem.. Pin
Cedric Moonen17-Dec-08 21:20
Cedric Moonen17-Dec-08 21:20 
GeneralRe: DoModal creates problem.. Pin
m_mun17-Dec-08 21:34
m_mun17-Dec-08 21:34 
GeneralRe: DoModal creates problem.. Pin
Cedric Moonen17-Dec-08 22:41
Cedric Moonen17-Dec-08 22:41 
AnswerRe: DoModal creates problem.. Pin
CPallini17-Dec-08 22:22
mveCPallini17-Dec-08 22:22 
Questionhow to save file in CFileDialog ? Pin
AnithaSubramani17-Dec-08 18:20
AnithaSubramani17-Dec-08 18:20 
Hi All,

Im having the ex.txt file in one variable.I need to save this file into some other location using file browser(browse button).
code is:
CFile f;

	char strFilter[] = { "BCR Files (*.bcr)|*.bcr|All Files (*.*)|*.*||" };

	CFileDialog FileDlg(FALSE, ".bcr", NULL, 0, strFilter);

	if( FileDlg.DoModal() == IDOK )
	{
	f.Open(FileDlg.GetFileName(), CFile::modeCreate | CFile::modeWrite);
		CArchive ar(&f, CArchive::store);
	ar.Close();
	}
	else
		return;

	f.Close();


How to automatically give this ex.txt in File name.

Pls help me....

Thanks & Regards

Anitha
AnswerRe: how to save file in CFileDialog ? Pin
Naveen17-Dec-08 18:50
Naveen17-Dec-08 18:50 
GeneralRe: how to save file in CFileDialog ? Pin
AnithaSubramani17-Dec-08 19:15
AnithaSubramani17-Dec-08 19:15 
Questionhelp.. Pin
ramina sen17-Dec-08 17:50
ramina sen17-Dec-08 17:50 
AnswerRe: help.. Pin
L. Madhavan17-Dec-08 18:11
L. Madhavan17-Dec-08 18:11 
AnswerRe: help.. Pin
Malli_S17-Dec-08 18:18
Malli_S17-Dec-08 18:18 
AnswerRe: help.. Pin
Jijo.Raj17-Dec-08 21:01
Jijo.Raj17-Dec-08 21:01 
AnswerRe: help.. Pin
aks.17-Dec-08 22:54
aks.17-Dec-08 22:54 
QuestionVisual C++ 6.0 and Visual Studio 2005 Pin
izyani17-Dec-08 14:23
izyani17-Dec-08 14:23 
QuestionVC++ 2008 Command line builder Pin
pratap198017-Dec-08 8:24
pratap198017-Dec-08 8:24 
AnswerRe: VC++ 2008 Command line builder Pin
led mike17-Dec-08 9:17
led mike17-Dec-08 9:17 
AnswerRe: VC++ 2008 Command line builder Pin
Jijo.Raj17-Dec-08 9:42
Jijo.Raj17-Dec-08 9:42 
QuestionUsing CRecordset with foreign keys Pin
mevatron117-Dec-08 8:11
mevatron117-Dec-08 8:11 
AnswerRe: Using CRecordset with foreign keys Pin
led mike17-Dec-08 9:13
led mike17-Dec-08 9:13 
GeneralRe: Using CRecordset with foreign keys Pin
mevatron117-Dec-08 11:16
mevatron117-Dec-08 11:16 
GeneralRe: Using CRecordset with foreign keys Pin
led mike18-Dec-08 6:53
led mike18-Dec-08 6:53 
GeneralRe: Using CRecordset with foreign keys Pin
mevatron118-Dec-08 7:17
mevatron118-Dec-08 7:17 
QuestionRe: Using CRecordset with foreign keys Pin
David Crow17-Dec-08 10:30
David Crow17-Dec-08 10:30 

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.