Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFind the installed version of MS Word Pin
sashoalm15-Jul-10 4:12
sashoalm15-Jul-10 4:12 
AnswerRe: Find the installed version of MS Word Pin
Code-o-mat15-Jul-10 5:45
Code-o-mat15-Jul-10 5:45 
AnswerRe: Find the installed version of MS Word Pin
Richard MacCutchan15-Jul-10 5:58
mveRichard MacCutchan15-Jul-10 5:58 
AnswerRe: Find the installed version of MS Word Pin
Cool_Dev15-Jul-10 18:44
Cool_Dev15-Jul-10 18:44 
GeneralRe: Find the installed version of MS Word [modified] Pin
enhzflep15-Jul-10 21:39
enhzflep15-Jul-10 21:39 
GeneralRe: Find the installed version of MS Word Pin
sashoalm15-Jul-10 22:16
sashoalm15-Jul-10 22:16 
GeneralRe: Find the installed version of MS Word [modified] Pin
Cool_Dev16-Jul-10 2:22
Cool_Dev16-Jul-10 2:22 
QuestionCreateFile - " file is being used by another process." [modified] Pin
Cvaji15-Jul-10 2:31
Cvaji15-Jul-10 2:31 
Hi All,

I am using CreateFile to open a specific file which will be accessed by multiple instance of same process simultaneously. This time function getting failed and GetLastError() is returning the following error.

"The process cannot access the file because it is being used by another process."

This is how i called the function

hFile = ::CreateFile( csFileName_i.operator LPCTSTR(), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );
if( INVALID_HANDLE_VALUE == hFile )
{
    CString csErr;
    csErr.Format( _T("Failed to open File**** Error code = %d"), GetLastError());
    AfxMessageBox( csErr );
    return bRet;
}


I need to open the same file simultaneously by different process.
Please help me.

-Cvaji

modified on Thursday, July 15, 2010 9:30 AM

AnswerRe: CreateFile - " file is being used by another process." Pin
Niklas L15-Jul-10 2:41
Niklas L15-Jul-10 2:41 
AnswerRe: CreateFile - " file is being used by another process." Pin
Naveen15-Jul-10 3:18
Naveen15-Jul-10 3:18 
GeneralRe: CreateFile - " file is being used by another process." Pin
Cvaji15-Jul-10 3:30
Cvaji15-Jul-10 3:30 
AnswerRe: CreateFile - " file is being used by another process." Pin
Cvaji15-Jul-10 3:29
Cvaji15-Jul-10 3:29 
QuestionGmail in MFC application Pin
Software200715-Jul-10 2:25
Software200715-Jul-10 2:25 
AnswerRe: Gmail in MFC application Pin
Niklas L15-Jul-10 2:36
Niklas L15-Jul-10 2:36 
GeneralRe: Gmail in MFC application Pin
Software200715-Jul-10 2:41
Software200715-Jul-10 2:41 
AnswerRe: Gmail in MFC application Pin
Maximilien15-Jul-10 2:51
Maximilien15-Jul-10 2:51 
AnswerRe: Gmail in MFC application Pin
Nemanja Trifunovic15-Jul-10 3:12
Nemanja Trifunovic15-Jul-10 3:12 
GeneralRe: Gmail in MFC application Pin
Software200715-Jul-10 3:16
Software200715-Jul-10 3:16 
GeneralRe: Gmail in MFC application Pin
Nemanja Trifunovic15-Jul-10 4:11
Nemanja Trifunovic15-Jul-10 4:11 
QuestionMSXML2 - XML parser Memory Leak Pin
chevu15-Jul-10 2:03
chevu15-Jul-10 2:03 
AnswerRe: MSXML2 - XML parser Memory Leak Pin
Naveen15-Jul-10 2:19
Naveen15-Jul-10 2:19 
GeneralRe: MSXML2 - XML parser Memory Leak Pin
chevu15-Jul-10 18:31
chevu15-Jul-10 18:31 
QuestionNested DLL Pin
viduran15-Jul-10 1:38
viduran15-Jul-10 1:38 
AnswerRe: Nested DLL Pin
Richard MacCutchan15-Jul-10 2:05
mveRichard MacCutchan15-Jul-10 2:05 
GeneralRe: Nested DLL Pin
viduran15-Jul-10 2:30
viduran15-Jul-10 2:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.