cannot create file error code

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();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top