| | |
interfacing et al
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Feb 2007
Posts: 3
Reputation:
Solved Threads: 0
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.
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.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
![]() |
Similar Threads
- Send data on a serial port (C++)
- which pl for fingerprint scanner (Computer Science)
- PayPal? - vs. other online escrow services (eCommerce)
- serial port interfacing (Visual Basic 4 / 5 / 6)
- need help in interfacing a program (Computer Science)
- VBScript disk quota program - whats up? (Visual Basic 4 / 5 / 6)
- Interfacing (Java)
- C++ Builder and Mappoint Pushpins Problem (C++)
Other Threads in the C Forum
- Previous Thread: bioskey()
- Next Thread: Convert to Absolute Values
| Thread Tools | Search this Thread |
* ansi api array arrays bash binarysearch calculate centimeter changingto char character convert copyanyfile copypdffile creafecopyofanytypeoffileinc createcopyoffile createprocess() dynamic execv fflush file floatingpointvalidation fork forloop frequency function getlogicaldrivestrin givemetehcodez grade graphics gtkwinlinux histogram homework i/o ide inches include infiniteloop initialization input intmain() iso keyboard km license linked linkedlist linux list looping loopinsideloop. lowest matrix microsoft multi mysql oddnumber open opendocumentformat openwebfoundation overwrite pdf pointer pointers posix power program programming pyramidusingturboccodes radix read recursion recv recvblocked reversing scanf scheduling segmentationfault send shape single socketprogramming stack standard strchr string strings suggestions test testautomation testing threads unix urboc user variable whythiscodecausesegmentationfault win32api windowsapi






