Re: Converting Command->Execute to Recordset->Open
- From: bs@xxxxxxxxxxx
- Date: 8 Oct 2005 15:28:02 -0700
First off, thank you for your input Mark.
The connection is set and open. Since execute of the command functions
properly, I think that every thing else is set up properly too.
You are correct that the second parameter is connection information
that must be omitted when a command object is passed in. vtMissing
accomplishes this. It took a lot of digging for me to find that, so I
will share.
vtMissing is a constant provided by ADO when it is #imported into C++.
It is a variant of type VT_ERROR and of value DISP_E_PARAMNOTFOUND. It
is used to specify that a parameter of type variant is omitted. A
parameter of type variant pointer is omitted with &vtMissing (or NULL
if one is sloppy) and a parameter of type string is omitted with a null
string ("").
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdhowhowvcusersshouldreadadodocumentation.asp
ADO Programmer's Guide
Appendix C: Programming with ADO
Using ADO with Microsoft Visual C++
Don't you feel better that you chose VB now Mark? :)
.
- References:
- Converting Command->Execute to Recordset->Open
- From: bs
- Re: Converting Command->Execute to Recordset->Open
- From: Mark J. McGinty
- Converting Command->Execute to Recordset->Open
- Prev by Date: Bugged by an easy problem for someone
- Next by Date: Re: Bugged by an easy problem for someone
- Previous by thread: Re: Converting Command->Execute to Recordset->Open
- Next by thread: Q: Importing from Excel
- Index(es):
Relevant Pages
|
|