Click here to Skip to main content
15,915,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CFormView help needed Pin
Gary R. Wheeler3-Sep-06 8:14
Gary R. Wheeler3-Sep-06 8:14 
QuestionPlaySound with NULL Pin
YaronNir3-Sep-06 5:30
YaronNir3-Sep-06 5:30 
Questionlinks appearance in the CRichEditCtrl Pin
YaronNir3-Sep-06 5:23
YaronNir3-Sep-06 5:23 
Questionoperations in the cout<< Pin
Ahmed Ismail Mohamed3-Sep-06 4:48
Ahmed Ismail Mohamed3-Sep-06 4:48 
AnswerRe: operations in the cout<< Pin
toxcct3-Sep-06 5:22
toxcct3-Sep-06 5:22 
AnswerRe: operations in the cout<< Pin
ahmed mega3-Sep-06 9:42
ahmed mega3-Sep-06 9:42 
AnswerRe: operations in the cout<< Pin
MIAN KAMRAN6-Sep-06 1:58
MIAN KAMRAN6-Sep-06 1:58 
QuestionAudio playback in a Win32 Service Pin
dubbaluga3-Sep-06 4:42
dubbaluga3-Sep-06 4:42 
Hello,

I' tried to develop a small application that's able to play MP3s in a windows service. My intention is to build a small media-player. The core of it shall run as a service and the communication between service and frontend is then some kind of IPC (not so important at the moment).

My question is, why applications like Winamp don't want to work as a background service. It only works, if I allow these applications to interact with my desktop. It even does not work, with fmod, that does not rely on a GUI:

===================================================
if (!FSOUND_Init(44100, 64, 0))
{
debug_stream = fopen("c:\\temp\\wmus.log", "w");
fprintf(debug_stream, "%s\n", FMOD_ErrorString(FSOUND_GetError()));
fclose(debug_stream);
exit(EXIT_FAILURE);
}
===================================================

This snippet always fails with "Error setting cooperative level for hardware." when started as a service (it works, when it's executed by a logged-in user) and I think, that this messages comes from DirectSound, since FMOD (http://www.fmod.org) relies on it.

Best regards and thanks for reading,
Rainer
AnswerRe: Audio playback in a Win32 Service Pin
Gary R. Wheeler4-Sep-06 3:49
Gary R. Wheeler4-Sep-06 3:49 
QuestionAdding two large numbers Pin
Waldermort3-Sep-06 3:14
Waldermort3-Sep-06 3:14 
AnswerRe: Adding two large numbers Pin
Ahmed Ismail Mohamed3-Sep-06 3:29
Ahmed Ismail Mohamed3-Sep-06 3:29 
GeneralRe: Adding two large numbers Pin
Waldermort3-Sep-06 3:42
Waldermort3-Sep-06 3:42 
GeneralRe: Adding two large numbers Pin
Waldermort3-Sep-06 8:26
Waldermort3-Sep-06 8:26 
AnswerRe: Adding two large numbers Pin
Nader Elshehabi3-Sep-06 4:40
Nader Elshehabi3-Sep-06 4:40 
GeneralRe: Adding two large numbers Pin
Waldermort3-Sep-06 7:39
Waldermort3-Sep-06 7:39 
AnswerRe: Adding two large numbers Pin
toxcct3-Sep-06 5:24
toxcct3-Sep-06 5:24 
AnswerRe: Adding two large numbers Pin
Rick York3-Sep-06 16:06
mveRick York3-Sep-06 16:06 
AnswerRe: Adding two large numbers Pin
Stephen Hewitt3-Sep-06 16:16
Stephen Hewitt3-Sep-06 16:16 
AnswerRe: Adding two large numbers Pin
MayankT3-Sep-06 17:08
MayankT3-Sep-06 17:08 
QuestionCString to wchar_t*!!!!!! Pin
mostafa_pasha3-Sep-06 3:13
mostafa_pasha3-Sep-06 3:13 
AnswerRe: CString to wchar_t*!!!!!! Pin
Waldermort3-Sep-06 3:25
Waldermort3-Sep-06 3:25 
GeneralRe: CString to wchar_t*!!!!!! Pin
mostafa_pasha3-Sep-06 3:33
mostafa_pasha3-Sep-06 3:33 
AnswerRe: CString to wchar_t*!!!!!! Pin
messages3-Sep-06 7:50
messages3-Sep-06 7:50 
GeneralRe: CString to wchar_t*!!!!!! Pin
Waldermort3-Sep-06 8:23
Waldermort3-Sep-06 8:23 
GeneralRe: CString to wchar_t*!!!!!! Pin
messages3-Sep-06 8:34
messages3-Sep-06 8:34 

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.