Re: Can't instanciate Errors object in C++/MFC dialog app == :-(
- From: "Jeff" <budajeff@xxxxxxxxx>
- Date: 13 Jan 2006 11:11:22 -0800
I figured out my problem. Get the Errors object, don't instantiate it.
Also don't send "GO" into commands that you're trying to execute.
_bstr_t GetProviderError(const ADODB::_ConnectionPtr& ptrConn)
{
_bstr_t sErrors;
if(ptrConn != NULL)
{
ADODB::ErrorsPtr ptrErrors = ptrConn->Errors;
long lCount = ptrErrors->Count;
for(long n = 0; n < lCount; n++)
sErrors += ptrErrors->GetItem(n)->Description + "\n\n";
}
return sErrors;
}
.
- References:
- Prev by Date: Can't instanciate Errors object in C++/MFC dialog app == :-(
- Next by Date: Re: Cant find Sheet1. Whats wrong with this code?
- Previous by thread: Can't instanciate Errors object in C++/MFC dialog app == :-(
- Next by thread: Re: Cant find Sheet1. Whats wrong with this code?
- Index(es):