Using RAPI funcions, like CeCopyFile....
anyone can write a simple example?
I stuck on this... my code is :
HRESULT hr = CeRapiInit();
if (FAILED(hr))
{
CeRapiUninit();
AfxMessageBox("Cannot connect to the HHT.", MB_OK | MB_ICONSTOP | MB_TOPMOST);
return ;
}
CeCopyFile (L"a.cpp", L"a.cpp", FALSE);
DWORD lasterror= CeGetLastError( );
CeRapiUninit ();
.... but always get lasterror=2 ,what means ERROR_FILE_NOT_FOUND.... but file IS there...
Please help me...
anyone can write a simple example?
I stuck on this... my code is :
HRESULT hr = CeRapiInit();
if (FAILED(hr))
{
CeRapiUninit();
AfxMessageBox("Cannot connect to the HHT.", MB_OK | MB_ICONSTOP | MB_TOPMOST);
return ;
}
CeCopyFile (L"a.cpp", L"a.cpp", FALSE);
DWORD lasterror= CeGetLastError( );
CeRapiUninit ();
.... but always get lasterror=2 ,what means ERROR_FILE_NOT_FOUND.... but file IS there...
Please help me...