views:

11

answers:

0

Hi i want to write a file into my DVD how can i do it by coding.

I am into the development of this application but initially only i got stuck; please help

m_hResult = CoCreateInstance(__uuidof(MsftDiscFormat2Data), NULL, CLSCTX_INPROC_SERVER,__uuidof(IDiscFormat2Data), (void**)&m_discFormatData);

if (!SUCCEEDED(m_hResult))
{
qDebug()<<"Unable to Initialize IDiscFormat2Data ";
return false;
}

m_hResult = CoCreateInstance(__uuidof(MsftDiscRecorder2), NULL, CLSCTX_INPROC_SERVER,__uuidof(IDiscRecorder2), (void**)&m_discRecorder);

if (FAILED(m_hResult))
{
 qDebug()<<"Unable to Initialize IDiscRecorder2 Data ";
 return false;
 }
 m_hResult = m_discFormatData->put_Recorder(GetInterface());  // this failing
if (!SUCCEEDED(m_hResult))
{
qDebug()<<"IDiscFormat2Data->put_Recorder Failed ";
return false;
 }