A
anonymisiert85
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
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