Click here to Skip to main content
15,901,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have heard about api but i dont know about it

What I have tried:

i have heard about api but i dont know about it
Posted
Updated 1-Jan-17 5:32am

Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A very quick search using your subject as the search term gave nearly seven million hits: How to embedd Python in a C application - Google Search[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.
 
Share this answer
 
For any startup code you need to at least Google your problem once. If you had, you could have found this detailed article on CodeProject, Embedding Python program in a C/C++ code[^].

Even a simple code would be, to write a Python script and then execute that using Python interpreter, instead of embedding it and compiling it to native — you get to call Python interpreter using C language e.g system[^] function call.
 
Share this answer
 
v2
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900