Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Look and Feel Pin
Michael Dunn7-Jun-06 3:30
sitebuilderMichael Dunn7-Jun-06 3:30 
AnswerRe: Look and Feel [modified] Pin
FarPointer7-Jun-06 3:31
FarPointer7-Jun-06 3:31 
GeneralRe: Look and Feel Pin
Andy Rama13-Jun-06 3:50
Andy Rama13-Jun-06 3:50 
GeneralRe: Look and Feel Pin
FarPointer13-Jun-06 21:11
FarPointer13-Jun-06 21:11 
AnswerRe: Look and Feel Pin
ThatsAlok7-Jun-06 22:24
ThatsAlok7-Jun-06 22:24 
QuestionMediaplayer and COM Pin
TheMason7-Jun-06 3:04
TheMason7-Jun-06 3:04 
AnswerRe: Mediaplayer and COM [modified] Pin
_AnsHUMAN_ 7-Jun-06 3:30
_AnsHUMAN_ 7-Jun-06 3:30 
AnswerRe: Mediaplayer and COM Pin
TheMason8-Jun-06 5:36
TheMason8-Jun-06 5:36 
Hello there again,

at least i found a little nice function called GetActiveObject. With this function i hoped to get Information if a media player is already running (and probably an pointer to it). But unfortunately this doesn't work. I always get an error (I only know the german error-string : Vorgang nicht vorhanden, in English it might be : process is not existing), although a media-player is active. If i am trying to detect if Word or Excel this Function works (i get an pointer to IUnkown, and an Error-Code with S_OK, only when Word/Excel is active).
Has anyone an idea why GetActiveObject doesn't work with media-player ?!
Might it be that the MediaPlayer.exe only instanciate an media-player-core, to which i am not able to connect to ?! Dead | X|

Thx

PS. here is my code-snippet that doesn't work :

HRESULT hr;
CLSID stCLSID_1;
LPUNKNOWN pUnk;
LPDISPATCH pDisp;

// if (SUCCEEDED (::CLSIDFromProgID(L"Excel.Application", &stCLSID_1)))
if (SUCCEEDED (::CLSIDFromProgID(L"MediaPlayer.MediaPlayer.1", &stCLSID_1)))
{
hr = ::GetActiveObject (stCLSID_1, NULL, &pUnk);
if (hr == S_OK)
{
pUnk->Release ();
return true;
}
}
return false;
Question'The heck? How is 14==4? Pin
Lord Kixdemp7-Jun-06 2:11
Lord Kixdemp7-Jun-06 2:11 
AnswerRe: 'The heck? How is 14==4? Pin
kakan7-Jun-06 2:15
professionalkakan7-Jun-06 2:15 
AnswerRe: 'The heck? How is 14==4? Pin
Cedric Moonen7-Jun-06 2:15
Cedric Moonen7-Jun-06 2:15 
AnswerRe: 'The heck? How is 14==4? Pin
Alton Williams7-Jun-06 2:33
Alton Williams7-Jun-06 2:33 
GeneralRe: 'The heck? How is 14==4? Pin
Lord Kixdemp7-Jun-06 2:49
Lord Kixdemp7-Jun-06 2:49 
Questioncreating a grid like control using edit control Pin
arunmahe7-Jun-06 1:37
arunmahe7-Jun-06 1:37 
AnswerRe: creating a grid like control using edit control Pin
Cedric Moonen7-Jun-06 1:49
Cedric Moonen7-Jun-06 1:49 
AnswerRe: creating a grid like control using edit control Pin
harilal7-Jun-06 2:01
harilal7-Jun-06 2:01 
AnswerRe: creating a grid like control using edit control Pin
Maximilien7-Jun-06 2:48
Maximilien7-Jun-06 2:48 
AnswerRe: creating a grid like control using edit control Pin
ThatsAlok7-Jun-06 22:41
ThatsAlok7-Jun-06 22:41 
Questionhow to send a custom message to a window service? Pin
sunyw_20067-Jun-06 1:15
sunyw_20067-Jun-06 1:15 
AnswerRe: how to send a custom message to a window service? Pin
Viorel.7-Jun-06 3:28
Viorel.7-Jun-06 3:28 
AnswerRe: how to send a custom message to a window service? Pin
Nibu babu thomas7-Jun-06 18:27
Nibu babu thomas7-Jun-06 18:27 
QuestionUSB-Serial adpater and normal serial communication Pin
Veeresh Hiremath7-Jun-06 0:39
Veeresh Hiremath7-Jun-06 0:39 
AnswerRe: USB-Serial adpater and normal serial communication Pin
Cedric Moonen7-Jun-06 1:23
Cedric Moonen7-Jun-06 1:23 
Questiondate function to mysql Pin
yogendra kaushik7-Jun-06 0:35
yogendra kaushik7-Jun-06 0:35 
AnswerRe: date function to mysql Pin
_AnsHUMAN_ 7-Jun-06 0:45
_AnsHUMAN_ 7-Jun-06 0:45 

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.