[BangPypers] Issue of return value from dll

Bejoy M.D bejoymd at tataelxsi.co.in
Wed Jul 9 14:13:51 CEST 2008


Hi   All  ,
 
We want to access the functions from a c++ dll. This dll is not a COM dll. 
 
With this dll function (ISO14229_DiagnosticSessionControl_10) we are able to
communicate to the dll but the return for the 4th argument array is always
getting as 0. 
 
Any solution for this...?
 
iRecLen = c_int()
byRecBuf = [c_ubyte()]*10

iReply =
LoadDll_ProtocolAccess32.ISO14229_DiagnosticSessionControl_10(iChannelHandle
, 0x01, byref(iRecLen), byref(byRecBuf[0]))
print iReply

if iReply == 0:

    print "Session Control Successful"

    print
byRecBuf[0].value,byRecBuf[1].value,byRecBuf[2].value,byRecBuf[3].value,byRe
cBuf[4].value

else:
    print "Negative Response for session control"
 
Regards
Bejoy

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.

Contact your Administrator for further information.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/bangpypers/attachments/20080709/6f662158/attachment.htm>


More information about the BangPypers mailing list