Click here to Skip to main content
15,919,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalhelp me in MFC Pin
HoldMe3-Jul-02 22:13
HoldMe3-Jul-02 22:13 
Generalautologin with Win2000 Pin
Jerome Conus3-Jul-02 20:13
Jerome Conus3-Jul-02 20:13 
GeneralRe: autologin with Win2000 Pin
benjymous3-Jul-02 23:20
benjymous3-Jul-02 23:20 
GeneralRe: autologin with Win2000 Pin
Mike Nordell4-Jul-02 6:19
Mike Nordell4-Jul-02 6:19 
GeneralRe: autologin with Win2000 Pin
Michael Dunn4-Jul-02 7:38
sitebuilderMichael Dunn4-Jul-02 7:38 
QuestionShrinking a WAV (audio formats)? Pin
3-Jul-02 19:03
suss3-Jul-02 19:03 
AnswerRe: Shrinking a WAV (audio formats)? Pin
Christian Graus3-Jul-02 19:38
protectorChristian Graus3-Jul-02 19:38 
GeneralRe: Shrinking a WAV (audio formats)? Pin
Larry Antram3-Jul-02 20:04
Larry Antram3-Jul-02 20:04 
Including MP3 support in software pretty much requires using either Windows Media Player or paying royalties.

The way that is fairly easy (and cheap) is to simply use Windows Media Player:

1. Run Visual C++ 6 and open your project

2. Select "Project" > "Add to Project" > "Components and Controls" .. then from the "Component and Controls Gallery" dialog select "Registered ActiveX Controls" then "Windows MediaPlayer", then click "Insert".

3. Then in your program:

CMediaPlayer2 wmp;
wmp.Create( ... );
wmp.Open( FILENAME );
wmp.Play();

-OR-

Add the control to a dialog and map it to a variable and do something like:

m_wmp.Open( FILENAME );
m_wmp.Play();

Viola... instant support for MP3, WMA, and all the other Windows Media Player (WMP) formats... WMP has a big fat runtime at Microsoft that you can redistribute for free for systems that don't have it.

If you want something else such as everything in one EXE then you essentially have to pay royalties. For example, this company makes (what I assume) is a fairly nice royalty-based SDK:

http://www.xaudio.com -- they offer both static and dynamic link libraries

Regards, Larry Antram
Stardust Software

"I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones."
-- Albert Einstein
GeneralRe: Shrinking a WAV (audio formats)? Pin
Mike Nordell4-Jul-02 16:46
Mike Nordell4-Jul-02 16:46 
GeneralRe: Shrinking a WAV (audio formats)? Pin
Larry Antram4-Jul-02 17:18
Larry Antram4-Jul-02 17:18 
GeneralRe: Shrinking a WAV (audio formats)? Pin
5-Jul-02 7:21
suss5-Jul-02 7:21 
GeneralRe: Shrinking a WAV (audio formats)? Pin
Mike Nordell6-Jul-02 6:42
Mike Nordell6-Jul-02 6:42 
GeneralRe: Shrinking a WAV (audio formats)? Pin
haronis26-Jul-02 1:40
haronis26-Jul-02 1:40 
GeneralRe: Shrinking a WAV (audio formats)? Pin
Christian Graus26-Jul-02 1:54
protectorChristian Graus26-Jul-02 1:54 
AnswerRe: Shrinking a WAV (audio formats)? Pin
Larry Antram3-Jul-02 20:25
Larry Antram3-Jul-02 20:25 
GeneralRe: Shrinking a WAV (audio formats)? Pin
5-Jul-02 7:24
suss5-Jul-02 7:24 
GeneralModless Dialog problem (MFC) Pin
3-Jul-02 18:50
suss3-Jul-02 18:50 
GeneralRe: Modless Dialog problem (MFC) Pin
Christian Graus3-Jul-02 19:36
protectorChristian Graus3-Jul-02 19:36 
GeneralMessage handlers for array of controls Pin
Chou3-Jul-02 17:35
Chou3-Jul-02 17:35 
GeneralRe: Message handlers for array of controls Pin
Dave Bryant3-Jul-02 17:48
Dave Bryant3-Jul-02 17:48 
GeneralRe: Message handlers for array of controls Pin
Rama Krishna Vavilala3-Jul-02 17:54
Rama Krishna Vavilala3-Jul-02 17:54 
GeneralThanks Pin
Chou3-Jul-02 18:15
Chou3-Jul-02 18:15 
Generalstd::string and std::wstring Pin
Le centriste3-Jul-02 16:24
Le centriste3-Jul-02 16:24 
GeneralRe: std::string and std::wstring Pin
Rama Krishna Vavilala3-Jul-02 16:27
Rama Krishna Vavilala3-Jul-02 16:27 
GeneralRe: std::string and std::wstring Pin
Le centriste3-Jul-02 16:37
Le centriste3-Jul-02 16:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.