Hi everybody!
I'm using for flexibility reasons OLE DB without the ATL templates.
When I retrieve the length of a 10 character text field with Jet 4 provider, it returns 10 as cbMaxLen in ColumnInfo structure - but as Jet 4 returns UNICODE strings allocated buffer is half too short!
Is there a way to get the real byte-lenght out of this ColumnInfo structure for allocation memory??
I surely don't want to code 'cbMaxLen*2' for text types
thanks in advance!!
I'm using for flexibility reasons OLE DB without the ATL templates.
When I retrieve the length of a 10 character text field with Jet 4 provider, it returns 10 as cbMaxLen in ColumnInfo structure - but as Jet 4 returns UNICODE strings allocated buffer is half too short!
Is there a way to get the real byte-lenght out of this ColumnInfo structure for allocation memory??
I surely don't want to code 'cbMaxLen*2' for text types
thanks in advance!!