Calling DLL with several data fields in output params

J

Java script Dude

Hi,

I basically need to write a script that will make calls to a DLL and
parse the return result for API calls that consist of several data
fields in the input and output parameters.

[Questions]
[q1] Is ctypes the right Python library to use for this interaction.
.. . . . . I know about calldll but it seems quite poorly documented.
[q2] Are there any existing windows DLLs that one could use to build
simplified test code.
.. . . . . One that has several input and output parameters and playing
with it will not kill my system.
.. . . . . Also, I'd rather not have to learn how to write a DLL to
build a test case.

BTY - I have not decided on the language yet but would love to do this
in Python. Although, I am considering writing in C++ (me_b_newbie) -or-
JNI (it_b_ugly) -or- Obj-C (it_b_cool). MS languages are not an option
in my book :}

Thanks,
JsD
 
P

Peter Hansen

Java said:
I basically need to write a script that will make calls to a DLL and
parse the return result for API calls that consist of several data
fields in the input and output parameters.

[Questions]
[q1] Is ctypes the right Python library to use for this interaction.
. . . . . I know about calldll but it seems quite poorly documented.

ctypes replaces and improves on calldll, which whether poorly documented
or not is unsupported. It can do whatever you need.
[q2] Are there any existing windows DLLs that one could use to build
simplified test code.

Can't help you. There are obviously many windows DLLs in existence, and
any one of them might be suitable to you, but you'll have to judge that
yourself.

Why wouldn't you just use the target DLL that you already have?

-Peter
 
J

Java script Dude

Why wouldn't you just use the target DLL that you already have?

Still in the process of getting the software from the vendor.

However, I have had luck in playing around with win32 api and am now
getting the hang of using ctypes.

Looks like I am going down the Python road.

Thanks for the info :]

JsD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top