Re: CADORecordBinding
- From: "Stephen Howe" <sjhoweATdialDOTpipexDOTcom>
- Date: Sat, 4 Feb 2006 00:08:18 -0000
For binding recordset values, can i use CString(or my own data types)
instead of char array
I don't think you can because you are lying to the CADORecordBinding class.
You say str is of type adChar, and yet you _DO NOT_ provide a char type.
RecordBinding works because there is a 1-1 relationship between ADO data
types and C++ data types.
There is no such relationship between CString and ADO data types.
the reason i need to do this way is that i have all my datamembers in
another structure. i don't want to change the whole thing to char array
etc.
any idea?
Well don't. Provide a conversion constructor for your struct that takes the
recordbinding struct as an argument.
Stephen Howe
.
- References:
- CADORecordBinding
- From: guy1nj
- CADORecordBinding
- Prev by Date: CADORecordBinding
- Next by Date: Re: Large Number Of Inserts
- Previous by thread: CADORecordBinding
- Index(es):
Relevant Pages
|
|