Python Forum
Calling a C Func though Pyhon Script using DLL file which is created for C file.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calling a C Func though Pyhon Script using DLL file which is created for C file.
#3
Hi.

How do I get a python code to call a C code?
The reverse doesnt seem to be working as C doesnt support a few nescessary advanced libraries.
I am using WiringPI on the odroid c2 . I have a C code that uses the wiringP library and another python script that does something else. I want this python script to call the C code (functions) in a loop using CTYPES
Kindly help.

Thank you.
Reply


Messages In This Thread
RE: Calling a C Func though Pyhon Script using DLL file which is created for C file. - by TOMIN - Feb-14-2017, 02:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pass arguments from bat file to pyhon script from application absolut 2 939 Jan-13-2025, 11:05 AM
Last Post: DeaD_EyE
  Best way to feed python script of a file absolut 6 1,059 Jan-11-2025, 07:03 AM
Last Post: Gribouillis
  How to write variable in a python file then import it in another python file? tatahuft 4 876 Jan-01-2025, 12:18 AM
Last Post: Skaperen
  How to make it so whatever I input into a script gets outputted on a different file spermatozwario 4 1,107 Nov-24-2024, 12:58 PM
Last Post: deanhystad
  JSON File - extract only the data in a nested array for CSV file shwfgd 2 1,033 Aug-26-2024, 10:14 PM
Last Post: shwfgd
  FileNotFoundError: [Errno 2] No such file or directory although the file exists Arnibandyo 0 835 Aug-12-2024, 09:11 AM
Last Post: Arnibandyo
  "[Errno 2] No such file or directory" (.py file) IbrahimBennani 13 6,179 Jun-17-2024, 12:26 AM
Last Post: AdamHensley
  How can I print from within actor(func) ?? Pedroski55 2 902 May-01-2024, 05:35 AM
Last Post: Pedroski55
  File is not being created with 'w' argument CAD79 3 1,481 Mar-14-2024, 12:05 PM
Last Post: snippsat
  python script is hanging while calling a procedure in database prasanthi417 4 2,007 Jan-17-2024, 02:33 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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