WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
What is FASM G
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
 

HEM_SAVEFILE Question, it returns 0 (FALSE) which means that the save was unsuccessful, but the file itself is saved correctly.

fconx
Quote Post


New Member
*

Group: Members
Posts: 1
Member No.: 9723
Joined: 4-July 08


Sponsored Links
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-
PMEmail Poster
Top
jballi
Quote Post


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.
PMEmail Poster
Top
jballi
Quote Post


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.
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google