The fix is to depend on a specific version of the common controls, as wxWidgets does. I don't really understand why this is needed, but it has some very version-specific logic of creating a standard message box, adding a windows hook, then modifying the resulting dialog, removing the STATIC control and replacing it with an EDIT control. Given this, it's no surprise that it would need an exact build of the DLL.