Click here to Skip to main content
16,014,952 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MSDEV crashes . Pin
Waldermort18-Mar-06 5:47
Waldermort18-Mar-06 5:47 
GeneralRe: MSDEV crashes . Pin
FarPointer18-Mar-06 6:08
FarPointer18-Mar-06 6:08 
QuestionError compilation Pin
kochiukhuatphuc18-Mar-06 4:38
kochiukhuatphuc18-Mar-06 4:38 
AnswerRe: Error compilation Pin
Hamid_RT18-Mar-06 5:25
Hamid_RT18-Mar-06 5:25 
AnswerRe: Error compilation Pin
Michael Dunn18-Mar-06 5:46
sitebuilderMichael Dunn18-Mar-06 5:46 
Questionhow Pin
benniej1518-Mar-06 3:55
benniej1518-Mar-06 3:55 
AnswerRe: how Pin
PJ Arends18-Mar-06 4:44
professionalPJ Arends18-Mar-06 4:44 
QuestionObtaining recycle bin folder Pin
Chintoo72318-Mar-06 3:31
Chintoo72318-Mar-06 3:31 
I'm trying to obtain the recycle bin folder and have tried the following two ways. Both of them dont work, any idea what is wrong in each of them? I ran them on Windows XP.

<br />
void recycle_bin1()<br />
{<br />
    char szPath[4096] = { '\0' };<br />
    HRESULT hr = SHGetFolderPath(NULL, <br />
                        CSIDL_BITBUCKET,<br />
                        NULL,<br />
                        SHGFP_TYPE_CURRENT,<br />
                        szPath);<br />
<br />
    const char *str = "SUCCEEDED";<br />
    if (hr == S_FALSE) {<br />
        str = "S_FALSE";<br />
    } <br />
    if (hr == E_FAIL) {<br />
        str = "E_FAIL";<br />
    }<br />
    if (hr == E_INVALIDARG) {<br />
        str = "E_INVALIDARG";<br />
    }<br />
          <br />
    MessageBox(NULL, szPath, str, NULL);<br />
<br />
}<br />
void recycle_bin2()<br />
{<br />
    char szPath[4096] = { '\0' };<br />
    <br />
    BOOL bRet = SHGetSpecialFolderPath(NULL, <br />
                        szPath,<br />
                        CSIDL_BITBUCKET, <br />
                        FALSE);<br />
<br />
    const char *str = "SUCCEEDED";<br />
<br />
    if (bRet == FALSE) {<br />
        str = "FAILED";<br />
    }<br />
          <br />
    MessageBox(NULL, szPath, str, NULL);<br />
<br />
}<br />
<br />


thanks!
AnswerRe: Obtaining recycle bin folder Pin
Hamid_RT18-Mar-06 5:15
Hamid_RT18-Mar-06 5:15 
AnswerRe: Obtaining recycle bin folder Pin
Michael Dunn18-Mar-06 5:48
sitebuilderMichael Dunn18-Mar-06 5:48 
GeneralRe: Obtaining recycle bin folder Pin
Chintoo72318-Mar-06 15:58
Chintoo72318-Mar-06 15:58 
GeneralRe: Obtaining recycle bin folder Pin
Michael Dunn18-Mar-06 18:20
sitebuilderMichael Dunn18-Mar-06 18:20 
GeneralRe: Obtaining recycle bin folder Pin
Chintoo72318-Mar-06 18:47
Chintoo72318-Mar-06 18:47 
GeneralRe: Obtaining recycle bin folder Pin
Michael Dunn18-Mar-06 19:43
sitebuilderMichael Dunn18-Mar-06 19:43 
QuestionWin32 Slider Control Pin
amanoullah18-Mar-06 2:43
amanoullah18-Mar-06 2:43 
QuestionAn Icon on a Button Pin
ariesaloksingh18-Mar-06 1:46
ariesaloksingh18-Mar-06 1:46 
AnswerRe: An Icon on a Button Pin
Monty218-Mar-06 1:57
Monty218-Mar-06 1:57 
AnswerRe: An Icon on a Button Pin
Hamid_RT18-Mar-06 1:58
Hamid_RT18-Mar-06 1:58 
Questionrelated to mozilla firefox Pin
rajeevktripathi18-Mar-06 1:18
rajeevktripathi18-Mar-06 1:18 
QuestionWinAPI resources - using language packs Pin
Luy18-Mar-06 0:17
Luy18-Mar-06 0:17 
AnswerRe: WinAPI resources - using language packs Pin
Monty218-Mar-06 0:58
Monty218-Mar-06 0:58 
GeneralRe: WinAPI resources - using language packs Pin
Luy18-Mar-06 2:05
Luy18-Mar-06 2:05 
AnswerRe: WinAPI resources - using language packs Pin
Charlietoday18-Mar-06 4:27
Charlietoday18-Mar-06 4:27 
GeneralRe: WinAPI resources - using language packs Pin
Luy18-Mar-06 7:56
Luy18-Mar-06 7:56 
QuestionThree questions Pin
hanno2517-Mar-06 22:45
hanno2517-Mar-06 22:45 

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.