Click here to Skip to main content
15,890,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetProcAddress returns wrong address for itself Pin
FotisSs6-Oct-09 0:08
FotisSs6-Oct-09 0:08 
GeneralRe: GetProcAddress returns wrong address for itself Pin
FotisSs6-Oct-09 0:59
FotisSs6-Oct-09 0:59 
QuestionDeallocating data allocated in MFC thread Pin
Chesnokov Yuriy5-Oct-09 21:24
professionalChesnokov Yuriy5-Oct-09 21:24 
AnswerRe: Deallocating data allocated in MFC thread Pin
Sameerkumar Namdeo5-Oct-09 22:08
Sameerkumar Namdeo5-Oct-09 22:08 
AnswerRe: Deallocating data allocated in MFC thread Pin
David Crow6-Oct-09 3:09
David Crow6-Oct-09 3:09 
QuestionRange->GetValue() Pin
MsmVc5-Oct-09 20:57
MsmVc5-Oct-09 20:57 
QuestionGetting function result from Sheetcalculate event of Excel::WorkbookEvents Pin
NarVish5-Oct-09 19:27
NarVish5-Oct-09 19:27 
QuestionSave Folder path Pin
Game-point5-Oct-09 18:36
Game-point5-Oct-09 18:36 
hi

i have little bit problem in how to get folder path ??

UpdateData();
	CFile __file;
	CFileDialog __FileDialog(true,"*.*",NULL,OFN_EXPLORER,"All Files : (*.*)|*.*||");
	//CFileDialog __FileDialog(TRUE, _T (".xyz"), 0, 4 | 2, _T ("XYZ Files(*.xyz)|*.xyz All Files(*.*)|*.*||"), this, 0, 0); 
	if (__FileDialog.DoModal() == IDOK)
	{
		if( __file.Open(__FileDialog.GetFileName(), CFile::modeRead) == FALSE )
			return;
		<big>CArchive ar(&__file, CArchive::load);</big>		
	}
	__file.Close();
	UpdateData(true);


here output is : D:\2009\October\Visual Studio Projects\visual\centerI.TIF

but i need save this file path :
D:\2009\October\Visual Studio Projects\visual\

please how to get folder path ?


Thanks
AnswerRe: Save Folder path Pin
Naveen5-Oct-09 19:03
Naveen5-Oct-09 19:03 
GeneralRe: Save Folder path Pin
Game-point5-Oct-09 19:11
Game-point5-Oct-09 19:11 
GeneralRe: Save Folder path Pin
Naveen5-Oct-09 19:14
Naveen5-Oct-09 19:14 
GeneralRe: Save Folder path Pin
Game-point5-Oct-09 19:25
Game-point5-Oct-09 19:25 
GeneralRe: Save Folder path Pin
Naveen5-Oct-09 20:06
Naveen5-Oct-09 20:06 
GeneralRe: Save Folder path Pin
Game-point5-Oct-09 20:24
Game-point5-Oct-09 20:24 
QuestionRe: Save Folder path Pin
David Crow6-Oct-09 3:14
David Crow6-Oct-09 3:14 
AnswerRe: Save Folder path Pin
S p k 5215-Oct-09 22:49
S p k 5215-Oct-09 22:49 
AnswerRe: Save Folder path Pin
David Crow6-Oct-09 3:13
David Crow6-Oct-09 3:13 
QuestionHarmful USB Devices Pin
NetDefender 20095-Oct-09 8:21
NetDefender 20095-Oct-09 8:21 
QuestionRe: Harmful USB Devices Pin
David Crow5-Oct-09 8:24
David Crow5-Oct-09 8:24 
QuestionHow to create a program for querying active directory using visual C++ Pin
raja 45-Oct-09 4:55
raja 45-Oct-09 4:55 
QuestionRe: How to create a program for querying active directory using visual C++ Pin
CPallini5-Oct-09 6:57
mveCPallini5-Oct-09 6:57 
Questionconvert CString to double Pin
soongez5-Oct-09 4:46
soongez5-Oct-09 4:46 
AnswerRe: convert CString to double Pin
Code-o-mat5-Oct-09 5:11
Code-o-mat5-Oct-09 5:11 
AnswerRe: convert CString to double Pin
Cedric Moonen5-Oct-09 7:50
Cedric Moonen5-Oct-09 7:50 
GeneralRe: convert CString to double Pin
soongez5-Oct-09 16:27
soongez5-Oct-09 16:27 

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.