Tony,
    I'm working on a number of mostly-minor updates to PortMidi, but I'm
using Visual Studio, which has a new format for projects, so I'm not
sure this will help with VC6. I'm not sure whether you had a specific
question or not. I agree the documentation is not great, and things
are complicated by the way Visual C projects work. Let me know if you
are stuck.
    This has been discussed before and there's something about this
somewhere in the PortMidi documentation or comments, but here's the
story on DLLs: Windows has a serious bug where a MIDI input left open
by an application will crash the system. The best protection we've
found is a DLL that closes any open MIDI ports automatically when the
program exits. The DLL cannot do this if the program crashes, but it
can get control after a Control-C exit and any normal exit. If you
don't want to bother with the DLL, there is a preprocessor switch to
disable this feature. If you do use the feature, which is the default,
then the application has to find pm_dll.dll. You can put the dll in
with other system dll's, but if you are developing, I recommend you
put the dll in the same directory as the application, hence the
instructions to copy the dll to so many places for testing. The
instructions are correct in that you don't have to do the copy until
just before executing the application. The dll is not used in the
build step, and you need to build the dll before you can copy it.

-Roger



_______________________________________________
media_api mailing list
[email protected]
http://www.create.ucsb.edu/mailman/listinfo/media_api

Reply via email to