The offending code is in the registration code in atlbase.h. For example
CComModule::UpdateRegistryFromResourceS() (and other places) however, before
you override this to use a long file name look at the comment:
GetModuleFileName(_pModule->GetModuleInstance(), szModule, _MAX_PATH);
// Convert to short path to work around bug in NT4's CreateProcess
GetShortPathName(szModule, szModuleShort, _MAX_PATH);
I don't know if the bug is present in SP4
Dr Richard T Grimes
Author "Professional DCOM Programming",
"Professional ATL COM Programming",
Coming in Jan 1999 "ATL Programmers Reference"
>In VC 5, the %MODULE% was expanded to the long file names, in VC 6 is
>expanded to short file names (with "~1"). This is very unpleasant for me.
>you know how to change this?