Start New Discussion within our Software Development Community

Hello,
Is it possible to use ctypes for this? I tried a sample code from net but it is not working.

from ctypes import cdll

myDll = ctypes.LoadLibrary('C++dll.dll')

mydll.testString()

Can u tell me how to load a C++ dll and call the functions from python?

Yes i googled and i found similar kind of code in a website.But when i run this it is not working?

Hello,
Is it possible to use ctypes for this? I tried a sample code from net but it is not working.

from ctypes import cdll

myDll = ctypes.LoadLibrary('C++dll.dll')

mydll.testString()

Can u tell me how to load a C++ dll and call the functions from python?

I can see typo on your code. myDll is not the same as mydll

This article has been dead for over six months. Start a new discussion instead.