flat assembler
Message board for the users of flat assembler.

Index > Windows > need help

Author
Thread Post new topic Reply to topic
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
Vasilev Vjacheslav
i'm trying to delete items in multiselect listbox, but code works incorrect (only deleting one item works correct), please help, where my mistake? /see attach/

ps. why i must save registers in procs? and when i must do this? in some cases registers can be not kept, why?


Description: my multiselect listbox
Download
Filename: temp.rar
Filesize: 2.11 KB
Downloaded: 90 Time(s)


_________________
[not enough memory]
Post 30 Sep 2004, 12:49
View user's profile Send private message Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv
For your first question I do not know what is wrong

However for your second question, you must save registers so that you code will work on all os. This is because esi, ebx or edi might be used in the code that is used to call your callback functions. Hence it is important that you do not clear the data in esi, ebx and edi, so you need to preserve the values in the these registers.
Post 30 Sep 2004, 13:30
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
Hi,
Your problem was that when you retrive list of selected items, and then delete some of them, the index numbers of the remaining items are shifted, so your list isn't valid at this point. Try this fixed version.
Post 30 Sep 2004, 14:25
View user's profile Send private message Visit poster's website Reply with quote
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
Vasilev Vjacheslav
big thanks to decard and roticv

_________________
[not enough memory]
Post 30 Sep 2004, 15:32
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.