flat assembler
Message board for the users of flat assembler.

Index > Windows > Let's Do it Together MSN in FASM, Nice? or Bad?

Author
Thread Post new topic Reply to topic
kidscracker



Joined: 29 Oct 2004
Posts: 46
kidscracker 19 Aug 2005, 03:23
Well i've been busy with my exams and with my courses, but now I want to know if I'm the the wrong way, Is an MSN Clone a good project? Who wanna join to this project, I've posted my source code, but I've improved it a bit, but I think that it will be better if we developed it, let's do a group for it, and if I'm i nthe wrong way let me know, I've started this for learn more, I will be waiting for your answers. If you want send me a mail. See ya! Cool


Description: MSN COM Test application

This is the last version of my msn, it has been rewrited, it's more stable and until now without bugs :D.
- A minor bugs fixed. when you tried to open more than one chat window it hangs.[FIXED][06/09/05)
- Duplicate window o

Download
Filename: MSNCOM.zip
Filesize: 27.48 KB
Downloaded: 532 Time(s)



Last edited by kidscracker on 11 Sep 2021, 06:04; edited 5 times in total
Post 19 Aug 2005, 03:23
View user's profile Send private message Reply with quote
wisepenguin



Joined: 30 Mar 2005
Posts: 129
wisepenguin 19 Aug 2005, 15:12
i like the idea.

i suggest writing it using 1.64 standard package that way everyone will be able to assemble it successfully. apart from people using older versions maybe.

also keep the code for the GUI separate to the MSN code, that way some people can work on the GUI while some people work on the MSN code.

you have done a good job so far on your own though.
Post 19 Aug 2005, 15:12
View user's profile Send private message Reply with quote
kidscracker



Joined: 29 Oct 2004
Posts: 46
kidscracker 23 Aug 2005, 14:59
First, I have problem trying to pass alll my code to FASM 1.64, when i try to compile it show an not "Enough Memory" error, so i have no succes on passing it, I need help with it please.

Well here are my ideas, wel really the way I'm thinking, for the MSN Object, as I've been developing it as objects so it could be reused, and created many instace of it.

Interface of the object
Quote:
interface IMSNObject,\
QueryInterface,\ ; // *** IUnknown methods ***
AddRef,\ ;
Release,\ ;
Connect,\
Disconnect,\
OpenNSConnection,\
CloseNSConnection,\
GetFriendlyName,\
SetFriendlyName,\
GetMail,\
SetMail,\
GetPassword,\ ; *-*- TEMPORAL
SetPassword,\
GetState,\
SetState,\
ChangeState,\
GetTrID,\
SetTrID,\
IncTrID,\
SetConnectionType,\
GetLastError,\
GetContactsListObject,\
GetHTTPObject


MSNObject Structure
Quote:
struc MSNObject
{
.lpVtbl dd ? ; Puntero a la tabla de funciones
.nRefCount dd ? ; Contador de referencias

;======================================
; OBJECT's PRIVATE DATA
;======================================
.State rb 4 ; State String (NLN HDN BSY, etc)
; MAX 3 CHAR MAX(NULL terminated)

.TrID dd ? ; Commands NID (Incremented with each command send)
.hNSConnection dd ? ; HTTPObjects for the connection with the NS

.ConnectionType db ? ; Conection Type
; 0 = Complete connection (Process commands after initiated the session)
; 1 = Only NS connection (Only connect to the NS, not linked with the Monitor Window)

.ConnectionState db ? ; Conenction State (Bits Mask)
; Bit
; 0 Connected(1)/Disconnected(0)
; 1 CL Received(1)/CL Not Received(0)
; 2 State Set(1)/state not Set(0)

.hContactsList dd ? ; Contactes List Handler
; Object MSN_CONTACTSLIST

.LastError dd ? ; Last Error

.Mail rb MAXMAILLENGHT+1 ; Mail for this session
.Password rb MAXPASSWORDLENGHT+1 ; Password for this sesion

.FriendlyName rb MAXFRIENDLYNAMELENGHT+1 ; NICK

;======================================
; VARS USED FOR PROCESSING OF NS COMMANDS
;======================================
.hInBuffer dd ? ; InBuffer Handler
.InBufferLen dd ? ; Real Size
.Buffer_Len dd ? ; Free Space
.Buffer_Write dd ? ; Write Offset
.Buffer_Read dd ? ; Rread Offset
.BufferData_Len dd ? ; Available data

;======================================
; VARS USED FOR PAYLOADS COMMANDS PROCESSING
;======================================
.PayLoadCmd db ? ; Flag Payload Processing
; 0 = No Processing
; 1 = Processing

.PayLoadCmdLen dd ? ; Total Lenght
.PayLoadCmdLenLeft dd ? ; Bytes for read
.hPayLoadCmdBody dd ? ; Buffer handler
.PayLoadCmdBodyOffset dd ? ; Write Offset
; (In case it has been divided in many blocks)

;======================================
; TEMP VARS
;======================================
; .hCHGTimer dd ? ; Handler del Timer usado para establecer
; ; el estado despues de conectar

.CurrentContact dd ? ; Current Contact Index
; Used for commands BPR,etc.

.LastCMDIndex dd ?
}


Description: CONSTANTS AND STRUCTURES FOR THE HTTPOBJECT
NOT PASSED TO FASM 1.64

Download
Filename: HTTP.inc
Filesize: 2.59 KB
Downloaded: 507 Time(s)

Description: CONSTANTS AND STRUCTURES FOR THE MSNOBJECT
NOT PASSED TO FASM 1.64

Download
Filename: MSN.inc
Filesize: 7.13 KB
Downloaded: 498 Time(s)

Post 23 Aug 2005, 14:59
View user's profile Send private message Reply with quote
gunblade



Joined: 19 Feb 2004
Posts: 209
gunblade 24 Aug 2005, 07:12
For that not enough memory error, if your using the command line fasm, then do: fasm -m <number> file.asm.. make that number bigger and bigger until it works. If your using fasmw, then no idea, but the option should be in there somewhere.

Edit: reading a post by Madis731, in fasmw, you go to Options->Compiler Setup, and there should be the memory option there.
Post 24 Aug 2005, 07:12
View user's profile Send private message Reply with quote
Kevin_Zheng



Joined: 04 Jul 2003
Posts: 125
Location: China
Kevin_Zheng 24 Aug 2005, 08:06
Hi,Kidcracker:
MSN client is a good program! Smile
I've ever see this error "Not of memory" when I converted my source code from 1.60 to 1.64. I found that if the structure defines used error syntax, the fasm complier will show a error "Not of Memory". So it's not affected by memory size.

I suggest that you should convert all of structs used "struct, ends" to convert it, it maybe fix your issue.


Kevin Zheng
Post 24 Aug 2005, 08:06
View user's profile Send private message MSN Messenger Reply with quote
kidscracker



Joined: 29 Oct 2004
Posts: 46
kidscracker 24 Aug 2005, 14:26
Yes I've just done it last night, now I've passed my libs, includes an program to fasmw 1.64, so now I'm able con share my code, and more person will test it, and of course, developed it.
Post 24 Aug 2005, 14:26
View user's profile Send private message Reply with quote
Redragon



Joined: 27 Nov 2004
Posts: 101
Location: U.S.
Redragon 26 Oct 2005, 02:14
will you be releasing the source to MSNcom?
Post 26 Oct 2005, 02:14
View user's profile Send private message Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1166
Location: Overflow
Matrix 26 Oct 2005, 18:23
well, i dont think msn will use fasm,
unfortunatly, there is an masm ...
anyway, microsoft doesnt bother with asm software, it is c++ like windows
Post 26 Oct 2005, 18:23
View user's profile Send private message Visit poster's website Reply with quote
kidscracker



Joined: 29 Oct 2004
Posts: 46
kidscracker 27 Oct 2005, 17:27
Well I'll be releasing it soon,for the weekend,now I'm busy with an event at my university,you will continue this project. see you soon
Post 27 Oct 2005, 17:27
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.