Is it possible to call a python function via a DLL in C?

Asked

Viewed 51 times

2

I have a commercial program that makes a calculations and allows me to calculate something to feedback the simulation every time step through a DLL code in C.

I need to do mathematical optimizations and my codes are in python, would have some way to call my python function from the C code of the dll?

Note: My function takes variables, calculates some things, and returns other values.

  • Please translate your question. You are in the stack overflow

  • @Lucas Originally translated, Thank you.

  • Welcome to Stack Overflow! Your question seems to have some problems and your experience here in Stack Overflow may not be the best because of this. We want you to do well here and get what you want, but for that we need you to do your part. Here are some guidelines that will help you: Stack Overflow Survival Guide in English. "Is there a way?" is a very open question. The answer is yes, it has and it’s answered, so you want someone to show you how to do it, you no longer have a specific question.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.