XLL with C++ Extensions for python

For discussion of the xlw project for producing xlls.

XLL with C++ Extensions for python

Postby chandra » Tue Mar 12, 2013 11:58 pm

Hi there,
I am new to this tool and I find this very useful for my work.
I am creating a plug-in for excel to be able to call python functions from within excel just like any inbuilt excel function.
For this, I am creating Python objects and calling the python function in C++ using PyImport.Import after converting the file name (in string) to a PyObject and so on.
The code compiles successfully and returns the desired output when compiled and run as a C++ program.

I tried to create an excel add-in by following the example in the video and got the code to build without any errors. However, when I call the function from Excel, excel crashes each time. I am not sure what is causing this error.

I will share the code if required. I would be glad if someone can help. Thanks.
chandra
 
Posts: 2
Joined: Tue Mar 12, 2013 11:47 pm

Re: XLL with C++ Extensions for python

Postby chandra » Mon Mar 18, 2013 7:15 pm

Just an update. I found that the Add-in does not crash excel in safe mode, but crashes in normal mode.
Any reasons for this behavior? What could help to get the xll to run in normal mode?

Thanks in advance for all your help.

Regards,
Chandra.
chandra
 
Posts: 2
Joined: Tue Mar 12, 2013 11:47 pm


Return to xlw

Who is online

Users browsing this forum: No registered users and 1 guest

cron