What happens when you run your code under the debugger? Did you set "break
on exception" for all exceptions in Debug | Exceptions dialog?
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"pete_42" wrote in message
ups.com...
Dmitry Streblechenko wrote:
Hmmm... What kind of exception is it? A COM error or something like an
access violation?
Good question. I tried 3 catch'es:
catch(_com_error &)
catch (CException *)
catch (...)
The third one caught the exception. So it's probably an access
violation.
Can the pointer be wrong?
Am I doing a bad cast somehow??