Hi,

I've used CTYPES module to access a function from a dll. This function
provides me the version of the dll. This information is accessible to
me as an array of 4 long inetegers. information as :
2, 1, 5, 0


I want to display these elements concatenated as "v2.1.5.0". This
string ( I'm thinking of writing the above 4 array elements to a
string) is to be displayed as label in a GUI ( the GUI used is Tk)

Please suggest how can I write these elements to a string to get me
the desired results as "v2.1.5.0". And, is writing to a string is
right way?

PS: this string also needs to be displayed in the GUI label well.


FYI, the code written to access function from dll is as under:
********
from ctypes import *
abc =  windll.af1xEvdoRDll
GetVersion = abc.af1xEvdoRDll_GetVersion
print GetVersion
versionArr = c_long * 4
version = versionArr(0, 0, 0, 0)
GetVersion(version)
print version
for i in version: print i

*************
Results are : 2, 1, 5, 0

Cheers,
Rajat
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to