Thursday, April 25, 2019

calling c functions from python

I have some code written in c that i want to call from python. Is there a way to do this. I looked at several documentations but they look quite vague. Can some one give me some specific steps please




Edit:



I wrote below dll called djj.dll
it has a file called try.cpp with following code



#include

int print(){


return 4;

}


Now, i build this dll and go to python idle.



I type print windll.djj.print . It gives syntax error .WHY??

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...