Click here to Skip to main content
15,907,910 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to create a new folder compresed?? Pin
bosfan25-Aug-08 4:55
bosfan25-Aug-08 4:55 
AnswerRe: How to create a new folder compresed?? Pin
Perspx25-Aug-08 5:23
Perspx25-Aug-08 5:23 
GeneralRe: How to create a new folder compresed?? Pin
bosfan25-Aug-08 5:44
bosfan25-Aug-08 5:44 
QuestionRe: How to create a new folder compresed?? Pin
Perspx25-Aug-08 5:52
Perspx25-Aug-08 5:52 
AnswerRe: How to create a new folder compresed?? Pin
bosfan25-Aug-08 21:01
bosfan25-Aug-08 21:01 
GeneralRe: How to create a new folder compresed?? Pin
bosfan26-Aug-08 1:17
bosfan26-Aug-08 1:17 
QuestionSHChangeNotifyRegister Pin
NewVC++24-Aug-08 21:25
NewVC++24-Aug-08 21:25 
AnswerRe: SHChangeNotifyRegister Pin
_AnsHUMAN_ 24-Aug-08 21:40
_AnsHUMAN_ 24-Aug-08 21:40 
HWND hWnd = GetSafeHwnd();
    LPITEMIDLIST ppidl;
    if(SHGetSpecialFolderLocation(hWnd, CSIDL_DESKTOP, &ppidl) == NOERROR)
    {
        SHChangeNotifyEntry shCNE;
        shCNE.pidl = ppidl;
        shCNE.fRecursive = TRUE;

        // Returns a positive integer registration identifier (ID).
        // Returns zero if out of memory or in response to invalid parameters.
        m_ulSHChangeNotifyRegister = SHChangeNotifyRegister(hWnd,                                            // Hwnd to receive notification
                SHCNE_DISKEVENTS,                                                                    // Event types of interest (sources)
                SHCNE_MEDIAINSERTED|SHCNE_MEDIAREMOVED,                                              // Events of interest - use                                           // SHCNE_ALLEVENTS for all events
                WM_USER_MEDIACHANGED,                                               // Notification message to be sent                                           // upon the event
                1,                                                                   // Number of entries in the pfsne array
                &shCNE);  // Array of SHChangeNotifyEntry structures that                           // contain the notifications. This array should                           // always be set to one when calling SHChnageNotifyRegister
                          // or SHChangeNotifyDeregister will not work properly.
    
        ASSERT(m_ulSHChangeNotifyRegister != 0);    // Shell notification failed
    }
    else
        ASSERT(FALSE);    // Failed to get desktop location


Somethings seem HARD to do, until we know how to do them.
Wink | ;-) _AnShUmAn_

GeneralRe: SHChangeNotifyRegister Pin
NewVC++24-Aug-08 21:46
NewVC++24-Aug-08 21:46 
GeneralRe: SHChangeNotifyRegister - > Can't search myself Pin
_AnsHUMAN_ 24-Aug-08 21:52
_AnsHUMAN_ 24-Aug-08 21:52 
QuestionHow to convert string to array of bytes? Pin
kapardhi24-Aug-08 21:07
kapardhi24-Aug-08 21:07 
GeneralRepost - please ignore. Pin
CPallini24-Aug-08 21:14
mveCPallini24-Aug-08 21:14 
GeneralRe: Repost - please ignore. Pin
kapardhi24-Aug-08 21:32
kapardhi24-Aug-08 21:32 
GeneralRe: Repost - please ignore. Pin
CPallini24-Aug-08 21:44
mveCPallini24-Aug-08 21:44 
GeneralRe: Repost - please ignore. Pin
ThatsAlok25-Aug-08 1:28
ThatsAlok25-Aug-08 1:28 
GeneralRe: Repost - please ignore. Pin
ThatsAlok25-Aug-08 1:26
ThatsAlok25-Aug-08 1:26 
AnswerRe: How to convert string to array of bytes? [modified] Pin
toxcct24-Aug-08 21:27
toxcct24-Aug-08 21:27 
GeneralRe: How to convert string to array of bytes? Pin
kapardhi24-Aug-08 21:38
kapardhi24-Aug-08 21:38 
GeneralRe: How to convert string to array of bytes? Pin
toxcct24-Aug-08 21:43
toxcct24-Aug-08 21:43 
GeneralRe: How to convert string to array of bytes? Pin
CPallini24-Aug-08 21:47
mveCPallini24-Aug-08 21:47 
GeneralRe: How to convert string to array of bytes? Pin
toxcct24-Aug-08 21:50
toxcct24-Aug-08 21:50 
GeneralRe: How to convert string to array of bytes? Pin
CPallini24-Aug-08 21:58
mveCPallini24-Aug-08 21:58 
GeneralRe: How to convert string to array of bytes? Pin
toxcct24-Aug-08 22:00
toxcct24-Aug-08 22:00 
GeneralRe: How to convert string to array of bytes? Pin
SandipG 24-Aug-08 21:58
SandipG 24-Aug-08 21:58 
GeneralRe: How to convert string to array of bytes? Pin
CPallini24-Aug-08 21:41
mveCPallini24-Aug-08 21:41 

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.