Re: How to handle DBTYPE_VARNUMERIC in ATL consumer t emplate
Paul Selormey <[email protected]> Sat, 18 Jan 2003 05:27:40 +0000
| Newsgroups | gmane.comp.windows.devel.oledb.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello Kjell, Thanks for the information and the support. I managed to get the IDataConvert to work. However, I will prefer a quicky algorithm similar to the DBTYPE_NUMERIC. The one Microsoft gave is not working and I just do not understand it well to fix it. Best regards, Paul. >From: Kjell Arild Tangen <[email protected]> >Reply-To: OLEDB_DEV <[email protected]> >To: [email protected] >Subject: Re: [OLEDB_DEV] How to handle DBTYPE_VARNUMERIC in ATL consumer t > emplate >Date: Fri, 17 Jan 2003 10:19:14 +0100 > >You may use the OLE DB Conversion Library, a COM class that implements the >IDataConvert interface. You find a desciption of this interface on MSDN. >The CLSID of the object is CLSID_OLEDB_CONVERSIONLIBRARY, which is declared >in the two header files: >#include <msdadc.h> >#include <msdaguid.h> >which you need to include. >There are earlier postings on this in this forum that you may want to read. > >Regards, >Kjell Tangen > > > -----Original Message----- > > From: Paul Selormey [mailto:[email protected]] > > Sent: 17. januar 2003 09:07 > > To: [email protected] > > Subject: [OLEDB_DEV] How to handle DBTYPE_VARNUMERIC in ATL > > consumer template > > > > > > Hello All, > > How do I handle the convertion of the DBTYPE_VARNUMERIC to > > long/double? I found Microsoft KB on it, but it does not > > work; the algorithm was giving very large values. > > > > Any help? > > > > Best regards, > > Paul. > > > > > > > > > > > > > > _________________________________________________________________ > > Add photos to your e-mail with MSN 8. Get 2 months FREE*. >http://join.msn.com/?page=features/featuredemail > >You can read messages from the OLEDB_DEV archive, unsubscribe from >OLEDB_DEV, or subscribe to other DevelopMentor lists at >http://discuss.develop.com. > >You can read messages from the OLEDB_DEV archive, unsubscribe from >OLEDB_DEV, >or subscribe to other DevelopMentor lists at http://discuss.develop.com. _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail You can read messages from the OLEDB_DEV archive, unsubscribe from OLEDB_DEV, or subscribe to other DevelopMentor lists at http://discuss.develop.com.