EMBEDDING > Run Python & Run C Function

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
 
A

anonymisiert85

i readed this before but not understand it - but now - the second time
it works

THANK YOU!!!!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top