C++ Addin Unable To Start Program

Hi all,

I've just started building a solidworks addin, got reasonable success with c# using the template. However when I tried to create one with C++, using just the files from the template wizard, I've encountered an error "Unable to start program ____.dll" when I tried to run it in debug.

Additional information that may be useful, I've tried this in both visual studio 2010 and 2012, same error.

The add in compiles file and can be added into solidworks, just that i am unable to press 'start' and run solidwork + addin in visual studio's debugger.

This is for a 64 bit system.

Many thanks.

SolidworksApi macros