[pywin32-checkins] pywin32/com/win32com/src/include PythonCOM.h,1.22,1.23
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2005-05-31 12:36:22
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24405/src/include Modified Files: PythonCOM.h Log Message: With help from Roger Upole: * Add PyObject_AsCurrency and PyObject_FromCurrency to convert CY/CURRENCY structs to/from Python objects. * Invent a pythoncom.__future_currency__ scheme, allowing us to move from the current brain-dead (hiword, loword) currency support into a decimal.Decimal() object. See win32com\readme.html for more details. Index: PythonCOM.h =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/include/PythonCOM.h,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** PythonCOM.h 25 Jan 2005 13:33:16 -0000 1.22 --- PythonCOM.h 31 May 2005 12:36:03 -0000 1.23 *************** *** 276,279 **** --- 276,282 ---- PYCOM_EXPORT PyObject *PyCom_PyObjectFromSTATPROPSETSTG(STATPROPSETSTG *pStat); + // Currency support. + PYCOM_EXPORT PyObject *PyObject_FromCurrency(CURRENCY &cy); + PYCOM_EXPORT BOOL PyObject_AsCurrency(PyObject *ob, CURRENCY *pcy); /* Functions for Initializing COM, and also letting the core know about it! |