cannot create file error code

  • Thread starter Thread starter Edward Walker
  • Start date Start date
E

Edward Walker

the code below is giving me a 183 error code which is basically cant create
a file when the file already exists. but here's the thing, this code isn't
supposed to have anything to do with files. its just a COM initialization.
i'm pretty new to COM, so i may just be misunderstanding it. any help would
be appreciated.

thanks,
edward

HRESULT hr;

ICeFileFilter* filter = NULL;

CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);

hr = CoCreateInstance(clsid, NULL, CLSCTX_INPROC_SERVER, IID_ICeFileFilter,
(void**)&filter);

hr = filter->FilterOptions(m_hWnd);

DWORD testa = GetLastError(); //returns the 183 error code

filter->Release();
 
Back
Top