Looking for best way to Incorporate C++ dll with Python -


i have python gui application needs incorporate complex c++ dll. have looked boost.python having difficulties program contains 5 separate c++ files , have no prior c++ coding experience. able test 'hello world' c++ dll working python c++ code simple compared dll need.

i have gotten dll work visual basic project looking best possible solution same application in python.

would best attempt rewrite c++ code in python or try boost.python wrappers coded correctly? if time required rewrite code in python comparable time take code wrappers preferred rewrite code completely?

would converting dll code compiled language interpreted 1 show more negative affects positive?

thank in advance,

garrett

i started using boost.python year ago novice/mid level c++ programmer, , happy decision go forward it. learning curve steep, gradually eases once learn how navigate online documentation. have trouble every , then, best assistance found on how use boost.python asked questions on , independent blogs. there ton of online documentation out in aether.

would best attempt rewrite c++ code in python or try boost.python wrappers coded correctly?

this depends on:

1) how 'heavy lifting' c++ dll doing.

2) type of arguments being passed python c++ dll.

3) how need deliver working version of code.

if creating instances of c++ objects, calling members python, , returning numpy arrays, relatively straightforward do. if need operate on pyobjects in c++, can little tricky real fast. if need latter, prepared invest bit more time , effort.

also, keep in mind when create dll, binary compatible micro versions within same major versions. ran portability issues in past trying run *.so on machine python2.7 installed on it, when linked against python 2.6 libraries. see:

boost python portability concerns


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -