DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Python (http://www.daniweb.com/forums/forum114.html)
-   -   passing int as 64 bit integer to COM (http://www.daniweb.com/forums/thread159728.html)

neta_s Nov 27th, 2008 11:06 am
passing int as 64 bit integer to COM
 
Hi,
I have some oython application which uses some COM server.
on of the functions in the COM servers expects getting 64 bit unsigned integer (i.e. VT_UI8), but the problem is that python automatically converts 'small' integers to 32 bit integers (even if casting them to long) anf this leads to some error at the COM server (it gets a VT_UI4 type where it expects VT_UI8). Is there a way to force python to create 64 bit integer?

Thanks,
Neta


All times are GMT -4. The time now is 5:03 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC