Re: _com_error information
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Wed, 14 Mar 2007 08:17:59 -0500
"Neil B" <NeilB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1177CF2B-963A-463D-AB76-C6173D1AF7F6@xxxxxxxxxxxxxxxx
When I get an _com_error condition for the AddNew() method the errorMsgthere
returns "Bad Ptr", so I don't get any information on the error. Is there
something I'm doing wrong? This code works in other situations okay. Is
something unique about AddNew()?<snipped>
Thanks, Neil
To adequately retrieve ADO errors you have to enumerate them from the Errors
collection.
http://msdn2.microsoft.com/en-us/library/bb212594.aspx
http://msdn2.microsoft.com/en-us/library/bb148492.aspx
AddNew() creates an Insert statement from the initial SQL so there is no way
to know what may be happening in this case, based on code presented.
I have to echo Mr. Howe's comments. (And you have been told this before)
Set aside this weekend to learn C++. <g>
-ralph
.
- Prev by Date: Re: Stored Procedures & Parameters Insert Problem
- Next by Date: Re: Slow performance until code execution is stopped and restarted
- Previous by thread: Re: _com_error information
- Next by thread: Re: _com_error information
- Index(es):