Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. CD Burning using IMAPI

CD Burning using IMAPI

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpc++comhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    salaikumar
    wrote on last edited by
    #1

    Hello... There is a requirement of burning data into a CD from my application which i developed in VC++.net I tried to use Imapi.h related functionalities. but its not in my XP SDK.So i used another dll file(acclImapiWrapper.Dll) which i downloaded from the website... http://www.vbaccelerator.com/home/NET/Code/Libraries/Writing\_CDs/IMAPI/article.asp Using this dll file i tried the following code... try{ DiscMaster* DM ; SimpleDiscRecorder* sRecorder ; DiscRecorders* DRs; ` DiscRecorder * DR; DM = new DiscMaster(); sRecorder = DM->SimpleDiscRecorder; DRs = DM->DiscRecorders; int i,cnt; cnt = DRs->get_Count() ; for (i=0;iDiscRecorders->get_Item(i); } DR->OpenExclusive(); DR = DM->DiscRecorders->get_Item(0); Cursor::Current = System::Windows::Forms::Cursors::WaitCursor ; if (sRecorder->HasRecordableDrive()) { //sRecorder->Burn(this->Handle); DM->RecordDisc(true,true); } MessageBox(0,"CD Burning completed successfully","CD Burning",0); Cursor::Current = System::Windows::Forms::Cursors::Default ; DR->CloseExclusive(); sRecorder->Dispose(); DR->Dispose(); DM->Dispose(); }catch(COMException* e) { e->Message; } The data is staging on CD but burning Cd is not successful.. Could any one help me out?? Regards Salai

    Salai

    C 1 Reply Last reply
    0
    • S salaikumar

      Hello... There is a requirement of burning data into a CD from my application which i developed in VC++.net I tried to use Imapi.h related functionalities. but its not in my XP SDK.So i used another dll file(acclImapiWrapper.Dll) which i downloaded from the website... http://www.vbaccelerator.com/home/NET/Code/Libraries/Writing\_CDs/IMAPI/article.asp Using this dll file i tried the following code... try{ DiscMaster* DM ; SimpleDiscRecorder* sRecorder ; DiscRecorders* DRs; ` DiscRecorder * DR; DM = new DiscMaster(); sRecorder = DM->SimpleDiscRecorder; DRs = DM->DiscRecorders; int i,cnt; cnt = DRs->get_Count() ; for (i=0;iDiscRecorders->get_Item(i); } DR->OpenExclusive(); DR = DM->DiscRecorders->get_Item(0); Cursor::Current = System::Windows::Forms::Cursors::WaitCursor ; if (sRecorder->HasRecordableDrive()) { //sRecorder->Burn(this->Handle); DM->RecordDisc(true,true); } MessageBox(0,"CD Burning completed successfully","CD Burning",0); Cursor::Current = System::Windows::Forms::Cursors::Default ; DR->CloseExclusive(); sRecorder->Dispose(); DR->Dispose(); DM->Dispose(); }catch(COMException* e) { e->Message; } The data is staging on CD but burning Cd is not successful.. Could any one help me out?? Regards Salai

      Salai

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      There's a component called XPBurn, if your app is XP only, that does the trick nicely.

      Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups