Click here to Skip to main content
15,917,793 members
Home / Discussions / C#
   

C#

 
Questioncan any body tell the syntex of reading and writing an object into file? Pin
imran_rafique27-Sep-02 16:09
imran_rafique27-Sep-02 16:09 
AnswerRe: can any body tell the syntex of reading and writing an object into file? Pin
Nnamdi Onyeyiri27-Sep-02 22:49
Nnamdi Onyeyiri27-Sep-02 22:49 
GeneralRe: can any body tell the syntex of reading and writing an object into file? Pin
imran_rafique28-Sep-02 15:22
imran_rafique28-Sep-02 15:22 
GeneralRe: can any body tell the syntex of reading and writing an object into file? Pin
Nnamdi Onyeyiri28-Sep-02 22:46
Nnamdi Onyeyiri28-Sep-02 22:46 
GeneralRe: can any body tell the syntex of reading and writing an object into file? Pin
imran_rafique29-Sep-02 15:49
imran_rafique29-Sep-02 15:49 
GeneralRe: can any body tell the syntex of reading and writing an object into file? Pin
Nnamdi Onyeyiri29-Sep-02 20:59
Nnamdi Onyeyiri29-Sep-02 20:59 
GeneralVFW in C# Pin
Jarrett Vance27-Sep-02 10:43
Jarrett Vance27-Sep-02 10:43 
GeneralRe: VFW in C# Pin
Stephane Rodriguez.27-Sep-02 22:29
Stephane Rodriguez.27-Sep-02 22:29 
Anything you do with WIN32 and C/C++ is possible in C# thanks to interop.

When you know the method signature, you just need to declare it in your code with a [DllImport("dllname")] attribute like in ::SendMessage :
[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, IntPtr lParam);


Even more interesting is that in your case there are COM components. And the VS.NET IDE automatically imports their type-library, wrap interfaces and makes them look like any namespace to you. That's what you get for instance when you need integration with Internet Explorer, MS Office, ...

Now about DirectShow itself, this SDK has both COM Components and simple low-level APIs. Just help yourself. Below is 2 CP articles about it :
DirectShow media player[^]
DirectShow.NET[^]

You've got an introductory article about DirectShow in MSDN Mag - july 2002[^].



if you start putting in too manay features, it no longer remains useful for beginners
quote in a CP article comment, shiraz baig
GeneralRe: VFW in C# Pin
Daniel Strigl29-Sep-02 20:15
Daniel Strigl29-Sep-02 20:15 
GeneralWindows Form Designer Pin
Nnamdi Onyeyiri27-Sep-02 8:38
Nnamdi Onyeyiri27-Sep-02 8:38 
GeneralRe: Windows Form Designer Pin
leppie27-Sep-02 9:15
leppie27-Sep-02 9:15 
GeneralRe: Windows Form Designer Pin
Nnamdi Onyeyiri27-Sep-02 9:26
Nnamdi Onyeyiri27-Sep-02 9:26 
GeneralRe: Windows Form Designer Pin
Maciej Pirog27-Sep-02 9:48
Maciej Pirog27-Sep-02 9:48 
GeneralRe: Windows Form Designer Pin
leppie27-Sep-02 9:55
leppie27-Sep-02 9:55 
GeneralRe: Windows Form Designer Pin
Nnamdi Onyeyiri27-Sep-02 10:13
Nnamdi Onyeyiri27-Sep-02 10:13 
GeneralRe: Windows Form Designer Pin
leppie27-Sep-02 10:38
leppie27-Sep-02 10:38 
GeneralRe: Windows Form Designer Pin
Nnamdi Onyeyiri27-Sep-02 11:17
Nnamdi Onyeyiri27-Sep-02 11:17 
GeneralRe: Windows Form Designer Pin
leppie28-Sep-02 1:53
leppie28-Sep-02 1:53 
GeneralRe: Windows Form Designer Pin
Tomas Petricek27-Sep-02 11:08
Tomas Petricek27-Sep-02 11:08 
GeneralRe: Windows Form Designer Pin
Nnamdi Onyeyiri27-Sep-02 12:03
Nnamdi Onyeyiri27-Sep-02 12:03 
GeneralRe: Windows Form Designer Pin
leppie27-Sep-02 13:36
leppie27-Sep-02 13:36 
GeneralInterfaces Pin
Nick Parker27-Sep-02 7:46
protectorNick Parker27-Sep-02 7:46 
GeneralRe: Interfaces Pin
Paul Riley27-Sep-02 7:59
Paul Riley27-Sep-02 7:59 
GeneralRe: Interfaces Pin
Nick Parker27-Sep-02 8:15
protectorNick Parker27-Sep-02 8:15 
GeneralRe: Interfaces Pin
Paul Riley27-Sep-02 8:26
Paul Riley27-Sep-02 8:26 

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.