CD Burning with C#

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

    #1

    CD Burning with C#

    Hi all,

    Is it possible to programmaticall y using C# burn a bunch of files in a
    predefined location to CD-R ?
    The application will be run in Windows 2000 environments. If it's possible,
    I would like it NOT to use third party like Nero SDK, but only the main
    Windows 2000 and VS.NET 2003.
    I've googled and found samples for use with WinXP, Linux, KDE, etc etc, but
    none are meant for Windows 2000?
    I'll appreciate very much samples and help.
    Thank you.

    ------------
    Hendrik


  • Daniel O'Connell

    #2
    Re: CD Burning with C#


    "Hendrik Christian" <hendrik_ch@yah oo.com.sg> wrote in message
    news:%23sPdPm%2 3tDHA.1340@TK2M SFTNGP09.phx.gb l...[color=blue]
    > Hi all,
    >
    > Is it possible to programmaticall y using C# burn a bunch of files in a
    > predefined location to CD-R ?
    > The application will be run in Windows 2000 environments. If it's[/color]
    possible,[color=blue]
    > I would like it NOT to use third party like Nero SDK, but only the main
    > Windows 2000 and VS.NET 2003.
    > I've googled and found samples for use with WinXP, Linux, KDE, etc etc,[/color]
    but[color=blue]
    > none are meant for Windows 2000?
    > I'll appreciate very much samples and help.
    > Thank you.[/color]

    Short of writing your own ASPI\SPTI code, as well as filesystem generators,
    you are out of luck. Windows XP includes IMAPI, which is a cd burning API,
    but it is not available on anything before XP.
    Third party is your best bet, they do all the testing and insure it will
    work across any burner you run across. If your application is open source,
    there may be a few free libraries out there, otherwise you'll have to
    license something.
    [color=blue]
    >
    > ------------
    > Hendrik
    >
    >[/color]


    Comment

    • JDeats

      #3
      Re: CD Burning with C#

      You can do it, but here's what you'd have to go through:

      1. Track down drivers for all the CD-R/CD-RW drives you want to
      support (not a problem, most of them come with Windows 2000/XP) and
      obtain documentation on how to program against them (the documentation
      may be a bit difficult to find)

      2. Build a new C# class library with a standard set of method calls to
      read/write to communicate with the drivers using unmanaged API calls
      (most drivers are written in native Assembly language or C). I'd build
      this as a plug-in architecture, with the managed plug-in dll as a
      wrapper around the target driver .dll. That way you can dynamicly add
      support for new devices)

      3. Test with all the supported devices.

      This is no easy task, depending on how many drives you want to support
      you could be out a lot of money and time on R&D. The problem is that
      their isn't a standardized API yet, a similar problem existed for
      video hardware before Microsoft began releasing DirectX. At this point
      it just makes more sense to buy a third-party library for most
      scenarios.



      Developers of burning software such as Nero and Easy CD Creator has
      painstakenly gathered all these drivers togeather


      "Hendrik Christian" <hendrik_ch@yah oo.com.sg> wrote in message news:<#sPdPm#tD HA.1340@TK2MSFT NGP09.phx.gbl>. ..[color=blue]
      > Hi all,
      >
      > Is it possible to programmaticall y using C# burn a bunch of files in a
      > predefined location to CD-R ?
      > The application will be run in Windows 2000 environments. If it's possible,
      > I would like it NOT to use third party like Nero SDK, but only the main
      > Windows 2000 and VS.NET 2003.
      > I've googled and found samples for use with WinXP, Linux, KDE, etc etc, but
      > none are meant for Windows 2000?
      > I'll appreciate very much samples and help.
      > Thank you.
      >
      > ------------
      > Hendrik[/color]

      Comment

      • Hendrik Christian

        #4
        Re: CD Burning with C#

        Thanks Daniel and JDeats,

        Is it possible to port the IMAPI driver (and all that are required and
        available in WinXP) from WinXP to Win2K instead? Since as I understood the
        underlying platform between Win2K and WinXP are quite similar.
        Thank you.

        Hendrik

        "Daniel O'Connell" <onyxkirx@--NOSPAM--comcast.net> wrote in message
        news:e6dpa6BuDH A.2352@TK2MSFTN GP09.phx.gbl...[color=blue]
        >
        > "Hendrik Christian" <hendrik_ch@yah oo.com.sg> wrote in message
        > news:%23sPdPm%2 3tDHA.1340@TK2M SFTNGP09.phx.gb l...[color=green]
        > > Hi all,
        > >
        > > Is it possible to programmaticall y using C# burn a bunch of files in a
        > > predefined location to CD-R ?
        > > The application will be run in Windows 2000 environments. If it's[/color]
        > possible,[color=green]
        > > I would like it NOT to use third party like Nero SDK, but only the main
        > > Windows 2000 and VS.NET 2003.
        > > I've googled and found samples for use with WinXP, Linux, KDE, etc etc,[/color]
        > but[color=green]
        > > none are meant for Windows 2000?
        > > I'll appreciate very much samples and help.
        > > Thank you.[/color]
        >
        > Short of writing your own ASPI\SPTI code, as well as filesystem[/color]
        generators,[color=blue]
        > you are out of luck. Windows XP includes IMAPI, which is a cd burning API,
        > but it is not available on anything before XP.
        > Third party is your best bet, they do all the testing and insure it will
        > work across any burner you run across. If your application is open source,
        > there may be a few free libraries out there, otherwise you'll have to
        > license something.
        >[color=green]
        > >
        > > ------------
        > > Hendrik
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Daniel O'Connell

          #5
          Re: CD Burning with C#

          Frankly, it may be, but I don't think it would be legal.


          "Hendrik Christian" <hendrik_ch@yah oo.com.sg> wrote in message
          news:ePp3%23QHu DHA.2208@TK2MSF TNGP10.phx.gbl. ..[color=blue]
          > Thanks Daniel and JDeats,
          >
          > Is it possible to port the IMAPI driver (and all that are required and
          > available in WinXP) from WinXP to Win2K instead? Since as I understood the
          > underlying platform between Win2K and WinXP are quite similar.
          > Thank you.
          >
          > Hendrik
          >
          > "Daniel O'Connell" <onyxkirx@--NOSPAM--comcast.net> wrote in message
          > news:e6dpa6BuDH A.2352@TK2MSFTN GP09.phx.gbl...[color=green]
          > >
          > > "Hendrik Christian" <hendrik_ch@yah oo.com.sg> wrote in message
          > > news:%23sPdPm%2 3tDHA.1340@TK2M SFTNGP09.phx.gb l...[color=darkred]
          > > > Hi all,
          > > >
          > > > Is it possible to programmaticall y using C# burn a bunch of files in a
          > > > predefined location to CD-R ?
          > > > The application will be run in Windows 2000 environments. If it's[/color]
          > > possible,[color=darkred]
          > > > I would like it NOT to use third party like Nero SDK, but only the[/color][/color][/color]
          main[color=blue][color=green][color=darkred]
          > > > Windows 2000 and VS.NET 2003.
          > > > I've googled and found samples for use with WinXP, Linux, KDE, etc[/color][/color][/color]
          etc,[color=blue][color=green]
          > > but[color=darkred]
          > > > none are meant for Windows 2000?
          > > > I'll appreciate very much samples and help.
          > > > Thank you.[/color]
          > >
          > > Short of writing your own ASPI\SPTI code, as well as filesystem[/color]
          > generators,[color=green]
          > > you are out of luck. Windows XP includes IMAPI, which is a cd burning[/color][/color]
          API,[color=blue][color=green]
          > > but it is not available on anything before XP.
          > > Third party is your best bet, they do all the testing and insure it will
          > > work across any burner you run across. If your application is open[/color][/color]
          source,[color=blue][color=green]
          > > there may be a few free libraries out there, otherwise you'll have to
          > > license something.
          > >[color=darkred]
          > > >
          > > > ------------
          > > > Hendrik
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          Working...