Python passing parmaeter to DLL -


i trying run python program accesses dll. original programs in c , vb have been attempting translate.

at present problem in following hobject parameter of function:

hsearch = ctapidll.ctfindfirst(mhctapi, squery, "", hobject, 0)

the hobject defined in c handle, , in vba integer.

when try define hobject c_type like: hobject = c_int() no errors there no output dll.

if try: hobject = c_int(1) dll gives me output, , error: windows error: exception: access vio;ation writing 0x00000001.

i've tried other variations, defining hobject string. doesn't come errors, in later code, hobject returns gibberish, rather integer values.

does have thought on how correctly define hobject?


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -