Is there any way to include python code in a C/C++ program? for example write a C++ program that prints hello world then calls a python script thats been linked to the executable then returns back to the C++ code after it's finished?
Yea Dat's right.
Apple sucks
This may help, it's the documentation for extending Python through C++.
Knowledge: Intermediate C#, Beginner AS3, HTML, CSS, Binary, Hex, Octal.
Science is only an educated theory, which we cannot disprove.
Thanks, looks good
Yea Dat's right.
Apple sucks
Yes you can run the python script file by calling it from the command line within the C++ program
You can also use distutils to compile C/C++ code and import it as a Python module(.pyd), and you can also call Python inside a C/C++ application and use the returned PyObjects* with the C Python API.
basically... the link thegamemaker gave you![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks