C# and DirectX

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kav

    C# and DirectX

    Hello,
    I apologize in advance for my “Greenness” .

    I posted a question a couple weeks ago asking how I could render a DIB frame
    a custom decoder from unmanaged code to a c# window using DirectX – i.e. I
    would like to get an overlay surface from c# and write my frame to the
    surface then render it.

    From what I’ve now found out, this isn’t an easy task. It sounded simple
    enough but after looking at DirectX 9, only later to realize that most direct
    show stuff was deprecated, and DirectX 10 I’m beginning to get worried.

    Anyway, if anyone knows the simplest approach please, do tell. What
    book/manual to rtfm, do I have to use filters, can I just blit my frames from
    unmanaged code, is it worth buying a DirectX book which all seem to lean
    towards game development. Should I use DirectX 10?

    My app is a c# managed code. I have an unmanaged dll that is receiving
    mpeg4 video frames over the net. I’ve got a custom decoder that can produce
    raw video frames. Currently I was just using DDraw routines with a pop up
    mfc window. I want to remove this last part and place the rendering in my c#
    app with the dll providing me with video frames.

    Thanks in advance for your help,

    --

    Chris Kavanagh

    Software Developer
    LibreStream Technologies Inc.
    Experience efficiency with Librestream Technologies' Industrial Digital Assistant and AI Solutions for streamlined operations. Get started today.

    Unit 200 - 55 Rothwell Rd.
    Winnipeg, Manitoba
    Canada R3P 2M5


  • Kevin Spencer

    #2
    Re: C# and DirectX

    Hi Chris,

    I understand your frustration. I've worked on an application in Managed
    DirectX that spanned a half-dozen iterations of the library. Your best bet
    is to get the latest version, and build to that. Remember that deprecated
    elements never become obsolete for the version your develop against, but
    only when upgrading to a new version.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    Who is Mighty Abbott?
    A twin turret scalawag.

    "Kav" <Kav@discussion s.microsoft.com > wrote in message
    news:8D637CA8-0B27-4411-9B35-F9BF2F50CA10@mi crosoft.com...[color=blue]
    > Hello,
    > I apologize in advance for my "Greenness" ?.
    >
    > I posted a question a couple weeks ago asking how I could render a DIB
    > frame
    > a custom decoder from unmanaged code to a c# window using DirectX - i.e. I
    > would like to get an overlay surface from c# and write my frame to the
    > surface then render it.
    >
    > From what I've now found out, this isn't an easy task. It sounded simple
    > enough but after looking at DirectX 9, only later to realize that most
    > direct
    > show stuff was deprecated?, and DirectX 10 I'm beginning to get worried.
    >
    > Anyway, if anyone knows the simplest approach please, do tell. What
    > book/manual to rtfm, do I have to use filters, can I just blit my frames
    > from
    > unmanaged code, is it worth buying a DirectX book which all seem to lean
    > towards game development. Should I use DirectX 10?
    >
    > My app is a c# managed code. I have an unmanaged dll that is receiving
    > mpeg4 video frames over the net. I've got a custom decoder that can
    > produce
    > raw video frames. Currently I was just using DDraw routines with a pop up
    > mfc window. I want to remove this last part and place the rendering in my
    > c#
    > app with the dll providing me with video frames.
    >
    > Thanks in advance for your help,
    >
    > --
    >
    > Chris Kavanagh
    >
    > Software Developer
    > LibreStream Technologies Inc.
    > www.LibreStream.com
    > Unit 200 - 55 Rothwell Rd.
    > Winnipeg, Manitoba
    > Canada R3P 2M5
    >
    >[/color]


    Comment

    Working...