Given that I can't debug the C:\Program Files\MATLAB\R2017b\bin\win64\libmwms.dll object, I figured I would repair/reinstall my Windows 10 and MATLAB R2017b environments back to "pristine" (keeping Apps & Data).
Here is the action plan I followed:
1. Uninstall MATLAB R2017b following instructions https://www.mathworks.com/matlabcentral/answers/101795-how-do-i-uninstall-or-reinstall-matlab-on-a-windows-computer?s_tid=srchtitle
There was no "uninstall.exe" file in the $MATLAB\uninstall folder, so I used the Windows uninstall feature, and deleted the remaining C:\Program Files\MATLAB\R2017b folder and subfolders).
2. Perform a Windows 10 "Repair Install"
As per instructions https://answers.microsoft.com/en-us/windows/forum/windows_10-windows_install-winpc/how-to-perform-a-repair-upgrade-using-the-windows/35160fbe-9352-4e70-9887-f40096ec3085
Using the specifically prepared ISO, and selecting the option to "Keep Apps and Data"
4. Run Windows command (as Administrator) sfc /scannow
This detected NO system file errors.
5. Reboot
6. Download & Install MATLAB R2017b
- Set MATLAB preferences
- Set Windows Environment PATH variable
7. Register MATLAB as COM server (as Administrator)
!matlab -regserver
8. Rebuild engwindemo application using Visual Studio 2013
As per https://www.mathworks.com/matlabcentral/answers/164250-how-can-i-compile-a-matlab-engine-application-using-microsoft-visual-studio-2012
9. Call "engwindemo.exe" to test the COM interface.
I still receive the same error message:
"The procedure entry point could not be located in the dynamic link library
C:\Program Files\MATLAB\R2017b\bin\win64\libmwms.dll"
Is this a bug in R2017b that I should report to Mathworks?