'"apartment"' replaced with 'apartment' to process attribute

I have an old Solidworks add-in created with VC++2003 andSolidWorks 2005. Now I want to convert it into VC++2005 andSolidWorks 2008. In the stdafx. h, I changed theID_SLDWORKS_TLB_MAJOR to 16, which I assume is the version numberfor solidworks 2008. Then I compiled the project and got thefollowing warnings:

bitmaphandler.h(24) : warning C4581: deprecated behavior:'"apartment"' replaced with 'apartment' to process attribute
swdocument.h(42) : warning C4581: deprecated behavior:'"apartment"' replaced with 'apartment' to process attribute

.. similar warnings appears in every where there is a line:
threading("apartment"),

and finally, I got an error:

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

What is wrong here? Thank you,
SolidworksApi macros