Click here to Skip to main content
16,004,820 members
Home / Discussions / C#
   

C#

 
General32 bit integer from sbyte array Pin
BrcKcc19-Oct-04 9:03
BrcKcc19-Oct-04 9:03 
GeneralRe: 32 bit integer from sbyte array Pin
Dies19-Oct-04 9:38
Dies19-Oct-04 9:38 
GeneralRe: 32 bit integer from sbyte array Pin
Christian Graus19-Oct-04 9:41
protectorChristian Graus19-Oct-04 9:41 
GeneralMSMQ in C# Pin
ppp00119-Oct-04 9:00
ppp00119-Oct-04 9:00 
GeneralRe: MSMQ in C# Pin
Heath Stewart19-Oct-04 11:17
protectorHeath Stewart19-Oct-04 11:17 
GeneralMCE SDK 2005 problem Pin
Oguz Mazlum19-Oct-04 7:48
Oguz Mazlum19-Oct-04 7:48 
GeneralRe: MCE SDK 2005 problem Pin
Heath Stewart19-Oct-04 11:12
protectorHeath Stewart19-Oct-04 11:12 
GeneralRe: MCE SDK 2005 problem Pin
Oguz Mazlum19-Oct-04 11:46
Oguz Mazlum19-Oct-04 11:46 
I didnt get any exception, the code gives no errors. I wrote i managed code. I read in the SDK help file that i need to register the MSASState.dll with

[regasm.exe MSASState.dll /codebase] and placed the following registry

[HKEY_CLASSES_ROOT\CLSID\{380AA9F1-5047-40D0-8BE9-18AB489CA469}
\Implemented Categories\{FCB0C2A3-9747-4c95-9d02-820AFEDEF13F}]
@="Media Status Sink"

This was needed to read mediastate information about the Media Center.
I wrote a simple code that checks if the MCE is active or not active. I have loaded the MediaState.dll in to my app.

<br />
....<br />
MediaState mediaState = new MediaState();<br />
// hook up events<br />
mediaState.MediaCenter.Started += new EventHandler(OnMediaCenterStarted);<br />
mediaState.MediaCenter.VolumeChanged += new EventHandler(MediaCenter_VolumeChanged);<br />
// Start receiving media state information<br />
mediaState.Connect();<br />
if (mediaState.MediaCenter.Active)<br />
{<br />
   label8.Text = "Media Center is Active";<br />
}<br />
else<br />
{<br />
    label8.Text = "Media Center is NOT Active";<br />
}<br />
....<br />


I'm getting that the status is NOT active. I have tried the mediastatedisplay example that came with the MCE SDk 2005 on my MCE and that also cant read any information about MCE while it is running. I have no idea what could be wrong.
GeneralRe: MCE SDK 2005 problem Pin
Heath Stewart19-Oct-04 12:50
protectorHeath Stewart19-Oct-04 12:50 
GeneralRe: MCE SDK 2005 problem Pin
Oguz Mazlum19-Oct-04 13:08
Oguz Mazlum19-Oct-04 13:08 
GeneralRe: MCE SDK 2005 problem Pin
Heath Stewart19-Oct-04 15:01
protectorHeath Stewart19-Oct-04 15:01 
GeneralAnimating .x files with MDX9 Pin
JDUK19-Oct-04 6:21
JDUK19-Oct-04 6:21 
GeneralRe: Animating .x files with MDX9 Pin
Heath Stewart19-Oct-04 7:26
protectorHeath Stewart19-Oct-04 7:26 
GeneralRe: Animating .x files with MDX9 Pin
JDUK19-Oct-04 7:41
JDUK19-Oct-04 7:41 
GeneralRe: Animating .x files with MDX9 Pin
Heath Stewart19-Oct-04 8:02
protectorHeath Stewart19-Oct-04 8:02 
GeneralRe: Animating .x files with MDX9 Pin
JDUK19-Oct-04 8:20
JDUK19-Oct-04 8:20 
GeneralRe: Animating .x files with MDX9 Pin
JDUK19-Oct-04 22:23
JDUK19-Oct-04 22:23 
GeneralVoice recognition Pin
amatyasik19-Oct-04 5:06
amatyasik19-Oct-04 5:06 
GeneralRe: Voice recognition Pin
tom_dx19-Oct-04 13:38
tom_dx19-Oct-04 13:38 
GeneralTAPI Pin
rpussewela19-Oct-04 4:41
rpussewela19-Oct-04 4:41 
GeneralRe: TAPI Pin
Dave Kreskowiak19-Oct-04 8:33
mveDave Kreskowiak19-Oct-04 8:33 
GeneralRe: TAPI Pin
rpussewela19-Oct-04 20:38
rpussewela19-Oct-04 20:38 
GeneralRe: TAPI Pin
Nick Parker19-Oct-04 12:45
protectorNick Parker19-Oct-04 12:45 
GeneralUI Thread Pin
eDip19-Oct-04 4:39
eDip19-Oct-04 4:39 
GeneralRe: UI Thread Pin
Stefan Troschuetz19-Oct-04 5:08
Stefan Troschuetz19-Oct-04 5:08 

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.