From: Eric Y. <er...@er...> - 2015-01-27 23:24:04
|
Hi Everyone, I wrapped my C++ code using swig for python. Normally, the code with a COM, and I can pass COM objects to functions. Now, what I've done is wrapped my C++ code with SWIG, and used the comtypes package in Python to create my COM objects. When I try to pass my Python-COM objects to SWIG I get errors,specifically, at lines that are trying to convert my Python COM objects, (or any Python Objects). e.g. SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ChannelPtr, 0) This returns -1 My question is what should I do to fix the problem? One of the potential causes, is that my SWIG code has no idea as to what a ChannelPtr is. And it doesn't include the actual code for the COM. Eric |