|
|
Forum
|
|
HEM_SAVEFILE Question, it returns 0 (FALSE) which means that the save was unsuccessful, but the file itself is saved correctly.
|
fconx |
|
New Member
Group: Members
Posts: 1
Member No.: 9723
Joined: 4-July 08
|
Hi to everybody,
I have a question to the HEM_SAVEFILE message.
Each time I use this message to save a file to disk, it returns 0 (FALSE) which means that the save was unsuccessful, but the file itself is saved correctly.
It seems that HEM_SAVEFILE always returns 0 (FALSE). So I can't detect if the save was successful or not.
Could it be a bug ?
Greetings
-Alex-
|
|
|
|
jballi |
|
New Member
Group: Members
Posts: 14
Member No.: 24334
Joined: 10-July 09
|
QUOTE (fconx @ Nov 18 2009, 04:20 AM) | Hi to everybody,
I have a question to the HEM_SAVEFILE message.
Each time I use this message to save a file to disk, it returns 0 (FALSE) which means that the save was unsuccessful, but the file itself is saved correctly.
It seems that HEM_SAVEFILE always returns 0 (FALSE). So I can't detect if the save was successful or not.
Could it be a bug ?
Greetings -Alex- |
I think you may be right. I just thought the Error codes were reversed (0=Success, 1=Problem) but I just tried to save a file that I marked as read only and the call returned 0. Not a good thing.
|
|
|
|
jballi |
|
New Member
Group: Members
Posts: 14
Member No.: 24334
Joined: 10-July 09
|
Now I'm now getting different return codes when saving the exact same content to two (2) different files. The save to the first file returns 0. This is the return code I've always received for all file saves regardless of whether the save worked or not. The save to the second file returns 1. I have never received this return code for any reason. Both files were saved successfully and both files contain the exact same value (bit for bit comparison).
I started getting this odd result when testing new code to do a block move on a HiEdit control which uses the following messages: GetSel (2), LineFromChar (2), LineIndex, GetTextRange, LineIndex, LineLength, SetSel (3), and ReplaceSel.
It would be very helpful if the HEM_SAVEFILE message returned a meaningful return code.
Thank you for your consideration.
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
|
|
|
|
|
|
|
|
|
|
|