Problem with _CommandPtr
- From: "Kumar" <Kumar@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 6 Apr 2005 04:13:03 -0700
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 supported ) 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.
Regards
Usman Jamil
//Here is the piece of code
_ConnectionPtr pConnection = NULL;
_CommandPtr pCommand = NULL;
HRESULT hr = pConnection.CreateInstance(__uuidof(Connection));
hr = pCommand.CreateInstance(__uuidof(Command));
thanks,
Kumar
.
- Follow-Ups:
- RE: Problem with _CommandPtr
- From: VN
- RE: Problem with _CommandPtr
- Prev by Date: RE: How to I reinstall the Microsoft OLE DB Provider for Oracle
- Next by Date: linked server and oracle nls
- Previous by thread: How to insert multiple records per "block" using IRowsetUpdate?
- Next by thread: RE: Problem with _CommandPtr
- Index(es):
Relevant Pages
|
|