Hi all
I am feeling kind of stupid asking the following question, but I'm
definitely not seeing it. Maybe I am developing some king of
programming blindness or simply I am becoming brainless.
What I would like to know is the best way to control repeated browsing
errors. The situation is the following: I am using another module that
provides connectivity to the device I am trying to browse. It has a
"connect" function that I call to access that device and upon errors
in that "connection" I display a message box with the error reason. My
NSE follows the MS's CDBView / SampView samples and calls EnumObjects
from the CShellView::FillList to enumerate the view's contents.
What I am not seeing is how can I easily avoid the recursively errors
from being displayed. Ideally what I would like is if the first
EnumObjects fails no other(s) is(are) tried having also the Refresh
scenario in mind. I tried some flags dependent solutions and have
always failed under some circumstance.
I know this could have easily been avoided with a lower layer
controlling the device's objects/accesses but I didn't start the
project that way and is a little late for that now.
Also, can I assume that the view browsing always take place first than
the tree browsing?
I am currently running Win XP Pro/Sp2, VS 6 SP6 with 2003 February's
SDK.
Please give me some help even if you think this is a basic (beginner
and maybe stupid) question and I think it must be, but I am really
blind with it.
Thanks,
Mari