aj180949 Guest
|
Posted: Mon Feb 20, 2006 2:12 am Post subject: Bug in retrieval of folder content? |
|
|
I am trying to read the content of "My Computer" folder using
C++Builder 6. Routines used:
SHGetDesktopFolder(&pDesktop);
pDesktop->EnumObjects(NULL,
SHCONTF_FOLDERS,
SHCONTF_NONFOLDERS |
SHCONTF_INCLUDEHIDDEN,
&pEnum);
then, repetitively
pEnum->Next(1, &pidlTemp, &dwFetched);
I can see "My Computer" folder and other Desktop items OK by inspecting
pidlTemp.
When I look into My Computer folder using the same sequence, I cannot
see some items that show in Explorer, such as "Andrew's Documents" and
digital cameras. Other items show OK.
When the identical code (cut and paste) is compiled with VC++, I can
see all the items in My Computer. Can it be a bug in routines/methods
related to retrieval of folder content, esp. EnumObjects?
The problem is 100% repeatable. OS - Win XP SP2. Playing with flags
in EnumObjects() makes no difference.
Please help to resolve, I have to acccess the digital camera, I do not
wish to switch to VC++.
Andrew |
|