Thread
:
C++, ATL: Access of folder content by index fails
View Single Post
#
3
October 10th 07, 05:21 PM posted to microsoft.public.outlook.program_vba
Dan Mitchell
external usenet poster
Posts: 58
C++, ATL: Access of folder content by index fails
=?Utf-8?B?Um9u?= wrote in news:930E0516-
:
Got it. The Item property works not zero based. My god.
This is because people using the OOM are expected to be using VB, which
is 1-based. You should also be careful about assuming that 'true' = 1, and
you'll have to do some casting between string types to get things in/out
of BSTR.
See
http://support.microsoft.com/kb/260626/en-us
for some sample code,
though they're using #import to get the TLB info so the class names are a
bit different.
-- dan
Dan Mitchell
View Public Profile
View message headers
Find all posts by Dan Mitchell
Find all threads started by Dan Mitchell
Ads