Datatype conversion
-
Hi all; I am writing an application which will have an ADO-based database connection. In order to send stuff to the DB, i need to convert variables from CString, char, int or Date into variants. However, it does not work for int and i still cannot figure out how to add data in a field whose type is date. Could somebody please help me. Thanks guys Krugger
-
Hi all; I am writing an application which will have an ADO-based database connection. In order to send stuff to the DB, i need to convert variables from CString, char, int or Date into variants. However, it does not work for int and i still cannot figure out how to add data in a field whose type is date. Could somebody please help me. Thanks guys Krugger
_variant_t( double dblSrc, VARTYPE vtSrc = VT_R8 ) Constructs a _variant_t object of type VT_R8 or VT_DATE from a double numerical value. Any other VARTYPE results in an E_INVALIDARG error. (msdn...) greatest thing is to do wot others think you cant :)
suhredayan@omniquad.com -
Hi all; I am writing an application which will have an ADO-based database connection. In order to send stuff to the DB, i need to convert variables from CString, char, int or Date into variants. However, it does not work for int and i still cannot figure out how to add data in a field whose type is date. Could somebody please help me. Thanks guys Krugger