Hi everybody,
could someone please explain me how to receive the notifications from the various processing in the StarBurn OCX SDK.
The skeleton below miss the proper implementation of the overidden callback class. I get errors relating to the the IDispatch and IUnknown implementation....
class MyStarBurnCallBack : public IStarBurnCallBack
{
public:
HRESULT __stdcall raw_ProgressCallBack (
/*[in]*/ long Percent,
/*[in]*/ long TimeRemaining )
{ // do something... }
};
TheBurnerThread
{
IDevicesPtr aDevicesPtr;
aDevicesPtr.CreateInstance("StarBurn.Devices");
IDevicePtr aDevicePtr = aDevicesPtr->GetDevice(XXX);
//!!
MyStarBurnCallBack myCallback;
aDevicePtr->PutCallback(&myCallback);
//!!
...
aDevicePtr->TrackAtOnceFromFileSystemHandle(aJolietImage->GetFileSystemHandle(),aTestWrite,VARIANT_FALSE);
...
aDevicePtr->CloseSession();
}
From compiler:
can't instantiate due to missing implementation of the IDispatch and the IUnknown-interface's
I know there exists default implementaitons such as IDispatchImpl<> and CComObject<>, but I don't see how to find all the
IID's and GUID's.
Thanks,
Gunnar
|