Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralListBox in ComboBox Pin
Tonnystar11-Jan-04 20:51
Tonnystar11-Jan-04 20:51 
GeneralRe: ListBox in ComboBox Pin
Jijo.Raj11-Jan-04 21:05
Jijo.Raj11-Jan-04 21:05 
GeneralRe: ListBox in ComboBox Pin
22491711-Jan-04 21:53
22491711-Jan-04 21:53 
GeneralRe: ListBox in ComboBox Pin
Tonnystar19-Jan-04 4:48
Tonnystar19-Jan-04 4:48 
GeneralGetExtent -> SetExtent Pin
El'Cachubrey11-Jan-04 20:27
El'Cachubrey11-Jan-04 20:27 
GeneralHi Pin
Ruchit Sharma11-Jan-04 20:19
Ruchit Sharma11-Jan-04 20:19 
GeneralRe: Hi Pin
Michael Dunn11-Jan-04 21:02
sitebuilderMichael Dunn11-Jan-04 21:02 
GeneralSHBrowseForFolder Pin
murali_utr11-Jan-04 20:16
murali_utr11-Jan-04 20:16 
hi,
what problem in the following code. when i select new folder i got error. application is closed. i test i release mode. any one help to me.

CString m_strFolderPath;

LPMALLOC pMalloc = NULL;
LPITEMIDLIST pidl = NULL;
BROWSEINFO bi;
ZeroMemory(&bi, sizeof(BROWSEINFO));

// set the bi's default values
bi.hwndOwner = m_hWnd;
bi.lpszTitle = _T("Current folder is:");
bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_STATUSTEXT;
//bi.lpfn = BrowseCallbackProc;
pidl = SHBrowseForFolder(&bi);
if(pidl != NULL)
{
SHGetPathFromIDList(pidl,
m_strFolderPath.GetBuffer(
m_strFolderPath.GetLength()));
UpdateData(FALSE);
// free memory
if(SUCCEEDED(SHGetMalloc(&pMalloc)) && pMalloc)
pMalloc->Free(pidl);
pMalloc->Release();

m_EditPath.SetWindowText(m_strFolderPath);
}

thanks in advance.

Murali.M

GeneralRe: SHBrowseForFolder Pin
Ryan Binns11-Jan-04 20:47
Ryan Binns11-Jan-04 20:47 
GeneralRe: SHBrowseForFolder Pin
murali_utr11-Jan-04 21:55
murali_utr11-Jan-04 21:55 
GeneralCreateProcess Pin
SiddharthAtw11-Jan-04 19:22
SiddharthAtw11-Jan-04 19:22 
GeneralRe: CreateProcess Pin
Jijo.Raj11-Jan-04 19:49
Jijo.Raj11-Jan-04 19:49 
GeneralRe: CreateProcess Pin
Selvam R11-Jan-04 19:52
professionalSelvam R11-Jan-04 19:52 
GeneralCOleServerDoc Pin
kevcs211-Jan-04 18:52
kevcs211-Jan-04 18:52 
GeneralOpenDocument Pin
kevcs211-Jan-04 18:41
kevcs211-Jan-04 18:41 
GeneralRe: OpenDocument Pin
Roger Allen11-Jan-04 23:58
Roger Allen11-Jan-04 23:58 
Generalload bitmapfile on dialog at runtime.. Pin
swarnamanoo11-Jan-04 18:22
swarnamanoo11-Jan-04 18:22 
GeneralRe: load bitmapfile on dialog at runtime.. Pin
Jijo.Raj11-Jan-04 18:45
Jijo.Raj11-Jan-04 18:45 
GeneralRe: load bitmapfile on dialog at runtime.. Pin
swarnamanoo11-Jan-04 20:08
swarnamanoo11-Jan-04 20:08 
GeneralRe: load bitmapfile on dialog at runtime.. Pin
Ryan Binns11-Jan-04 20:49
Ryan Binns11-Jan-04 20:49 
GeneralRe: load bitmapfile on dialog at runtime.. Pin
Jijo.Raj11-Jan-04 20:55
Jijo.Raj11-Jan-04 20:55 
GeneralRe: load bitmapfile on dialog at runtime.. Pin
swarnamanoo12-Jan-04 0:37
swarnamanoo12-Jan-04 0:37 
Generalclose window explorer by my application Pin
Member 80599911-Jan-04 16:48
Member 80599911-Jan-04 16:48 
GeneralRe: close window explorer by my application Pin
SiddharthAtw11-Jan-04 19:15
SiddharthAtw11-Jan-04 19:15 
GeneralRe: close window explorer by my application Pin
Jijo.Raj11-Jan-04 19:21
Jijo.Raj11-Jan-04 19:21 

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.