flat assembler
Message board for the users of flat assembler.

Index > Windows > icq clone written in fasm

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Author
Thread Post new topic Reply to topic
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv
Well you reused the same dlgproc for both the 2 dialogs. This should not be the case.

I added another procdure called OptionDlg to handle the callback function for the option dialog. Also you should place the uninitiased buffers into another section so that it does not take up disk space.


Last edited by roticv on 08 Feb 2004, 13:13; edited 1 time in total
Post 29 Jan 2004, 07:47
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv
Hi all,

I implemented the login codes into the gui.asm. When you managed to login successfully (Currently you cannot select which uin and password to login with, but using the testing icq account), the status bar will show as "ONLINE".

Anyway just a question, how many people are keen on seeing this project be a success? Just being curious.

Regards,
Victor


Description:
Download
Filename: gui.zip
Filesize: 9.18 KB
Downloaded: 134 Time(s)

Post 08 Feb 2004, 13:10
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy
Keep up the good work! I would like to see a working messenger program written in FASM, and I also look forward to use such a messenger... Wink Cool
Post 08 Feb 2004, 15:00
View user's profile Send private message Visit poster's website Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina
i have downloaded and workin on the gui roticv
Post 08 Feb 2004, 21:47
View user's profile Send private message ICQ Number Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina
try right clicking on the status Smile
and just fixed some bugs

and added a sample faim.ini file


Last edited by sina on 27 Feb 2004, 20:14; edited 1 time in total
Post 08 Feb 2004, 22:44
View user's profile Send private message ICQ Number Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina
and in the future this can be helpfull for md5 authorization
just have a look if u havent seen it before


Description:
Download
Filename: md5asm.zip
Filesize: 18.7 KB
Downloaded: 136 Time(s)

Post 08 Feb 2004, 23:14
View user's profile Send private message ICQ Number Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv
Hi Yunus,

Personally, I think when the password + uin is stored in the ini file, it should be encrypted. Personally I do not like the idea of storing the uin and the password in plain text. Perhaps that is something we can work on, seeking a good encryption algorithm.

About logging in with md5, I have seen md5 sources, it is just that I think the login with md5 requires more steps and I am lazy to work on it, perhaps we can work on it on a later date. I will look into the sources you provided.

Anyway it is nice to be able to login by rightclicking the status bar. Keep up the good work!

Point to note is that a thread is created for the login so that it does not look as if the program hangs while logging in (since I am using blocking sockets for that part of the code.)

Soon, I am going to add codes to extract the people on the icq list and then add into the list box.. So just sit tight Very Happy

Regards,
roticv
Post 09 Feb 2004, 13:17
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina
u just think good man
and importing the list will be a perfect step
Post 09 Feb 2004, 23:09
View user's profile Send private message ICQ Number Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv
Hi all,

I got good news to annouce to you, I am thrilled myself. I managed to extract the people on the contact list and put it into the listbox. You can see it in the screenshot I have taken when I logged in with my account (You would need to reasemble with your password and uin to login with your own account).

Files that I have edited are packet.asm and string.asm

A question for Yunus,

Would you like those people waiting to be authorised on the listbox? I could add that if you want. Also I think it is time we start working on the window whereby msgs are sent and received. Also do take note that the text are sent in rtf format, so I think we need to use richedit for both the input and the display editboxes. Do give me some comments on it.

Also, should I work on the ini (to store some stuffs, so that it will be easier to log in) or continue working on the icq protocol?


Description:
Filesize: 3.15 KB
Viewed: 2660 Time(s)

faim.gif


Description:
Download
Filename: gui.zip
Filesize: 11.4 KB
Downloaded: 128 Time(s)



Last edited by roticv on 12 Feb 2004, 11:52; edited 1 time in total
Post 11 Feb 2004, 15:34
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina
i think u have attached wrong file Sad
i am so sad that i just cant test it on me but the screenshot just seems nice Smile

i am updating the res file for the msg dialog and i agree that we should use richedit control (for the edit section of send msg dialog and the other ssection that shows the messages and ? )

in miranda client i think they just convert text to plain and they dont use rtf messages , i dont know why but i think it is good to use rtf

and before all u are just doing great work! Smile
u are really a good asm programmer!

be sure that i am gonna make some kick ass improvements becouse i am thrilled too Smile

Quote:

Would you like those people waiting to be authorised on the listbox?

yes as a normal icq client i should be able to authorize them but do u mean when getting the list do i want to authorize them automatically?

i am gonna make another popup menu for the listbox to send msg and maybe authorize Smile

maybe working on the ini and making the login easier for other people will attract them to make improvements Smile but dont spend so much time on it just make some example code of what u think and then i can go on with it, you better work on the protocol as much as u can
Post 12 Feb 2004, 00:18
View user's profile Send private message ICQ Number Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina
Quote:

Personally, I think when the password + uin is stored in the ini file, it should be encrypted. Personally I do not like the idea of storing the uin and the password in plain text. Perhaps that is something we can work on, seeking a good encryption algorithm.

at least we can save the password in xored format or md5 format? is not md5 used for encryption?
Post 12 Feb 2004, 00:24
View user's profile Send private message ICQ Number Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv
Hi,

Yes, I have accidently attached the wrong file. I have fixed it now.

Regarding my question "Would you like those people waiting to be authorised on the listbox? ", I mean that when you want to add some people, some contacts might need autorisation. I am referring to these contacts awaiting autorisation.

I would prefer something stronger encyption than simple xor and also md5 is a hash not a an encyption. Perhaps I can convert my tea routines to fasm.

I will work on the ini file when I have the time (as in later)... but after some thoughts and some dicussion with Harold I think it is better registry is used for this purpose. So what do you think? Registry or ini?

Just a request, can the listbox be changed to a listview? I need to have some enhancement present in listview such as the ability to pass an dword (to store uin number) to pass with the string to add into the listview.
Post 12 Feb 2004, 13:50
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina
i have made the listbox listview ( i think we should change the send message command in packet.asm to suit
this, and i think we can use some images on the left next to the nicknames according to their status for the
users by this listview control)
i have added three sample dialogs
1.msg send receive dialog
2.show user details dialog with few of the details for demonstration
3.a simple about dialog(use menu command about-i havent think seriously for what should be in the
about dialog , i have written some silly things Razz )
also added an icon for exe file and a second icon file for offline mode and some sample code to use it
i have cleared some menu identifiers and made the main menu and the poop up menu of status bar to use the same
menu id's

we can use the registry if u want and i think we should begin giving version numbers to our files to avoid
coding on old files

i am trying to pop the pop up of listview, up Smile u will see it's commented
and handling the wm_size of the send/receive msg dialog

waiting for your comments

thats all for today Smile working on faim is just so much fun


Last edited by sina on 27 Feb 2004, 20:15; edited 1 time in total
Post 12 Feb 2004, 22:32
View user's profile Send private message ICQ Number Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina
u can use this to add somethng into the list
Quote:

;insert some sample item to listview
invoke GetDlgItem,[hwnddlg],1000
mov [dialog_item_handle],eax
mov [lvi.mask],LVIF_TEXT+LVIF_PARAM
mov [lvi.iItem],1
mov [lvi.iSubItem],0
mov [lvi.pszText],SomeString
invoke SendMessage,[dialog_item_handle],LVM_INSERTITEM,0,lvi
;end

and declare the struct
lvi LVITEM
Post 13 Feb 2004, 00:29
View user's profile Send private message ICQ Number Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina
and i want to open a pop up menu by dblclicking or rightcliking on an item in the listbox by using wm_notify

Quote:

wmnotify:
mov eax,[lparam]
mov [pnwm],eax
invoke GetDlgItem,[hwnddlg],1000
mov [dialog_item_handle],eax
mov eax,[pnwm.hwndFrom]
cmp eax,[dialog_item_handle]
jne processed
cmp [pnwm.code],NM_DBLCLK
jne processed
int 3;here will pop up a menu or open the send msg dialog
jmp processed

anyway it does not work
does not the dialog box get wm_notify msg?
Post 13 Feb 2004, 00:34
View user's profile Send private message ICQ Number Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina
and i could not test the last version u posted
it gives error check your uin pass but they are correct Sad
Post 13 Feb 2004, 00:36
View user's profile Send private message ICQ Number Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv
Regarding your snipplet of code, lparam contains pointer to nmhdr and not nmhdr itself, so you should be accessing nmhdr via a register. Also can tell me the error?

Quote:
i think we can use some images on the left next to the nicknames according to their status for the

Yes I think that would be nice.

For now, I updated the code to add text into the listview and now currently working on the registry part. Will get back to you soon.

Anyway to add, one thing to think about is having only one instance of the faim running. Do you like the idea? or do you want to have more than one instance running? hm
Post 13 Feb 2004, 12:13
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina
i am far away from my son faim Smile i missed coding
Post 20 Feb 2004, 00:21
View user's profile Send private message ICQ Number Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv
Hi Yunus,

I just can't wait to continue to see you to work on faim. Anyway to add, I fixed the registry part (Only for the uin and password. Maybe you would want to look at my codes and then perhaps store the last position of faim into the registry and stuffs like that), currently trying to make use of WSACreateEvent. However the problem with that would be I would be using winsock2 instead of winsock1.1

Attached is my most updated code.


Last edited by roticv on 21 Feb 2004, 01:23; edited 1 time in total
Post 20 Feb 2004, 16:16
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
could this be due to older version of WinSock? Rolling Eyes
"The procedure entry point WSACreateEvent could not be located in the dynamic link library WSOCK32.DLL"
Post 20 Feb 2004, 18:52
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:  
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next

< 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.