how to use motionstudy api with c++ vs2013

when i call "using namespace swmotionstudy" after #import "cmotionswapi.tlb" named_guids, auto_search, the compiler throw an error : cannot find the namespace?

SolidworksApi macros