Hi Harry,
code.dll ( Please note that you forgot the . in your post ) is a dll from
the PocketPC platform. so the code you took maybe intended to run on a
PocketPC, if not you have to change it to the correct dll from the desktop.
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Harry J. Smith" <hj*****@ix.netcom.com> wrote in message
news:v1******************@newsread1.news.pas.earth link.net...
I added some sounds to my application, but the example in the msdn Library
did not work. It had:
[DllImport("coredll")]
public static extern bool PlaySound( string szSound, IntPtr hMod,
PlaySoundFlags flags );
The file coredll was not found. I changed it to [DllImport("WINMM")] and
it now works. What is the best way to handle this?
-Harry