Using char datatype in C++ Application for char(1) datatype of the database

Article ID: 983
Last updated: 05 Feb, 2008
Article ID: 983
Last updated: 05 Feb, 2008
Revision: 1
Views: 5441
Posted: 02 Sep, 1997
by Dean J.
Updated: 05 Feb, 2008
by Dean J.
Problem


I'm using a CHAR(1) as a datatype on my database, but I can't seem to work with it as a char in my C++ program.


Cause


Traditionally, the C char type has been both a single-characater and integral type. As part of the design of DBTools.h++, the decision was made that char would be an integral type, and that RWCString would be used for character strings.


Action


Use RWCString to work with CHAR data on your database server.
This article was:   Helpful | Not helpful
Report an issue
Article ID: 983
Last updated: 05 Feb, 2008
Revision: 1
Views: 5441
Posted: 02 Sep, 1997 by Dean J.
Updated: 05 Feb, 2008 by Dean J.

Others in this category