Click here to Skip to main content
15,891,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaldll in Visual C++ Pin
Stephan Wright25-Aug-04 3:36
Stephan Wright25-Aug-04 3:36 
GeneralRe: dll in Visual C++ Pin
jmkhael25-Aug-04 3:49
jmkhael25-Aug-04 3:49 
GeneralCreating virtual serial port Pin
ronyhuda25-Aug-04 2:49
ronyhuda25-Aug-04 2:49 
GeneralHelp Wanted Pin
bunty2k425-Aug-04 2:46
bunty2k425-Aug-04 2:46 
GeneralScaling ellipses using XForm in Win98 SE Pin
Franz Liste25-Aug-04 2:24
Franz Liste25-Aug-04 2:24 
GeneralCan't find file name. Pin
nigma_x25-Aug-04 2:17
nigma_x25-Aug-04 2:17 
GeneralRe: Can't find file name. Pin
David Crow25-Aug-04 2:38
David Crow25-Aug-04 2:38 
GeneralParseDisplayName: my computer missing Pin
Neha25-Aug-04 1:48
Neha25-Aug-04 1:48 
Hi
I am using the following code to get the desktop contents:
if (SUCCEEDED(SHGetDesktopFolder(&lpDesktopFolder)))
{
//strpath: has the desktop folder path.

MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, (LPCTSTR)((strPath != "\\MyComputer")?strPath:""), -1,
olePath, MAX_PATH);

hr = lpDesktopFolder->ParseDisplayName(NULL,
NULL,
olePath,
&chEaten,
&pidl,
&dwAttributes);
if(hr != S_OK)
{
lpDesktopFolder->Release();
return;
}
hr = lpDesktopFolder->BindToObject(pidl, 0, IID_IShellFolder, (LPVOID *)&lpShellFolder);

If I use this code I can't find *My Computer* and icons. But if I use
SHGetDesktopFolder(&lpShellFolder)
I can see the *My computer* in the list.

Could any one please tell me where I am going wrong?

Regards
Neha
GeneralRe: ParseDisplayName: my computer missing Pin
David Crow25-Aug-04 2:40
David Crow25-Aug-04 2:40 
GeneralRe: ParseDisplayName: my computer missing Pin
Neha25-Aug-04 4:48
Neha25-Aug-04 4:48 
GeneralRe: ParseDisplayName: my computer missing Pin
David Crow26-Aug-04 3:25
David Crow26-Aug-04 3:25 
GeneralDomain or Workgroup member. Pin
Kevin Gutteridge25-Aug-04 1:25
Kevin Gutteridge25-Aug-04 1:25 
GeneralRe: Domain or Workgroup member. Pin
Kevin Gutteridge25-Aug-04 1:30
Kevin Gutteridge25-Aug-04 1:30 
GeneralCore dump on WIN98 Pin
mfc_surfer25-Aug-04 0:52
mfc_surfer25-Aug-04 0:52 
Questionhow to split a String Pin
dana_krycek2125-Aug-04 0:38
dana_krycek2125-Aug-04 0:38 
AnswerRe: how to split a String Pin
David Crow25-Aug-04 2:49
David Crow25-Aug-04 2:49 
GeneralSW_HIDE problm Pin
zahid_ash25-Aug-04 0:11
zahid_ash25-Aug-04 0:11 
GeneralRe: SW_HIDE problm Pin
David Crow25-Aug-04 3:08
David Crow25-Aug-04 3:08 
GeneralAttching e menu to child window in MDI Pin
ledallam24-Aug-04 23:22
ledallam24-Aug-04 23:22 
GeneralModbus in MFC Pin
chauteen24-Aug-04 23:07
chauteen24-Aug-04 23:07 
GeneralBitmap Pin
Johnny Peszek24-Aug-04 22:55
Johnny Peszek24-Aug-04 22:55 
Generalsites which provide some examples on MSHtml interfaces Pin
Member 52815524-Aug-04 21:50
Member 52815524-Aug-04 21:50 
GeneralOpening an Outlook PST File and Reading its Contents Pin
sirisha_kumari24-Aug-04 20:19
sirisha_kumari24-Aug-04 20:19 
Generalnew apis in windows xp sp2 Pin
SamirSood24-Aug-04 19:29
SamirSood24-Aug-04 19:29 
GeneralH and Lib File Pin
swarup24-Aug-04 19:17
swarup24-Aug-04 19:17 

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.