Python Forum
it's about using ctypes to load .dll file - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: it's about using ctypes to load .dll file (/thread-541.html)



it's about using ctypes to load .dll file - Yuji3131 - Oct-18-2016

windows7
when I put this to load "add.dll"
Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> from ctypes import *
>>> lib = ctypes.windll.LoadLibrary("C:\\Users\\Owner\\add.dll")
and >>> appeared so it means my .dll file gets loaded and ready to be used in python as expanded modules, right?!

Thx for ur kind!!!


RE: it's about using ctypes to load .dll file - metulburr - Oct-24-2016

Quote:appeared so it means my .dll file gets loaded and ready to be used in python as expanded modules, right?!
In theory yes. You can always make a test function and run that afterwords to make sure