C++ Addin SWX

1) Nitially, on building MFSWAddIn, i was getting error forswpublished.tlb. so, i included below path inproperties->C/C++->Additional Include Directories.

F:\Program Files\SolidWorks 2009

2) after build, i got other below error

1>Registering the Addin with SolidWorks

1>Project : error PRJ0019: A tool returned an error code from"Registering the Addin with SolidWorks"

How can i fix this error.
SolidworksApi macros