hlava
asked on
Main Volume on Sound Card
Is it Posible to set Volume by Messages
somethink like SendMessage(HWND of Volumewindow,MAIN_VOLUME,2 0,0)
somethink like SendMessage(HWND of Volumewindow,MAIN_VOLUME,2
ASKER
Yes I Know this example.But I don't understand it much.
Could you write as simply as possible set volume by this way?
Could you write as simply as possible set volume by this way?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
will I need AFX headers if I'm programing in C++ Builder?
No, that's for MFC programs. But you do need to #include <mmsystem.h> and link to winmm.lib.
ASKER
Where is winmm.lib
winmm.lib is an import library for winmm.dll. winmm.lib is in the lib directory of your C++ compiler normally. I am not sure what you need for C++ Builder. Check the C++ Builder documentations (multimedia section such as the PlaySound function, or the mixerOpen function).
ASKER
Error,error,...
it return error while compiling.
I translate winmm.dll to winmm.lib,then implement but return error that couldn't find it.
it return error while compiling.
I translate winmm.dll to winmm.lib,then implement but return error that couldn't find it.
What's the error message? Does the C++ Builder come with any samples that use PlaySound, MCI or any multimedia functions? If yes, try to find out what lib files they link to.
ASKER
It return that it couldn't find Winmm.lib
http://www.codeguru.com/multimedia/ADMixer.shtml