Wrapping C API

  • Thread starter Anish Chapagain
  • Start date
A

Anish Chapagain

Hi!!
I'm new to python and have a task for Wrapping up an old program
written in C(20.c files), to provide GUI and chart,graph feature in
Python. I've tried using SWIG but am not getting well in windows
system, wish to receive guidelines for initiating the task...
 
U

Ulrich Eckhardt

Anish said:
I'm new to python and have a task for Wrapping up an old program
written in C(20.c files), to provide GUI and chart,graph feature in
Python. I've tried using SWIG but am not getting well in windows
system, wish to receive guidelines for initiating the task...

Two ways come to mind:
1. ctypes
2. popen

The former is basically an interface to the C language types which makes it
rather easy to load C DLLs and call functions therein. The latter is a way
to start a program with redirected input and output, something that can be
used to remote-control any commandline application.

Uli
 
A

Anish Chapagain

Two ways come to mind:
1. ctypes
2. popen

The former is basically an interface to the C language types which makes it
rather easy to load C DLLs and call functions therein. The latter is a way
to start a program with redirected input and output, something that can be
used to remote-control any commandline application.

Uli

For, plotting chart and graph through C, dll in pyhton will ctype be
more easy..
if there any example would like to see once..
thank's
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top