Embedding Python

2006-05-09 Thread gavinpaterson
Dear Pythoners, I am writing as I am having trouble embedding a Python program into a Win XP C++ console application. I have written a script file for importing and I am trying to use the example for "Pure Embedding" found in the product documentation. The program fails to successfully execute p

Embedding Python in C++ Problem

2006-05-09 Thread gavinpaterson
Dear Pythoners, I am trying to embed a Python script into a C++ application for the first time. Although I have used the example 5.3 Pure Embedding I am having problems with calling the function defined in my program. If I define function multiply in module "multiply.py" def multiply(a,b):