Link to home
Start Free TrialLog in
Avatar of hlava
hlava

asked on

Main Volume on Sound Card

Is it Posible to set Volume by Messages
somethink like SendMessage(HWND of Volumewindow,MAIN_VOLUME,20,0)
Avatar of chensu
chensu
Flag of Canada image

Avatar of hlava
hlava

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?
ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hlava

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.
Avatar of hlava

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).
Avatar of hlava

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.
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.
Avatar of hlava

ASKER

It return that it couldn't find Winmm.lib