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

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -