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

C / C++ / MFC

 
GeneralRe: Add member variable taking forever... Pin
Rajesh R Subramanian14-Apr-09 2:51
professionalRajesh R Subramanian14-Apr-09 2:51 
GeneralRe: Add member variable taking forever... Pin
David Crow14-Apr-09 3:45
David Crow14-Apr-09 3:45 
GeneralRe: Add member variable taking forever... Pin
Rajesh R Subramanian14-Apr-09 4:22
professionalRajesh R Subramanian14-Apr-09 4:22 
AnswerRe: Add member variable taking forever... Pin
Iain Clarke, Warrior Programmer14-Apr-09 3:12
Iain Clarke, Warrior Programmer14-Apr-09 3:12 
GeneralRe: Add member variable taking forever... Pin
Rajesh R Subramanian14-Apr-09 4:25
professionalRajesh R Subramanian14-Apr-09 4:25 
GeneralRe: Add member variable taking forever... Pin
CPallini14-Apr-09 5:56
mveCPallini14-Apr-09 5:56 
AnswerRe: Add member variable taking forever... Pin
Eytukan14-Apr-09 8:28
Eytukan14-Apr-09 8:28 
QuestionHow to open a browse dialog with a specific folder in selected state Pin
V K 214-Apr-09 1:30
V K 214-Apr-09 1:30 
Hi,
I am using the following code

BROWSEINFO bi = { 0 };
TCHAR path[MAX_PATH];
strcpy(path, "");
bi.hwndOwner = this->m_hWnd;
bi.lpszTitle = (csTitle);
bi.pszDisplayName = path;
bi.ulFlags = BIF_NEWDIALOGSTYLE|BIF_RETURNONLYFSDIRS;
CoInitialize(NULL);
LPITEMIDLIST pidl = SHBrowseForFolder ( &bi );
if ( pidl != 0 )
{
SHGetPathFromIDList ( pidl, path );

IMalloc * imalloc = 0;
if ( SUCCEEDED( SHGetMalloc ( &imalloc )) )
{
imalloc->Free ( pidl );
imalloc->Release ( );
}
}
CoUninitialize();

This code is always opening browse dialog with My Documents as selected.

I want to open browse dialog and with a specific folder in selected state
AnswerRe: How to open a browse dialog with a specific folder in selected state Pin
Hamid_RT14-Apr-09 1:35
Hamid_RT14-Apr-09 1:35 
GeneralRe: How to open a browse dialog with a specific folder in selected state Pin
V K 214-Apr-09 1:40
V K 214-Apr-09 1:40 
QuestionRe: How to open a browse dialog with a specific folder in selected state Pin
David Crow14-Apr-09 2:39
David Crow14-Apr-09 2:39 
AnswerRe: How to open a browse dialog with a specific folder in selected state Pin
V K 214-Apr-09 3:03
V K 214-Apr-09 3:03 
GeneralRe: How to open a browse dialog with a specific folder in selected state Pin
David Crow14-Apr-09 3:06
David Crow14-Apr-09 3:06 
GeneralRe: How to open a browse dialog with a specific folder in selected state Pin
David Crow14-Apr-09 2:40
David Crow14-Apr-09 2:40 
QuestionExcel automation using VC++ Pin
Shishir Srivastav14-Apr-09 0:55
Shishir Srivastav14-Apr-09 0:55 
QuestionWhat to do with this error message (embedded VC++ 4.0) ? Pin
kapardhi14-Apr-09 0:22
kapardhi14-Apr-09 0:22 
AnswerRe: What to do with this error message (embedded VC++ 4.0) ? Pin
ParagPatel14-Apr-09 0:33
ParagPatel14-Apr-09 0:33 
GeneralRe: What to do with this error message (embedded VC++ 4.0) ? Pin
kapardhi14-Apr-09 0:57
kapardhi14-Apr-09 0:57 
AnswerRe: What to do with this error message (embedded VC++ 4.0) ? Pin
Divyang Mithaiwala14-Apr-09 1:20
Divyang Mithaiwala14-Apr-09 1:20 
Questioncan anyone give code in vc++ Pin
N.Ravi Raj13-Apr-09 23:47
N.Ravi Raj13-Apr-09 23:47 
AnswerRe: can anyone give code in vc++ Pin
_AnsHUMAN_ 13-Apr-09 23:57
_AnsHUMAN_ 13-Apr-09 23:57 
GeneralRe: can anyone give code in vc++ Pin
N.Ravi Raj14-Apr-09 0:20
N.Ravi Raj14-Apr-09 0:20 
GeneralRe: can anyone give code in vc++ Pin
Rajesh R Subramanian14-Apr-09 0:51
professionalRajesh R Subramanian14-Apr-09 0:51 
GeneralRe: can anyone give code in vc++ Pin
Hamid_RT14-Apr-09 1:32
Hamid_RT14-Apr-09 1:32 
JokeRe: can anyone give code in vc++ Pin
CPallini14-Apr-09 5:08
mveCPallini14-Apr-09 5:08 

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.