Click here to Skip to main content
15,923,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Open word document on clicking menu Pin
enhzflep4-Nov-08 0:01
enhzflep4-Nov-08 0:01 
GeneralRe: Open word document on clicking menu Pin
shir_k4-Nov-08 0:17
shir_k4-Nov-08 0:17 
GeneralRe: Open word document on clicking menu [modified] Pin
enhzflep4-Nov-08 0:23
enhzflep4-Nov-08 0:23 
GeneralRe: Open word document on clicking menu Pin
shir_k4-Nov-08 0:31
shir_k4-Nov-08 0:31 
GeneralRe: Open word document on clicking menu Pin
enhzflep4-Nov-08 0:57
enhzflep4-Nov-08 0:57 
GeneralRe: Open word document on clicking menu Pin
shir_k4-Nov-08 2:09
shir_k4-Nov-08 2:09 
GeneralRe: Open word document on clicking menu Pin
enhzflep4-Nov-08 2:13
enhzflep4-Nov-08 2:13 
QuestionMemory Exception occur in case of Browse for Folder. Pin
Le@rner3-Nov-08 23:34
Le@rner3-Nov-08 23:34 
Hi all,

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();
}


i m using this for browse for folder,the out of memory exexption occur when select any folder.

please help me for this.

thanks in advance.

IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

QuestionRe: Memory Exception occur in case of Browse for Folder. Pin
CPallini3-Nov-08 23:57
mveCPallini3-Nov-08 23:57 
AnswerRe: Memory Exception occur in case of Browse for Folder. Pin
Le@rner4-Nov-08 0:21
Le@rner4-Nov-08 0:21 
AnswerRe: Memory Exception occur in case of Browse for Folder. Pin
Rajesh R Subramanian4-Nov-08 0:40
professionalRajesh R Subramanian4-Nov-08 0:40 
GeneralRe: Memory Exception occur in case of Browse for Folder. Pin
Le@rner4-Nov-08 0:59
Le@rner4-Nov-08 0:59 
QuestionError while compiling code Pin
izyani3-Nov-08 22:14
izyani3-Nov-08 22:14 
AnswerRe: Error while compiling code Pin
CPallini3-Nov-08 22:45
mveCPallini3-Nov-08 22:45 
GeneralRe: Error while compiling code Pin
izyani4-Nov-08 14:47
izyani4-Nov-08 14:47 
GeneralRe: Error while compiling code Pin
CPallini4-Nov-08 21:30
mveCPallini4-Nov-08 21:30 
AnswerRe: Error while compiling code Pin
Varghese Paul M4-Nov-08 1:02
Varghese Paul M4-Nov-08 1:02 
GeneralRe: Error while compiling code Pin
izyani4-Nov-08 14:47
izyani4-Nov-08 14:47 
GeneralRe: Error while compiling code Pin
izyani4-Nov-08 21:33
izyani4-Nov-08 21:33 
QuestionLoadBitMap giving error Pin
Dhiraj kumar Saini3-Nov-08 22:13
Dhiraj kumar Saini3-Nov-08 22:13 
AnswerRe: LoadBitMap giving error Pin
CPallini3-Nov-08 22:46
mveCPallini3-Nov-08 22:46 
GeneralRe: LoadBitMap giving error Pin
Dhiraj kumar Saini3-Nov-08 22:56
Dhiraj kumar Saini3-Nov-08 22:56 
QuestionRe: LoadBitMap giving error Pin
CPallini3-Nov-08 23:30
mveCPallini3-Nov-08 23:30 
AnswerRe: LoadBitMap giving error Pin
Dhiraj kumar Saini3-Nov-08 23:56
Dhiraj kumar Saini3-Nov-08 23:56 
QuestionVisual Studio 2005 Tiny Cursor Pin
Daniel Kanev3-Nov-08 21:43
Daniel Kanev3-Nov-08 21:43 

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.