Click here to Skip to main content
15,888,219 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can I use Javascript function in VC++? Pin
Dennis Gourjii10-Jan-06 22:30
Dennis Gourjii10-Jan-06 22:30 
GeneralRe: Can I use Javascript function in VC++? Pin
manojk_batra10-Jan-06 23:37
manojk_batra10-Jan-06 23:37 
GeneralRe: Can I use Javascript function in VC++? Pin
lemur211-Jan-06 1:50
lemur211-Jan-06 1:50 
Answer[Message Deleted] Pin
Eytukan10-Jan-06 23:00
Eytukan10-Jan-06 23:00 
GeneralRe: Can I use Javascript function in VC++? Pin
manojk_batra10-Jan-06 23:24
manojk_batra10-Jan-06 23:24 
AnswerRe: Can I use Javascript function in VC++? Pin
vikas amin11-Jan-06 0:58
vikas amin11-Jan-06 0:58 
AnswerRe: Can I use Javascript function in VC++? Pin
SilentSilent11-Jan-06 3:19
SilentSilent11-Jan-06 3:19 
QuestionProblem in Deleting a file using 'remove' Pin
Sarvan AL10-Jan-06 21:40
Sarvan AL10-Jan-06 21:40 
Hi,

I'm facing a problem in deleting a file using 'remove'.Let me explain the scenario.

The dialog based application has four dialogs in the following manner:In the main screen, if a button is clicked, the second dialog opens; from the second dialog third dialog gets opened, and so on.

The application deals with a file (say 'test.dat' - has objects of a class) in the fourth dialog. The file operations are: add, modify and delete objects.

An object is deleted by creating a temporary file using the 'test.dat' omitting the object to be deleted; the 'test.dat' is deleted using 'remove' function; the temporary file is renamed as 'test.dat' using 'rename' function.

First time the 'remove' function works fine. I am able to add & delete objects so many times. But If I close the fourth dialog and open again from the third dialog, the 'remove' function fails. I am getting the error 'ERROR_SHARING_VIOLATION' in GetLastError. But I have closed 'test.dat' file and the temporary file using 'fclose' function, before try to delete the file. I have opened the file as 'fopen("test.dat", "r")'

Give me your comments.

Thanks in advance.

sarvan al
sarvan_tech@rediffmail.com

AnswerRe: Problem in Deleting a file using 'remove' Pin
Dennis Gourjii10-Jan-06 22:32
Dennis Gourjii10-Jan-06 22:32 
QuestionCustum Button Controls Pin
S_a_n10-Jan-06 21:35
S_a_n10-Jan-06 21:35 
AnswerRe: Custum Button Controls Pin
Dennis Gourjii10-Jan-06 22:37
Dennis Gourjii10-Jan-06 22:37 
AnswerRe: Custum Button Controls Pin
ThatsAlok11-Jan-06 2:05
ThatsAlok11-Jan-06 2:05 
AnswerRe: Custum Button Controls Pin
vipinasda11-Jan-06 5:06
vipinasda11-Jan-06 5:06 
QuestionListControl fixed column width Pin
Nishad S10-Jan-06 20:08
Nishad S10-Jan-06 20:08 
AnswerRe: ListControl fixed column width Pin
Owner drawn10-Jan-06 21:04
Owner drawn10-Jan-06 21:04 
Questionproblem with CreateProcess Pin
prabhathgk10-Jan-06 19:33
prabhathgk10-Jan-06 19:33 
AnswerRe: problem with CreateProcess Pin
Dennis Gourjii10-Jan-06 22:39
Dennis Gourjii10-Jan-06 22:39 
Questiondownloading a file from http server Pin
Vineethg10-Jan-06 19:18
Vineethg10-Jan-06 19:18 
AnswerRe: downloading a file from http server Pin
ThatsAlok11-Jan-06 2:03
ThatsAlok11-Jan-06 2:03 
QuestionXP Look and Feel Problem for Scrollbars? Pin
Owner drawn10-Jan-06 18:37
Owner drawn10-Jan-06 18:37 
AnswerRe: XP Look and Feel Problem for Scrollbars? Pin
Dennis Gourjii10-Jan-06 22:41
Dennis Gourjii10-Jan-06 22:41 
GeneralRe: XP Look and Feel Problem for Scrollbars? Pin
Owner drawn10-Jan-06 22:58
Owner drawn10-Jan-06 22:58 
QuestionForce a program run in a windows Pin
leenmie10-Jan-06 18:14
leenmie10-Jan-06 18:14 
AnswerRe: Force a program run in a windows Pin
__yb10-Jan-06 19:18
__yb10-Jan-06 19:18 
GeneralRe: Force a program run in a windows Pin
leenmie10-Jan-06 21:46
leenmie10-Jan-06 21:46 

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.