Example code please, and I will have a look. Here are some ideas you should try.
in \portmidi28aug06\pm_win\pmwin.dll make sure that the line #define USE_DLL_FOR_CLEANUP is not commented out.
in your source include:
Import "portmidi28aug06/pm_win/pmdll.c"
and make sure you have the pmdll.dll inside your project folder.
in \portmidi28aug06\pm_win\pmwin.dll make sure that the line #define USE_DLL_FOR_CLEANUP is not commented out.
in your source include:
Import "portmidi28aug06/pm_win/pmdll.c"
and make sure you have the pmdll.dll inside your project folder.