PC Review


Reply
Thread Tools Rate Thread

cannot create file error code

 
 
Edward Walker
Guest
Posts: n/a
 
      12th Nov 2003
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();




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Want to create text file through code Saleem Microsoft Access 2 28th Dec 2008 05:15 PM
Code to create dbase file from text file? Hilton Microsoft Excel Misc 0 9th Oct 2008 10:37 AM
How To Create A File With Code Jone Microsoft Access VBA Modules 13 12th May 2008 07:04 PM
can't create form in code-behind file Dan Microsoft ASP .NET 0 26th May 2006 11:16 AM
code to create new excel file ashishprem Microsoft Excel Programming 1 28th Feb 2006 05:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:07 AM.