A problem with ATL

xiaoxiao2021-03-06  105

The process external server is a long text name. When the registration is registered, it has become an 8.3 format, resulting in a long text name recorded in the appid, and the access license for DCOMCNFG to the AppID is bypassed, because the following code Tchar Szmodule [ _MAX_PATH]; getModuleFileName (PM-> M_HINST, SZModule, _MAX_PATH);

// Convert to short path to work around bug in NT4's CreateProcess TCHAR szModuleShort [_MAX_PATH]; GetShortPathName (szModule, szModuleShort, _MAX_PATH); LPOLESTR pszModule = T2OLE (szModuleShort);

The solution is to turn the file name in the app into 8.3 format, in the registration script

转载请注明原文地址:https://www.9cbs.com/read-124792.html

New Post(0)