Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

winmm.dll exception

$
0
0

ok im new to C# programming and i hit a snag that im confused about. im trying to make a mediaplayer and i got the basics to work but when i tried to add things like Volume control i looked up that i needed to inport the winmm.dll file, but when i run the app i get the        $exception    {"Unable to load DLL 'C:/Windows/System32/winmm.dll)': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"}    System.Exception {System.DllNotFoundException}

this is the code, be nice im new:)

 
        [DllImport("C:/Windows/System32/winmm.dll)")]
        public static extern int waveoutgetVolume(IntPtr owh, out uint VolumeVX);
        
        [DllImport("C:/Windows/System32/winmm.dll")]
        public static extern int waveoutsetVolume(IntPtr owh, out uint VolumeVX);

if thats not enough i will put more of my code



Viewing all articles
Browse latest Browse all 1710

Trending Articles