Click here to Skip to main content
15,886,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to receive HTTP request? Pin
suzuuu21-Apr-10 20:56
suzuuu21-Apr-10 20:56 
GeneralRe: How to receive HTTP request? Pin
MANISH RASTOGI21-Apr-10 21:04
MANISH RASTOGI21-Apr-10 21:04 
GeneralRe: How to receive HTTP request? Pin
suzuuu21-Apr-10 21:10
suzuuu21-Apr-10 21:10 
GeneralRe: How to receive HTTP request? Pin
MANISH RASTOGI21-Apr-10 21:14
MANISH RASTOGI21-Apr-10 21:14 
GeneralRe: How to receive HTTP request? Pin
suzuuu21-Apr-10 21:23
suzuuu21-Apr-10 21:23 
AnswerRe: How to receive HTTP request? Pin
Moak21-Apr-10 21:56
Moak21-Apr-10 21:56 
GeneralRe: How to receive HTTP request? Pin
suzuuu22-Apr-10 0:55
suzuuu22-Apr-10 0:55 
QuestionParseDisplayName faild in Window Service Pack 2 Pin
kakalotasdf21-Apr-10 18:59
kakalotasdf21-Apr-10 18:59 
Dear all,

I have a problem when using ParseDisplayName function to get ITEMIDLIST of USB Memory device. The scenario is: I insert USB into PC and catch an event by [OnDeviceChange] function, then I use ParseDisplayName function to get ITEMIDLIST of inserted USB memory, but it is failed.

This phenomenon only occur in Widows XP Service Pack 2, in Windows XP Service Pack 3, it doesn't happen.

Here is a code I use to get ITEMIDLIST by ParseDisplayName function(the input path is valid).

....
LPITEMIDLIST l_pIDL;
LPSHELLFOLDER pDesktopFolder;

if( ::SHGetDesktopFolder( &pDesktopFolder ) != NOERROR )
{
return NULL;
}

OLECHAR ochPath[MAX_PATH];
ULONG chEaten;
HRESULT hRes;

::MultiByteToWideChar( CP_ACP, MB_PRECOMPOSED, W2A(p_strPath), -1, ochPath, MAX_PATH );

hRes = pDesktopFolder->ParseDisplayName( NULL, NULL, ochPath, &chEaten, &l_pIDL, &p_uAttribute);

if( hRes != NOERROR )
{
l_pIDL = NULL;
}
.....

One more thing is: if I try to call this function again, and it will success.
But I don't know why I need to call it twice in Windows XP Service Pack 2.

If anybody knows this phenomenon, please help me make it clearly.
I'm looking forward to receiving your reply as soon as possible.

Thanks in advance.

nobitanha
AnswerRe: ParseDisplayName faild in Window Service Pack 2 Pin
Stephen Hewitt21-Apr-10 21:35
Stephen Hewitt21-Apr-10 21:35 
GeneralRe: ParseDisplayName faild in Window Service Pack 2 Pin
kakalotasdf21-Apr-10 23:05
kakalotasdf21-Apr-10 23:05 
GeneralRe: ParseDisplayName faild in Window Service Pack 2 Pin
Stephen Hewitt22-Apr-10 5:07
Stephen Hewitt22-Apr-10 5:07 
QuestionTextout() alignment Pin
Anu_Bala21-Apr-10 18:16
Anu_Bala21-Apr-10 18:16 
AnswerRe: Textout() alignment Pin
dtsnagendra21-Apr-10 19:25
dtsnagendra21-Apr-10 19:25 
AnswerRe: Textout() alignment Pin
Richard MacCutchan21-Apr-10 21:01
mveRichard MacCutchan21-Apr-10 21:01 
GeneralRe: Textout() alignment Pin
sgrkadam21-Jul-10 20:48
sgrkadam21-Jul-10 20:48 
GeneralRe: Textout() alignment Pin
Richard MacCutchan21-Jul-10 21:30
mveRichard MacCutchan21-Jul-10 21:30 
QuestionForm View Properties in SplitterWnd Pin
hellogany21-Apr-10 17:26
hellogany21-Apr-10 17:26 
AnswerRe: Form View Properties in SplitterWnd Pin
Richard MacCutchan21-Apr-10 21:04
mveRichard MacCutchan21-Apr-10 21:04 
QuestionMemory leak! Pin
mostafa_pasha21-Apr-10 10:38
mostafa_pasha21-Apr-10 10:38 
AnswerRe: Memory leak! Pin
CPallini21-Apr-10 11:07
mveCPallini21-Apr-10 11:07 
GeneralRe: Memory leak! Pin
mostafa_pasha21-Apr-10 11:13
mostafa_pasha21-Apr-10 11:13 
GeneralRe: Memory leak! Pin
CPallini21-Apr-10 11:26
mveCPallini21-Apr-10 11:26 
GeneralRe: Memory leak! Pin
mostafa_pasha21-Apr-10 19:42
mostafa_pasha21-Apr-10 19:42 
GeneralRe: Memory leak! Pin
cmk21-Apr-10 13:45
cmk21-Apr-10 13:45 
AnswerRe: Memory leak! Pin
«_Superman_»21-Apr-10 12:10
professional«_Superman_»21-Apr-10 12:10 

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.