Click here to Skip to main content
15,914,066 members
Home / Discussions / C#
   

C#

 
GeneralRe: CancelEventHandler? Pin
leppie20-Aug-06 2:21
leppie20-Aug-06 2:21 
GeneralRe: CancelEventHandler? Pin
Vitaliy Tsvayer20-Aug-06 3:20
Vitaliy Tsvayer20-Aug-06 3:20 
GeneralRe: CancelEventHandler? Pin
leppie20-Aug-06 3:35
leppie20-Aug-06 3:35 
Questionhelp me Pin
Tahir Shah19-Aug-06 7:16
Tahir Shah19-Aug-06 7:16 
AnswerRe: help me Pin
Colin Angus Mackay19-Aug-06 8:11
Colin Angus Mackay19-Aug-06 8:11 
QuestionAdding a tab Pin
kalyanPaladugu19-Aug-06 5:50
kalyanPaladugu19-Aug-06 5:50 
AnswerRe: Adding a tab Pin
Stefan Troschuetz19-Aug-06 5:53
Stefan Troschuetz19-Aug-06 5:53 
AnswerRe: Adding a tab Pin
User 665819-Aug-06 6:07
User 665819-Aug-06 6:07 
Questionworld 2003 Pin
TAREQ F ABUZUHRI19-Aug-06 4:56
TAREQ F ABUZUHRI19-Aug-06 4:56 
AnswerRe: world 2003 Pin
Nader Elshehabi20-Aug-06 2:07
Nader Elshehabi20-Aug-06 2:07 
GeneralRe: world 2003 Pin
TAREQ F ABUZUHRI20-Aug-06 4:00
TAREQ F ABUZUHRI20-Aug-06 4:00 
GeneralRe: world 2003 Pin
Nader Elshehabi20-Aug-06 6:18
Nader Elshehabi20-Aug-06 6:18 
QuestionProblem with excel 97 Pin
AnnnS19-Aug-06 2:50
AnnnS19-Aug-06 2:50 
AnswerRe: Problem with excel 97 Pin
Rob Graham19-Aug-06 3:06
Rob Graham19-Aug-06 3:06 
AnswerRe: Problem with excel 97 Pin
Ista19-Aug-06 16:21
Ista19-Aug-06 16:21 
AnswerRe: Problem with excel 97 Pin
Nader Elshehabi20-Aug-06 2:20
Nader Elshehabi20-Aug-06 2:20 
QuestionDirectShow Programming in C# for Mpeg-2 Demultiplexer Pin
Andy Rama19-Aug-06 0:39
Andy Rama19-Aug-06 0:39 
Hi to all,
I want to perform DirectShow coding in VC# 2005. In that I want to set properties of 'Mpeg-2 Demultiplexer' Filter.
Regarding that I have code written in C++ as follows,

BYTE SeqHdr[] = { ... };  // Contains the sequence header (not shown).<br />
<br />
AM_MEDIA_TYPE mt;<br />
ZeroMemory(&mt, sizeof(AM_MEDIA_TYPE));<br />
mt.majortype = MEDIATYPE_Video ;<br />
mt.subtype = MEDIASUBTYPE_MPEG2_VIDEO;<br />
mt.formattype = FORMAT_MPEG2Video;<br />
<br />
// Allocate the format block, including space for the sequence header. <br />
mt.cbFormat = sizeof(MPEG2VIDEOINFO) + sizeof(SeqHdr);<br />
mt.pbFormat = (BYTE*)CoTaskMemAlloc(mt.cbFormat);<br />
if (mt.pbFormat == NULL)<br />
{<br />
    // Out of memory; return an error code.<br />
}<br />
ZeroMemory(mt.pbFormat, mt.cbFormat);<br />
<br />
// Cast the buffer pointer to an MPEG2VIDEOINFO struct.<br />
MPEG2VIDEOINFO *pMVIH = (MPEG2VIDEOINFO*)mt.pbFormat


This code is obtained from http://windowssdk.msdn.microsoft.com/en-us/library/ms787857.aspx[^]

How to Convert it into C#? What is the interface for 'MPEG2VIDEOINFO' in C#?

Thanks & Best Regards,
Aniket
AnswerRe: DirectShow Programming in C# for Mpeg-2 Demultiplexer Pin
leppie19-Aug-06 11:09
leppie19-Aug-06 11:09 
GeneralRe: DirectShow Programming in C# for Mpeg-2 Demultiplexer Pin
Andy Rama20-Aug-06 20:08
Andy Rama20-Aug-06 20:08 
Questionpass and recieve arguments Pin
Nafiseh Salmani18-Aug-06 23:38
Nafiseh Salmani18-Aug-06 23:38 
JokeRe: pass and recieve arguments Pin
Colin Angus Mackay19-Aug-06 5:34
Colin Angus Mackay19-Aug-06 5:34 
AnswerRe: pass and recieve arguments Pin
Nader Elshehabi20-Aug-06 3:06
Nader Elshehabi20-Aug-06 3:06 
GeneralRe: pass and recieve arguments Pin
Nafiseh Salmani21-Aug-06 3:50
Nafiseh Salmani21-Aug-06 3:50 
GeneralRe: pass and recieve arguments Pin
Nader Elshehabi21-Aug-06 5:05
Nader Elshehabi21-Aug-06 5:05 
GeneralRe: pass and recieve arguments Pin
Nafiseh Salmani22-Aug-06 21:37
Nafiseh Salmani22-Aug-06 21: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.