Click here to Skip to main content
15,900,511 members
Home / Discussions / C#
   

C#

 
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 
QuestionHow to Enumerate Objects in a window Pin
NewDev42418-Aug-06 23:33
NewDev42418-Aug-06 23:33 
AnswerRe: How to Enumerate Objects in a window Pin
Nader Elshehabi20-Aug-06 3:17
Nader Elshehabi20-Aug-06 3:17 
QuestionRe: How to Enumerate Objects in a window Pin
NewDev42420-Aug-06 18:59
NewDev42420-Aug-06 18:59 
AnswerRe: How to Enumerate Objects in a window Pin
Nader Elshehabi21-Aug-06 1:48
Nader Elshehabi21-Aug-06 1:48 
QuestionRe: How to Enumerate Objects in a window Pin
NewDev42421-Aug-06 17:52
NewDev42421-Aug-06 17:52 
QuestionHow to remove tag on a html page Pin
Slimounet18-Aug-06 22:42
Slimounet18-Aug-06 22:42 
AnswerRe: How to remove tag on a html page Pin
coolestCoder18-Aug-06 23:00
coolestCoder18-Aug-06 23:00 
AnswerRe: How to remove tag on a html page Pin
Mircea Grelus19-Aug-06 3:38
Mircea Grelus19-Aug-06 3:38 
QuestionInterop.excel.. Exception in 2K, working in Xp Pin
AnnnS18-Aug-06 21:18
AnnnS18-Aug-06 21:18 

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.