Hi,
I've been using the SDK for about a week and everything is working properly except I'm having some problem displaying the burning progress to the user.
I'm displaying progress the way that I saw it in many of the samples but the progress never seems to reach the end (sometimes only going halfway). The burns are completing properly so I'm wondering if I'm handling the progress callback improperly?
I'm working in C++ and linking to the DLL dynamically.
Here is my code from the progress callback:
Code:
case CN_CDVD_WRITE_PROGRESS:
{
//
// Get parameters passed with callback
//
l__LARGE_INTEGER__FileSizeInLBs = *( PLARGE_INTEGER )( p__PVOID__CallbackSpecial1 );
l__LARGE_INTEGER__LBsWritten = *( PLARGE_INTEGER )( p__PVOID__CallbackSpecial2 );
//
// Calculate number of percent written
//
l__LARGE_INTEGER__CurrentPercent.QuadPart =
( ( l__LARGE_INTEGER__LBsWritten.QuadPart * 100 )
/ l__LARGE_INTEGER__FileSizeInLBs.QuadPart );
//
// Check if current calculated was already written
//
if ( l__LARGE_INTEGER__CurrentPercent.QuadPart
!= pStatusWrapper->m_llLastUsedPercent)
{
//
// Update last written percent with current value
//
pStatusWrapper->m_llLastUsedPercent = l__LARGE_INTEGER__CurrentPercent.QuadPart;
//
// Print this percent
//
pStatusWrapper->m_pProgressToUse->SetStatusPos(
(int)l__LARGE_INTEGER__CurrentPercent.QuadPart);
}
}
break;
Is there something else I should be doing? Or is there a better way to handle the progress?
Thanks,