Joshua Thielen wrote:
Note: I'm not sure if I should have called ExitProcess if mmsystem.dll can't be loaded
not needed, if it couldn't be loaded, then no need to free it
and if I needed to call FreeLibrary. I just took the LoadLibrary("user32") as an example.
well, error reporting for 16 bit DLL is a bit different (see below)
- if(!(mmsystem = LoadLibrary16("mmsystem.dll")))
the correct test should be
- if((mmsystem = LoadLibrary16("mmsystem.dll")) < 32)
(the other values (< 32) are the error codes)
A+