开发者

How to expose a function in an exe to Python using SWIG without creating a dll (.pyd)?

I got a prototype working of exposing C++ classes & methods to python using SWIG. I had to create a DLL (.pyd) of the classes/members I want to expose (_MyModule.pyd & MyModule.py).

But now I want to expose classes/members/functions in the exe. How to do this? Re开发者_如何转开发factoring the exe is not an option.

One way is to create a wrapper dll for these exe classes. But a dll calling exe methods does not sound too good.

Looks like I am missing something obvious in SWIG.

Thanks.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜