问题
I'm porting an ATL control to 64-bit. The control uses the Stock Property pages (CLSID_StockFontPage, CLSID_StockColorPage) in its properties dialog.
After recompiling for x64, the Color and Font tabs are missing (because MsStkPrp.dll is 32-bit). Is there a 64-bit version of the dll or is there a better way to implement fonts and colors in an ATL ActiveX control?
回答1:
Even the 32-bits version of msstkprp.dll isn't present in Windows 10, so I copied it from my Windows XP virtual machine (%WINDIR%\System32\msstkprp.dll) to a directory. Then you can succesfully register it by starting an Administrative Prompt, change to that directory, and type
regsvr32 msstkprp.dll
来源:https://stackoverflow.com/questions/10524676/is-there-a-x64-version-of-msstkprp-dll