944,168 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 950
  • C RSS
Feb 18th, 2007
0

interfacing et al

Expand Post »
I have a complicated problem at hand, and im open to any suggestions for solving it.

Im working with a program called Psi which is written in C and has the GUI in Tcl/tk. A guy working on this earlier added 2 functions to get and set some properties of the program [in C]. The functions are straightforward.

I built the executable in Cygwin.

Now i need to extract values from these function using Python. I thought of using SWIG to generate the wrapper code. I would need these values at run-time. what are my options for this.

Would i need to link the additional files with the existing files, and build the executable again? the swig tutorial for windows said that i would need to build a dll to be used with the .py file, so that it can use the additional functions, written in C.

I experimented with swig, and for simple examples [standalone programs] it worked fine [i did this on linux]. Now i need to do this on windows, and ive never worked with dlls before. I have a vague idea abt what to do but im not sure of it. So could someone please help me out with some suggestions.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
saintlysav is offline Offline
3 posts
since Feb 2007
Feb 18th, 2007
0

Re: interfacing et al

Here is some information. For more info you can google for your question. Writing a dll is just too complicated to fully explain here. Read some of the google links.

How to interface a DLL with python is probably best to post in the phthon board.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2283
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,963 posts
since Aug 2005
Feb 18th, 2007
0

Re: interfacing et al

Thanks for the links... ill post this on the python board for dll interface issues.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
saintlysav is offline Offline
3 posts
since Feb 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: bioskey()
Next Thread in C Forum Timeline: Convert to Absolute Values





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC