Thursday 25 April 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

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...