flat assembler
Message board for the users of flat assembler.

Index > Main > How to change a line in Src?

Author
Thread Post new topic Reply to topic
Crukko



Joined: 26 Nov 2005
Posts: 118
Crukko
Hi!!
I'm here again still working on FasmW NG Wink
Today the problem is:
Code:
        invoke  SendMessage, [hAsmEditwin], AEM_GETLINELENGTH, [__miaAEPOS.caretLine], NULL
        inc     eax
        mov     [__miaAEPOS.selectionPosition], eax
        invoke  SendMessage, [hAsmEditwin], AEM_SETPOS, __miaAEPOS, NULL
        invoke  SendMessage, [hAsmEditwin], WM_SETTEXT, NULL, Buff
    

I get error tring changing the selected line.
Can someone tell me the right way to do so?
Thx
Post 31 Jan 2006, 16:30
View user's profile Send private message Reply with quote
Crukko



Joined: 26 Nov 2005
Posts: 118
Crukko
Sorry....next time i will post under the IDE section Sad
Post 31 Jan 2006, 16:35
View user's profile Send private message Reply with quote
Crukko



Joined: 26 Nov 2005
Posts: 118
Crukko
The solution is..........
EM_REPLACESEL
By All.......
Post 31 Jan 2006, 16:39
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2141
Location: Estonia
Madis731
I used to get stuck with EM_SETSEL, but I found out that you can give it negative offsets and whatnot so I could do everything with it.
Post 31 Jan 2006, 20:17
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
Crukko



Joined: 26 Nov 2005
Posts: 118
Crukko
Can you post an example, pls?
Thx
Post 03 Feb 2006, 15:04
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2141
Location: Estonia
Madis731
I don't remember how many times I've posted this example Very Happy but here it goes again:


Description: Conversion beween different number formats (BINOCTDECHEX)
Download
Filename: ConvDLG.7z
Filesize: 5.91 KB
Downloaded: 177 Time(s)


_________________
My updated idol Very Happy http://www.agner.org/optimize/
Post 04 Feb 2006, 09:58
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
Crukko



Joined: 26 Nov 2005
Posts: 118
Crukko
put it on flatassembler.net/examples.php
Wink
Post 04 Feb 2006, 14:32
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2141
Location: Estonia
Madis731
I've tried - but I couldn't get the cart moving Razz
Post 04 Feb 2006, 23:05
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger 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.

Powered by rwasa.