flat assembler
Message board for the users of flat assembler.

Index > IDE Development > Download Fresh 1.2 pre-alpha

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
Thanks, older versions may be useful, you can send them on my email: mtymek at decard dot net (don't waste forum upload quota).
Post 19 Nov 2005, 19:33
View user's profile Send private message Visit poster's website Reply with quote
kidscracker



Joined: 29 Oct 2004
Posts: 46
Location: Peru
kidscracker
decard I've just send all the versions I have to your mail,I hope you will fix and continue with Fresh.Good Luck
Post 22 Nov 2005, 20:43
View user's profile Send private message MSN Messenger ICQ Number Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
I get them all, thanks!
Post 23 Nov 2005, 18:01
View user's profile Send private message Visit poster's website Reply with quote
Crukko



Joined: 26 Nov 2005
Posts: 118
Crukko
Hi All! I'm new in Fasm and this is my first post!

Sorry, I think it's not the right place to post that, but I try Wink
Fresh use AsmEdit, but I can't find ASMEDIT.DLL as in NoteIt (old prj, i know)...but how can the AsmEdit procedure be inserted in a DLL like in NoteIt?
thanks
Post 26 Nov 2005, 01:04
View user's profile Send private message Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
Yes, NoteIt is an old project Smile
It uses different approach than Fresh. NoteIt uses external DLL, while Fresh is similar to FASMW - AsmEdit's source is compiled together with whole Fresh. Take a look at \source\asmedit directory.
Post 26 Nov 2005, 14:17
View user's profile Send private message Visit poster's website Reply with quote
Crukko



Joined: 26 Nov 2005
Posts: 118
Crukko
Thx decard!
now i know what \source\asmedit dir has....but....
how to include AsmEdit in a my new prj?
how to use it?
how (eventually) help in improvement?
Do you think I have to open a new thread?
Thx again Wink
Post 27 Nov 2005, 03:59
View user's profile Send private message Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
it depends which variant you want to use. You have three options:

i. Standard AsmEdit control, from DLL (easiest Wink): search this forum for latest AsmEdit control in DLL (may require updating control's core to latest files, but don't worry about it), then in your program: load this DLL, call RegisterAsmEditClass function, and from now you can use AsmEdit in a similar way you use standard Edit (create window of 'ASMEDIT' class).

ii. Standard AsmEdit control, compiled with your project (recommended): get latest FASMW, all files from \source\ide directory (but from \source\ide\fasmw copy only asmedit.inc and asmedit.ash). Then include asmedit.ash and asmedit.inc in your source. Add this code in the beginning (initialization part):
Code:
        invoke  LoadCursor,0,IDC_IBEAM
        mov     [wc.hCursor],eax
        mov     [wc.style],CS_GLOBALCLASS+CS_DBLCLKS
        mov     [wc.lpfnWndProc],AsmEdit
        mov     eax,[hinstance]
        mov     [wc.hInstance],eax
        mov     [wc.cbWndExtra],4
        xor     eax,eax
        mov     [wc.hbrBackground],eax
        mov     [wc.cbClsExtra],eax
        mov     [wc.lpszMenuName],eax
        mov     [wc.lpszClassName],_asmedit_class
        invoke  RegisterClass,wc    

This will register asmedit. Don't forget to define _asmedit_class string.
Now you can use this conrol just like in first paragraph.

iii. AsmEdit control from Fresh: more difficult, as this control is more complex (has margin, supports bookmarks, themes...). You have to proceed like in ii., but there are more things to do when initializing AsmEdit: you have to provide bookmark and other icons (AEM_SETICONS message), set theme (AEM_SETTHEME)... and it requires Fresh macro library (uglobal macro).

Of sourse I didn't described every detail, if you will have any problems then feel free to ask.

Proably in each case you would want to set some different font after creating AsmEdit control. I'd recommend starting with ii., you have FASMW source as an example.

regards,
decard
Post 27 Nov 2005, 08:23
View user's profile Send private message Visit poster's website Reply with quote
Crukko



Joined: 26 Nov 2005
Posts: 118
Crukko
Great!!!!!!!
Let me start some experimental code, then Wink
Post 29 Nov 2005, 16:25
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< 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 GitHub, YouTube, Twitter.

Website powered by rwasa.