Python Forum
it's about using ctypes to load .dll file
Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
it's about using ctypes to load .dll file
#1
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!!!
Reply
#2
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
Recommended Tutorials:
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  using ctypes to use a dll in a python module dauriac 3 379 Mar-06-2024, 04:38 PM
Last Post: dauriac
  Trying to debug segfault in ctypes binding to Fortran bthomas 1 600 Sep-01-2023, 11:26 AM
Last Post: bthomas
  ctypes juliolop 7 1,389 Apr-20-2023, 03:33 PM
Last Post: Larz60+
  How to load all pages of the pdf file to the program alicenguyen 9 2,277 Jul-04-2022, 03:14 AM
Last Post: alicenguyen
  Issue while using ctypes in python GiggsB 6 2,782 Mar-27-2022, 03:38 AM
Last Post: GiggsB
  Ctypes and libffi.so.7 luxedo 1 6,056 Oct-23-2021, 09:24 PM
Last Post: DeaD_EyE
  possible ctypes and numpy conflict? herbal_rage 0 3,148 Apr-16-2020, 11:35 AM
Last Post: herbal_rage
  Phyton code to load a comma separated csv file in to a dict and then in to a dB mrsenorchuck 2 2,673 Nov-29-2019, 10:59 AM
Last Post: mrsenorchuck
  Load and format a CSV file fioranosnake 11 4,512 Oct-30-2019, 12:32 PM
Last Post: perfringo
  Load JSON file data into mongodb using pymongo klllmmm 1 11,868 Jun-28-2019, 12:47 AM
Last Post: klllmmm

Forum Jump:

User Panel Messages

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