开发者

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

开发者 https://www.devze.com 2023-01-02 20:45 出处:网络
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).

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

精彩评论

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