RE: ordinal numbers used in static accessor
- From: "VN" <VN@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 20 Apr 2005 14:02:02 -0700
To be frank I'm not really experienced in OLEDB templates, but if it is a
static binding then shouldn't you provide the memory for all the parameters
and such? I would think that if the types are the same you could provide an
array and then use indexes.
"Roy" wrote:
> I have an OLE DB Static accessor derived from CAccessor, say cmd. I can use
> it to access the parameters and return values by field names, such as
> cmd.field1, cmd.parameter1. In its definition, there are ordinal numbers
> defined such as
> [ db_param(1, DBPARAMIO_OUTPUT) ] LONG m_RETURNVALUE;
> [ db_param(2, DBPARAMIO_INPUT) ] LONG m_Parameter1;
>
> [ db_column(1, status=m_dwField1Status, length=m_dwField1Length) ] LONG
> m_colField1;
> Is there a way to use the ordinal numbers instead of the field names to
> access the parameters or return values? What is the syntax to do that?
> Thanks
.
- References:
- ordinal numbers used in static accessor
- From: Roy
- ordinal numbers used in static accessor
- Prev by Date: asp.net datagrid sorting
- Next by Date: RE: asp.net datagrid sorting
- Previous by thread: ordinal numbers used in static accessor
- Next by thread: RE: ordinal numbers used in static accessor
- Index(es):