BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bug in retrieval of folder content?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (WinAPI)
View previous topic :: View next topic  
Author Message
aj180949
Guest





PostPosted: Mon Feb 20, 2006 2:12 am    Post subject: Bug in retrieval of folder content? Reply with quote



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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (WinAPI) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.