Find problem

D

Doru K

Hi,

I'm writting(in VC++, but it's not a specific problem for VC++ :) an
add-in for Outlook, and I have the following problem: In Outlook 2000, I
get an error on this line:

HRESULT hr = spItems->Find(T2W("[ReceivedTime] >= 'July 29,2004 11:37
PM'"), &spMail);

and hr = -1040056311 (0xc2020009)

This is even stranger as this code works nice in Outlook XP and Outlook
2003. The problem is somewhere at the [ReceivedTime] formatting
(although I read http://www.outlookcode.com/d/finddate.htm and the
string is exactly formed to match those guidelines). The Find works fine
for, i.e.: Find(T2W("[UnRead]=true"), &spMail).

Any suggestions would be highly appreciated.

Thanks,
Doru


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top