Use SHGetSpecialFolderLocation() with the CSIDL_NETWORK flag to get the PIDL of the Network root folder, then pass this PIDL to SHBrowseForFolder() as the pidlRoot member of the BROWSEINFO structure. This will force the "Browse For Folder" tree to be rooted at the root network folder.
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late"John Nichol "Point Of Impact"
I am drawing on a dialog that is a child for other dialog
in the child dialog am handling the right click event ,in this handling and at certain condition i need to notify the parent dialog that a click happend at the child dialog?
I'm looking for the reverse API of LoadBitmap.
where can i find a function, or an implementation
who takes a CBitmap object and pushing/adding
it back to the resource....
resource of some other(not running)program.
when I view the memory, szTemp1 and szTemp2 have the same content,
and both of them end with '\0'.
Note the word "guaranteed". The C++ Standard requires c_str to return a pointer to an array that ends with `\0`, and it does not require (nor forbid, for that matter) for data.
The implementation you tested obviously returns a pointer to the same piece of memory in both cases, but it is not necessarily the case for all implementations.
Also, have you tested the case when you have an empty string? c_str() would be guaranteed to return the pointer to `\0`. For data(), again it is implementation dependent, but I would be surprised if it returned the same thing.