Posted November 19, 2015
moranms: I created a launcher application to restore CD soundtracks for games that had the winmm.dll issue in Windows 10 (such as HoMM2). Let me know if you have any issues. http://www.filedropper.com/launchwithwinmm
Usage:
Place BOTH the LaunchWithWinMM.exe file and oggwinmm.dll inside the game directory. Remove winmm.dll from the game directory if it exists!
From a command prompt or batch file: LaunchWithWinMM.exe "NameOfGameExe"
Eg, LaunchWithWinMM.exe HEROES2W.EXE
You will need the VC++ redistributable for Visual Studio 2015, available here:
https://www.microsoft.com/en-us/download/details.aspx?id=48145
Note: This oggwinmm.dll is based on the publicly available ogg-winmm library on GitHub. If GOG has distributed modified versions for some games, my version may not work at all for that game. I've tested my version with both HoMM2 and X-Wing 98, both seem fine.
ZellSF: Any chance for a repuload? Anyone? Usage:
Place BOTH the LaunchWithWinMM.exe file and oggwinmm.dll inside the game directory. Remove winmm.dll from the game directory if it exists!
From a command prompt or batch file: LaunchWithWinMM.exe "NameOfGameExe"
Eg, LaunchWithWinMM.exe HEROES2W.EXE
You will need the VC++ redistributable for Visual Studio 2015, available here:
https://www.microsoft.com/en-us/download/details.aspx?id=48145
Note: This oggwinmm.dll is based on the publicly available ogg-winmm library on GitHub. If GOG has distributed modified versions for some games, my version may not work at all for that game. I've tested my version with both HoMM2 and X-Wing 98, both seem fine.
Also if possible, source code?
It contains two fixes:
1) ddraw.dll, makes Heroes2 use Direct2D/DirectX11 instead of deprecated DirectDraw calls. Allows me to start full screen without any weird issues, but YMMV. If you want to use it, just drop it in the Heroes2 game folder.
2) winmm.dll. Fixes the winmm issue with Windows 10 so Heroes2 will start. Also includes an additional change that resume the CD tracks from where they left off, instead of restarting from the beginning (the original, non-GOG version with the CD resumes the music. The GOG version resets to the beginning of the track. My fix restores the resume ability). If you want to use it, just drop it in the Heroes2 game folder. Ignore the previous directions about LaunchWithWinMM.exe - that's no longer needed.
Both require the Visual Studio 2015 Runtime Redistributable for x86 available here: https://www.microsoft.com/en-us/download/details.aspx?id=48145
FuraxLeVeneur: Quicky testing => no issues, workpefectly !!!
After hard testing => no game crash :) Three issues (not blocking) :
- some little graphical artifact in castel. Under mouse pointer some square apear with other pattern (from another coordonates of the same picture it's seem)
- double clic pointer for moving heroes fail, you can set a destination but not moving to by twice clic (source capture mouse trouble ?) but the move is possible by clic on horse button
- cpu affinity must be set from taskmgr, a nice addon will be to have affinity set by LaunchWithWinMM.exe (i try to use c:\windows\system32\cmd.exe /C start /affinity 1 LaunchWithWinMM.exe but the affinity is set for LaucnhWithWinMM not soon process Heroes2W.exe)
Very nice and usefull tool :) If you don't have any time to optimized it it's all ready a good job.
Thanks for the feedback. I haven't seen the double click issue you mentioned, but I did see the graphic issues with the mouse pointer when in the castle. If you switch from the "color" mouse to the "black and white" option, that issue is resolved.After hard testing => no game crash :) Three issues (not blocking) :
- some little graphical artifact in castel. Under mouse pointer some square apear with other pattern (from another coordonates of the same picture it's seem)
- double clic pointer for moving heroes fail, you can set a destination but not moving to by twice clic (source capture mouse trouble ?) but the move is possible by clic on horse button
- cpu affinity must be set from taskmgr, a nice addon will be to have affinity set by LaunchWithWinMM.exe (i try to use c:\windows\system32\cmd.exe /C start /affinity 1 LaunchWithWinMM.exe but the affinity is set for LaucnhWithWinMM not soon process Heroes2W.exe)
Very nice and usefull tool :) If you don't have any time to optimized it it's all ready a good job.
Post edited November 19, 2015 by moranms