Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC vs. win32 Pin
naradaji17-Dec-02 21:33
naradaji17-Dec-02 21:33 
Questionhow to debug the com ??? Pin
Leesen13-Dec-02 5:07
Leesen13-Dec-02 5:07 
AnswerRe: how to debug the com ??? Pin
Alvaro Mendez13-Dec-02 5:17
Alvaro Mendez13-Dec-02 5:17 
GeneralRe: how to debug the com ??? Pin
Leesen13-Dec-02 15:36
Leesen13-Dec-02 15:36 
AnswerRe: how to debug the com ??? Pin
Renjith Ramachandran13-Dec-02 7:11
Renjith Ramachandran13-Dec-02 7:11 
GeneralRe: how to debug the com ??? Pin
Leesen13-Dec-02 16:00
Leesen13-Dec-02 16:00 
GeneralDirectory Prompt Pin
Rage13-Dec-02 4:52
professionalRage13-Dec-02 4:52 
GeneralRe: Directory Prompt Pin
carrie13-Dec-02 5:57
carrie13-Dec-02 5:57 
Firstly

TCHAR rootPath[MAX_PATH];
BROWSEINFO bi;
LPITEMIDLIST pidl;

LPMALLOC pMalloc;
if (SUCCEEDED(SHGetMalloc(&pMalloc)))
{
ZeroMemory(&bi,sizeof(bi));
bi.hwndOwner = NULL;
bi.pszDisplayName = 0;
bi.pidlRoot = 0;
bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_STATUSTEXT;
pidl = SHBrowseForFolder(&bi);
if (pidl)
{
if (SHGetPathFromIDList(pidl,rootPathOfRip))
{
m_startDir = rootPath;
UpdateData(FALSE);
}
pMalloc->Free(pidl);
pMalloc->Release();
}
}

Thats the code I've used before for using the SHBrowseForFolder before and its seemed to work. Give that a quick try to see if it works, changing the variables and stuff of course. Other than that you could try doing a Step Into debug of it to see where it really craps out. Post back with more details if you can.
GeneralRe: Directory Prompt Pin
Rage15-Dec-02 21:03
professionalRage15-Dec-02 21:03 
Generalcatching messages in the view class Pin
ns13-Dec-02 4:52
ns13-Dec-02 4:52 
GeneralToolbar colour Pin
S O S13-Dec-02 4:45
S O S13-Dec-02 4:45 
GeneralCButtons in List Ctrl Pin
shahzad13-Dec-02 4:38
shahzad13-Dec-02 4:38 
GeneralInner classes Pin
Alexandru Savescu13-Dec-02 4:28
Alexandru Savescu13-Dec-02 4:28 
GeneralRe: Inner classes Pin
Alvaro Mendez13-Dec-02 5:11
Alvaro Mendez13-Dec-02 5:11 
GeneralRe: Inner classes Pin
Rickard Andersson2013-Dec-02 5:59
Rickard Andersson2013-Dec-02 5:59 
GeneralRe: Inner classes Pin
Michael Dunn13-Dec-02 6:13
sitebuilderMichael Dunn13-Dec-02 6:13 
GeneralRe: Inner classes Pin
Alexandru Savescu13-Dec-02 21:47
Alexandru Savescu13-Dec-02 21:47 
GeneralRe: Inner classes Pin
Rickard Andersson2013-Dec-02 22:58
Rickard Andersson2013-Dec-02 22:58 
GeneralRe: Inner classes Pin
Alexandru Savescu14-Dec-02 2:34
Alexandru Savescu14-Dec-02 2:34 
GeneralRe: Inner classes Pin
Rickard Andersson2014-Dec-02 3:51
Rickard Andersson2014-Dec-02 3:51 
GeneralRe: Inner classes Pin
Michael Dunn14-Dec-02 4:31
sitebuilderMichael Dunn14-Dec-02 4:31 
GeneralOffice automation question Pin
Gunnar Mätzler13-Dec-02 4:13
Gunnar Mätzler13-Dec-02 4:13 
GeneralResizing a rebar Pin
ns13-Dec-02 3:45
ns13-Dec-02 3:45 
GeneralRe: Resizing a rebar Pin
ns13-Dec-02 3:50
ns13-Dec-02 3:50 
QuestionCreate a CHtmlDocument for a CHtmlView programatically using "createElement"? Pin
Joan M13-Dec-02 2:59
professionalJoan M13-Dec-02 2:59 

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.