Python Forum
Using C++/CLI wrapper functions by Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using C++/CLI wrapper functions by Python
#2
Hello,

I have an issue similar to the one you describe, raising the same error. I developed a DLL in C++ that, for a specific case, call a function of a second (external) DLL. It works fine in C++ but it fails for this specific case when it is called from Python code.
Following this thread, https://stackoverflow.com/questions/4579...reated-dll, I have found that if I put my external DLL where my python.exe is it works fine.

I then tried to specify the path to my external DLL using the function os.add_dll_directory() but it seems to be useless.

Since you asked your question 3 months ago, I was wondering if you found a way to overcome your issue?

Thanks
Reply


Messages In This Thread
RE: Using C++/CLI wrapper functions by Python - by Benji130 - Jun-20-2022, 12:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SystemError: <method-wrapper '__getattribute__' of EnumMeta object sciloop 4 1,590 Jul-23-2022, 07:57 PM
Last Post: sciloop
  Python executable Script (Wrapper) Hwang 2 1,947 Jan-12-2022, 06:53 PM
Last Post: Hwang
  Sqla wrapper Slojure 1 1,572 Nov-01-2021, 04:36 PM
Last Post: Larz60+
  Python C++ wrapper problem JESuh 1 2,220 Mar-30-2021, 04:37 PM
Last Post: nilamo
  C++ Wrapper for python yamifm0f 6 3,195 Nov-07-2019, 06:40 PM
Last Post: Gribouillis
  generating ctypes wrapper for a c library? brighteningeyes 9 7,249 Nov-04-2018, 02:31 AM
Last Post: brighteningeyes
  how to retrieve datas with Overpass API python wrapper apollo 0 2,938 Oct-15-2017, 02:27 PM
Last Post: apollo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020