EMBEDDING > Run Python & Run C Function
anonymisiert85 at mymail.ch
anonymisiert85 at mymail.ch
Fri Jun 22 11:09:40 EDT 2007
At the moment i can run python-string-code from C (MinGW, WinXP)
But how can i register a C-function in python-RUNTIME and call this C
function from python - without wrapper dll's or libs???
STEPS:
initialize python
regsiter foo() ########### don't know how to do this
run python-script "c=foo(a,b)"
finalize
my C function should do this:
char* foo (char* a, char* b)
{
char* c="return one strings";
return c;
}
have someone a idea?
i checked the online docs - but i don't understand :-(
can someone post a short sample? please...
thank you
More information about the Python-list
mailing list