why the AddIn module can not lauch and why the DLL which is compiled without any error can not register with regsvr32.

Hi. I'm converting the AddIn in SW 2009 to in SW 2010.

The current system is as follows,

SolidWorks Premium 2010 SP4,
Windows 7 Enterprise 32 bit,
Microsoft Visual C++ 2005,
SW SDK 2010.

I could make "hoge.dll" after the source code was complied and linked with no error and 32 warnings.

I launched the AddIn in SW 2010 then the error of SW occurred "Failed to load the module. Not found the AddIn or a part of the constructing parts of AddIn."
Further, I checked regsvr32 and It showed the error "Fail to load the module "hoge.dll." Check the path to the DLL and which DLL is correct or not. Not found the assigned module."

I'm wondering why the AddIn module can not lauch and why the DLL which is compiled and linked without any error can not register with regsvr32.
I really appreciate you if any one give me advice.

Sincerely,

KK

SolidworksApi macros