Click here to Skip to main content
15,921,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Regarding writing object into file anf retrieve it back as require Pin
H4u3225-Oct-07 19:43
H4u3225-Oct-07 19:43 
GeneralRe: Regarding writing object into file anf retrieve it back as require Pin
chandu00425-Oct-07 19:55
chandu00425-Oct-07 19:55 
GeneralRe: Regarding writing object into file anf retrieve it back as require Pin
H4u3225-Oct-07 20:07
H4u3225-Oct-07 20:07 
GeneralRe: Regarding writing object into file anf retrieve it back as require [modified] Pin
chandu00425-Oct-07 21:58
chandu00425-Oct-07 21:58 
AnswerRe: Regarding writing object into file anf retrieve it back as require Pin
Paresh Chitte25-Oct-07 20:05
Paresh Chitte25-Oct-07 20:05 
QuestionHow to Select Directory throught File Open dialog Pin
GauranG Shah25-Oct-07 19:14
GauranG Shah25-Oct-07 19:14 
AnswerRe: How to Select Directory throught File Open dialog Pin
Nishad S25-Oct-07 20:29
Nishad S25-Oct-07 20:29 
AnswerRe: How to Select Directory throught File Open dialog Pin
Anurag Gandhi25-Oct-07 22:57
professionalAnurag Gandhi25-Oct-07 22:57 
Use the followign code:

CString YourClassName::GetFolderName()
{
	BROWSEINFO br;

	CString title = "Select the folder to convert its files";
	char buff[MAX_PATH];

	br.hwndOwner = m_hWnd;
	br.pidlRoot = NULL;
	br.lParam = NULL;
	br.lpfn = NULL;
	br.lpszTitle =( (LPTSTR) ((LPCTSTR)title));
	br.pszDisplayName =(LPTSTR) buff;
	//br.ulFlags = BIF_BROWSEINCLUDEFILES;
	br.ulFlags = BIF_RETURNONLYFSDIRS;
	
	LPITEMIDLIST item;
	item = ::SHBrowseForFolder ( &br );
	::SHGetPathFromIDList ( item, buff );
	
	return buff;
}


Hoping that it will help you.

Anurag Gandhi.
http://www.softgandhi.co.nr
Life is a computer program and every one is the programmer of his own life.

GeneralRe: How to Select Directory throught File Open dialog Pin
JudyL_MD26-Oct-07 3:03
JudyL_MD26-Oct-07 3:03 
GeneralRe: How to Select Directory throught File Open dialog Pin
Anurag Gandhi26-Oct-07 3:42
professionalAnurag Gandhi26-Oct-07 3:42 
AnswerRe: How to Select Directory throught File Open dialog Pin
JudyL_MD26-Oct-07 3:04
JudyL_MD26-Oct-07 3:04 
QuestionFind the EOF in CFile Pin
CodingLover25-Oct-07 19:14
CodingLover25-Oct-07 19:14 
AnswerRe: Find the EOF in CFile Pin
chandu00425-Oct-07 19:38
chandu00425-Oct-07 19:38 
GeneralRe: Find the EOF in CFile Pin
CodingLover25-Oct-07 19:55
CodingLover25-Oct-07 19:55 
AnswerRe: Find the EOF in CFile Pin
Nishad S25-Oct-07 20:43
Nishad S25-Oct-07 20:43 
GeneralRe: Find the EOF in CFile Pin
CodingLover25-Oct-07 21:24
CodingLover25-Oct-07 21:24 
GeneralRe: Find the EOF in CFile Pin
chandu00425-Oct-07 22:02
chandu00425-Oct-07 22:02 
GeneralRe: Find the EOF in CFile Pin
Nishad S25-Oct-07 22:05
Nishad S25-Oct-07 22:05 
AnswerRe: Find the EOF in CFile Pin
CodingLover30-Oct-07 19:35
CodingLover30-Oct-07 19:35 
QuestionVarious projects in one workspace Pin
neha.agarwal2725-Oct-07 18:41
neha.agarwal2725-Oct-07 18:41 
AnswerRe: Various projects in one workspace Pin
Paresh Chitte25-Oct-07 18:51
Paresh Chitte25-Oct-07 18:51 
AnswerRe: Various projects in one workspace Pin
JudyL_MD26-Oct-07 3:07
JudyL_MD26-Oct-07 3:07 
QuestionFile Handaling Pin
manish.patel25-Oct-07 17:59
manish.patel25-Oct-07 17:59 
AnswerRe: File Handaling Pin
Nishad S25-Oct-07 18:16
Nishad S25-Oct-07 18:16 
QuestionRe: File Handaling Pin
manish.patel25-Oct-07 18:20
manish.patel25-Oct-07 18:20 

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.