Python: accessing DLL function using ctypes — access by function *name* fails

前端 未结 3 786
不思量自难忘°
不思量自难忘° 2021-01-12 04:11

myPythonClient (below) wants to invoke a ringBell function (loaded from a DLL using ctypes). However, attempting to access ring

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-12 05:06

    Perhaps because the C++ name is mangled by the compiler and not exported from the DLL as RingBell. Have you checked that it appears in the exported names exactly like that?

提交回复
热议问题