Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jet 4.0 OLE DB provider and UNICODE

Status
Not open for further replies.

ToKo

Programmer
Apr 9, 2000
7
DE
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!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top