LoadLibrary on OCX file fails in Windows 7 x64
I need to open a html help file from within a legacy windows application written in old version of C++ Builder. HtmlHelp is loaded via HtmlHelp.ocx, which I am loading via LoadLibrary. This has worked fine for years, but it does not work anymore in Windows 7 x64. It might also fail under Windows7 x86, but I don't have any computer with this OS, so I can't try it out at the moment. I am loading hhctrl.ocx dynamically as follows: #define HHPathRegKey "CLSID\\{adb880a6-d8ff-11cf-9377-00aa003b7a11}\\InprocServer32" bool THTMLHelper::LoadHtmlHelp() { HKEY HHKey; DWORD PathSize = 255; char Path[255]