std::wstring strPathModule = sPathModule;
TCHAR sPathModule[512];
::GetModuleFileName(NULL, sPathModule,sizeof(sPathModule));
size_t siPos = strPathModule.rfind(_T('\\'));
if(siPos != std::wstring::npos)
strPathModule = strPathModule.substr(0, siPos+1);