Click here to Skip to main content
15,889,096 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created application in which i call C++ functions from python. Now I have problem i want to return variant array of recordset from C++ to python.

How can I convert a variant array of recordset to python equivalent datatype?
Posted
Updated 28-Sep-11 0:05am
v2

1 solution

Consider using SAFEARRAY[^] to pass the array across boundaries. Once the safearray is packed and returned from C++ code, you use it as the default array manipulation in Python.Python converts all SafeArrays to tuples[^] automatically.
 
Share this answer
 
Comments
ashwini hajgude 28-Sep-11 7:37am    
its not working when i try to access safe array element from python it gives error windowsError:exception:access violation reading x656c6573
ashwini hajgude 28-Sep-11 7:49am    
what is ctype for safearray

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900