Hi,
I came across the XLW project when I was looking for a Python Excel Add-in. I find the project very useful for my work.
I tried to create a simple function that would call a Python function from Excel through an .xll created by XLW.
While the .xll builds successfully, there seems to be an error when calling the python script with PyImport_Import(%Module%Name).
The problem persists for both python 2.7 and 3.1.
I was wondering if you might have any solutions/fix to this.
I am attaching the c++ code here for your reference.
Many Thanks in advance.
Regards,
Chandra.
FYI: I use Visual Studio Express 2010, Python 2.7, XLW 5.0 and Excel 2010.
The sample python script "Sample.py" is as follows:
#Sample.py
def add(a,b):
return a+b
View and moderate all "support-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Support Requests"
c++ source code with python extension