[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] unable to convert argument 2 of QAxWidget.GetDeviceStatus from 'int' to 'int&'
From:       jiten <jitenshah78 () gmail ! com>
Date:       2013-12-10 12:41:26
Message-ID: 20131210134126.61ad08fe () jitenlaptop
[Download RAW message or body]


Platform : Win7 32bit
PyQt : 4.9.4


I have a finger print device which has activex interface
which I am trying to access through QAxWidget. 


Following is Success:
Method Signature : 
bool GetSerialNumber (int dwMachineNumber, QString& lpszSerialNumber)
t = QtCore.QString()
r = a.GetSerialNumber(1, t)
print(t)


Following is Failed:
Method Signature : 
bool GetDeviceStatus (int dwMachineNumber, int dwStatus, int& dwValue)

p1 = 1
p2 = 1
p3 = 0

this show function call as success but p3 variable
suppose to update with some value which is not happening
r = a.dynamicCall("GetDeviceStatus(int, int, int&)", p1, p2, p3) 

this show error
unable to convert argument 2 of QAxWidget.GetDeviceStatus from 'int' to
'int&
r = a.GetDeviceStatus(p1, p2, p3)


Please guide If I am doing something wrong this is first time I am
using activex in pyqt.

Thanks
Jiten
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic