What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » C# anyone?

C# anyone?
Author: Message:
Chancer
Senior Member
****

Avatar

Posts: 648
Reputation: 7
34 / Male / Flag
Joined: May 2005
Status: Away
O.P. RE: C# anyone?
Interesting. Actually, since it's the first time I'm using an object-oriented language (I've "used" Python once, but I don't think that counts), this things of classes, methods, events, they are still a bit messed in my head.
I'm not really worried about it now, because soon I'll have some classes and (hopefully) this mess will be cleared. I just wanted to start coding a little bit using what I know from C and some extra new stuff.

In C, I could do this:
C code:
struct client {
    int socket_descriptor;
    char[10] name;
    struct client *next;
    struct client *prev;
}

next and prev were my problem on C#. It's easy with C pointers and I wanted to know if I could do that on C#. After reading that page I'm still not sure, maybe I'll give it a try later. But I bet using ref will be useful when I effectively start coding. Thanks.

And about my program, turns out that I was using RemoveFirst to clean the whole list, so I was able to use a Dictionary and it's method Clean.
In the end, I have a Chat server and client (like chatting online in the 90's :P), with some limitations, but I really liked the interface (everything I had coded until now was console-apps). Too bad no one is going to use it :(
06-28-2011 07:18 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
C# anyone? - by Chancer on 06-25-2011 at 01:32 AM
RE: C# anyone? - by Mnjul on 06-25-2011 at 09:43 AM
RE: C# anyone? - by Chancer on 06-25-2011 at 04:39 PM
RE: C# anyone? - by Adeptus on 06-28-2011 at 04:08 AM
RE: C# anyone? - by Chancer on 06-28-2011 at 07:18 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On