Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Ado Data RDS > Problem with _C...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 242 of 305
Post > Topic >>

Problem with _CommandPtr

by "=?Utf-8?B?S3VtYXI=?=" <Kumar@[EMAIL PROTECTED] > Apr 6, 2005 at 04:15 AM

Hi
I am working on a databases in VC++. I'm having the following problem that
in a function i've written these lines of code. The CreateInstance
function
works fine with uuid(Command) on one system(Win XP) but returns
"-2147467262"
(Interface not sup****ted ) as hr value on other system(Win 98) . Also
thing 
to note
is that CreateInstance for pConnection works fine on both systems. can
someone tell me what could be wrong with Command Object. Is there any
chance
that Command Object is not available on other system..if yes then how can
it
be made available.

//Here is the piece of code
_ConnectionPtr pConnection = NULL;
_CommandPtr pCommand = NULL;
HRESULT hr = pConnection.CreateInstance(__uuidof(Connection));
hr = pCommand.CreateInstance(__uuidof(Command));

regards,
Kumar
 




 3 Posts in Topic:
Problem with _CommandPtr
"=?Utf-8?B?S3VtYXI=?  2005-04-06 04:15:04 
Re: Problem with _CommandPtr
"Brian Muth" &l  2005-04-06 09:10:44 
Re: Problem with _CommandPtr
"=?Utf-8?B?S3VtYXI=?  2005-04-08 02:11:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 14:13:24 CST 2008.