By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,100 Members | 2,892 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,100 IT Pros & Developers. It's quick & easy.

Passing pointer parameters to a C++ function call from a pythin script

P: n/a
I am calling my C++ function (in a DLL) from a python script as

This works fine if the 2 parameters accepted by the function are
normal "long" type.

If the function expects a pointer type parameter then the same way of
passing the parameter doesn't work. For example if the C++ function
expects a "long *" and I am calling it as:

then in this case it fails.

Can anybody point out what could be the culprit :-)

What I understood from some python documention that I saw was that
python internally treats all parameters as passed by reference.
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.