Click here to Skip to main content
16,009,640 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalglobal hotkey: i dont get the WM_HOTKEY message Pin
Member 134487420-Sep-04 2:00
Member 134487420-Sep-04 2:00 
GeneralInternetGetConnectedState and LAN Pin
WernerP20-Sep-04 1:05
WernerP20-Sep-04 1:05 
QuestionHow to lock a CFile in VC++ 6.0? Pin
Neeranjan19-Sep-04 22:26
Neeranjan19-Sep-04 22:26 
AnswerRe: How to lock a CFile in VC++ 6.0? Pin
Alpha Siera19-Sep-04 22:40
Alpha Siera19-Sep-04 22:40 
GeneralRe: How to lock a CFile in VC++ 6.0? Pin
Neeranjan19-Sep-04 22:59
Neeranjan19-Sep-04 22:59 
GeneralRe: How to lock a CFile in VC++ 6.0? Pin
Alpha Siera20-Sep-04 0:22
Alpha Siera20-Sep-04 0:22 
GeneralRe: How to lock a CFile in VC++ 6.0? Pin
David Crow20-Sep-04 5:43
David Crow20-Sep-04 5:43 
GeneralRe: How to lock a CFile in VC++ 6.0? Pin
Neeranjan20-Sep-04 20:22
Neeranjan20-Sep-04 20:22 
Thanx David.

But,I am using the wordspace file in my application. Here I open the file, read it and close it. Again I open the file, write to it and close it. It is several times.

What I need is one perticular workspace file can be accessed by only one instance of the application. i.e. I should not be able to work on the same workspace file from two different instance of the same application.

When I access the workspace file in first instance, all the data is copied to the application variables. When I save, the variable data is written back to workspace file. This happens several times.
While working on this workspace if I open the one more instance of the same application and start working on the same workspace file then there will be data mismatch/data loss etc. This should not happen.

So, when I access a workspace file from one instance of application then I should lock that file so that one more instanct of application should not able to access that file unless I unlock that workspace file.

How to do this?

Thanks & Regards,
Neeraj
GeneralRe: How to lock a CFile in VC++ 6.0? Pin
David Crow21-Sep-04 3:40
David Crow21-Sep-04 3:40 
GeneralRe: How to lock a CFile in VC++ 6.0? Pin
Neeranjan21-Sep-04 4:38
Neeranjan21-Sep-04 4:38 
GeneralRe: How to lock a CFile in VC++ 6.0? Pin
David Crow21-Sep-04 5:24
David Crow21-Sep-04 5:24 
GeneralRe: How to lock a CFile in VC++ 6.0? Pin
Neeranjan21-Sep-04 20:37
Neeranjan21-Sep-04 20:37 
GeneralRe: How to lock a CFile in VC++ 6.0? Pin
David Crow22-Sep-04 5:02
David Crow22-Sep-04 5:02 
GeneralRe: How to lock a CFile in VC++ 6.0? Pin
Neeranjan22-Sep-04 18:40
Neeranjan22-Sep-04 18:40 
GeneralRe: How to lock a CFile in VC++ 6.0? Pin
David Crow23-Sep-04 2:50
David Crow23-Sep-04 2:50 
GeneralCalling C# web service from c++/MFC Pin
fajlerköaölgja19-Sep-04 22:09
fajlerköaölgja19-Sep-04 22:09 
Generalstupid question Pin
eli1502197919-Sep-04 21:49
eli1502197919-Sep-04 21:49 
GeneralRe: stupid question Pin
fajlerköaölgja19-Sep-04 22:33
fajlerköaölgja19-Sep-04 22:33 
GeneralRe: stupid question Pin
eli1502197919-Sep-04 23:10
eli1502197919-Sep-04 23:10 
GeneralApplying Windows XP Visual Style Pin
aninddroy19-Sep-04 21:18
aninddroy19-Sep-04 21:18 
GeneralAdding IPv6 address programatically Pin
Alpha Siera19-Sep-04 19:13
Alpha Siera19-Sep-04 19:13 
GeneralTEMPLATE FUNCTIONS Pin
ISUstudent19-Sep-04 18:56
ISUstudent19-Sep-04 18:56 
GeneralRe: TEMPLATE FUNCTIONS Pin
Antti Keskinen19-Sep-04 23:08
Antti Keskinen19-Sep-04 23:08 
GeneralPragma Pin
caoquanghanh19-Sep-04 18:43
caoquanghanh19-Sep-04 18:43 
GeneralRe: Pragma Pin
Ramkrishna Pawar19-Sep-04 20:19
Ramkrishna Pawar19-Sep-04 20:19 

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.