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

C / C++ / MFC

 
GeneralRe: Using __toascii() got me a runtime access violation Pin
Rajkumar R25-Feb-08 19:10
Rajkumar R25-Feb-08 19:10 
GeneralRe: Using __toascii() got me a runtime access violation Pin
Mark Salsbery25-Feb-08 19:12
Mark Salsbery25-Feb-08 19:12 
GeneralWithout Installing How to MatLab run when VC++ Button Pressed... Pin
johnalek25-Feb-08 18:42
johnalek25-Feb-08 18:42 
QuestionHow to Configure the Matlab Add-in for Visual Studio vc++ 6.0 Pin
johnalek25-Feb-08 18:36
johnalek25-Feb-08 18:36 
GeneralUnlocking a file.. Pin
sharanu25-Feb-08 17:44
sharanu25-Feb-08 17:44 
AnswerRe: Unlocking a file.. Pin
Rajkumar R25-Feb-08 17:58
Rajkumar R25-Feb-08 17:58 
GeneralRe: Unlocking a file.. Pin
sharanu25-Feb-08 19:04
sharanu25-Feb-08 19:04 
AnswerRe: Unlocking a file.. Pin
Rajkumar R25-Feb-08 20:31
Rajkumar R25-Feb-08 20:31 
yes, i just looked at LockFile function only, But then you are accessing the array beyond its size
char strFilePath []= {"E:\\Add_Modified_ENG\\test.txt"}; concatenation causes corrupted stack;

Any way your problem is you are creating the file in Read only permission, so remove(), DeleteFile() won't work unless you change the readonly attribute of the file.

try this.
iFile = _open(strcat(cFileName, ".lck"), _O_CREAT | _O_EXCL | _O_RDWR, _S_IREAD | _S_IWRITE);
GeneralRe: Unlocking a file.. Pin
sharanu25-Feb-08 20:48
sharanu25-Feb-08 20:48 
AnswerRe: Unlocking a file.. Pin
Rajkumar R25-Feb-08 21:42
Rajkumar R25-Feb-08 21:42 
QuestionHow to change the background color of AfxControlBar*, CToolBar's parent window ? Pin
Paresh Chitte25-Feb-08 17:22
Paresh Chitte25-Feb-08 17:22 
GeneralRe: How to change the background color of AfxControlBar*, CToolBar's parent window ? Pin
SandipG 27-Feb-08 22:46
SandipG 27-Feb-08 22:46 
GeneralRe: How to change the background color of AfxControlBar*, CToolBar's parent window ? Pin
Paresh Chitte28-Feb-08 17:27
Paresh Chitte28-Feb-08 17:27 
Questionhow to generate several Gaussian function according to different sigm Pin
gentleguy25-Feb-08 14:30
gentleguy25-Feb-08 14:30 
QuestionParallel Port Polling Pin
GlenET25-Feb-08 10:21
GlenET25-Feb-08 10:21 
GeneralRe: Parallel Port Polling Pin
Mark Salsbery25-Feb-08 11:04
Mark Salsbery25-Feb-08 11:04 
GeneralRe: Parallel Port Polling Pin
GlenET26-Feb-08 7:21
GlenET26-Feb-08 7:21 
GeneralRe: Parallel Port Polling Pin
Mark Salsbery26-Feb-08 7:51
Mark Salsbery26-Feb-08 7:51 
Generallistview item height Pin
Jim Crafton25-Feb-08 8:19
Jim Crafton25-Feb-08 8:19 
GeneralRe: listview item height Pin
Dr. Emmett Brown25-Feb-08 10:26
Dr. Emmett Brown25-Feb-08 10:26 
GeneralRe: listview item height Pin
David Crow25-Feb-08 11:30
David Crow25-Feb-08 11:30 
GeneralRe: listview item height Pin
Michael Dunn25-Feb-08 12:43
sitebuilderMichael Dunn25-Feb-08 12:43 
Generalconstructor / destructor in template class Pin
act_x25-Feb-08 7:33
act_x25-Feb-08 7:33 
GeneralRe: constructor / destructor in template class Pin
CPallini25-Feb-08 7:38
mveCPallini25-Feb-08 7:38 
GeneralRe: constructor / destructor in template class Pin
act_x25-Feb-08 7:52
act_x25-Feb-08 7:52 

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.