Results 1 to 14 of 14

Thread: Making an Instant Messenger?

  1. #1

    Thread Starter
    Hyperactive Member sheikh78's Avatar
    Join Date
    Apr 2006
    Location
    C:/
    Posts
    423

    Question Making an Instant Messenger?

    Hi. I would like to create an application that acts as an instant messenger without the use of other Instant messengers. So pretty much I want to build an application that sends and receives messages sent from the same application to the same application but on another computer. Would I use sockets? I am really confused because this is my first time using network programming. Any help or links would be appreciated! Thanks!
    "Imagination is more important than knowledge" - Albert Einstein, born on March 14th 1879.
    Can't find it here on VBForums? Go to the CodeProject. MSDN is your friend . I have such a bad website, my friend decided it would be funny to change the template and he moderates the site for me: visit my site!

    "Thinking of you, wherever you are
    We pray for our sorrows to end, and hope that our hearts will blend.
    Now I will step forward to realize this wish.
    And who knows, starting a new journey may not be so hard…
    Or maybe it has already begun.
    There are many worlds, but they share the same sky
    one sky, one destiny..."

  2. #2
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: Making an Instant Messenger?

    check out this post .. yes basically you could use the Winsock Control.

    http://www.vbforums.com/showthread.php?t=297308

  3. #3

    Thread Starter
    Hyperactive Member sheikh78's Avatar
    Join Date
    Apr 2006
    Location
    C:/
    Posts
    423

    Re: Making an Instant Messenger?

    Been a long time....Anyway that looks like VB6 code to me. I was wondering anything in vb.net?
    "Imagination is more important than knowledge" - Albert Einstein, born on March 14th 1879.
    Can't find it here on VBForums? Go to the CodeProject. MSDN is your friend . I have such a bad website, my friend decided it would be funny to change the template and he moderates the site for me: visit my site!

    "Thinking of you, wherever you are
    We pray for our sorrows to end, and hope that our hearts will blend.
    Now I will step forward to realize this wish.
    And who knows, starting a new journey may not be so hard…
    Or maybe it has already begun.
    There are many worlds, but they share the same sky
    one sky, one destiny..."

  4. #4
    Junior Member
    Join Date
    Jun 2006
    Posts
    20

    Re: Making an Instant Messenger?

    how hard can it be just get a textbox/richtextbox to send the text so someone's ip..and it the gets opened with an windows message box

  5. #5

    Thread Starter
    Hyperactive Member sheikh78's Avatar
    Join Date
    Apr 2006
    Location
    C:/
    Posts
    423

    Re: Making an Instant Messenger?

    Ya nice......how am i gonna access their ip? Because believe it or not most people don't know their friends ip address. So thats all I'm saying.
    "Imagination is more important than knowledge" - Albert Einstein, born on March 14th 1879.
    Can't find it here on VBForums? Go to the CodeProject. MSDN is your friend . I have such a bad website, my friend decided it would be funny to change the template and he moderates the site for me: visit my site!

    "Thinking of you, wherever you are
    We pray for our sorrows to end, and hope that our hearts will blend.
    Now I will step forward to realize this wish.
    And who knows, starting a new journey may not be so hard…
    Or maybe it has already begun.
    There are many worlds, but they share the same sky
    one sky, one destiny..."

  6. #6
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: Making an Instant Messenger?

    Quote Originally Posted by Daemoncraft
    how hard can it be just get a textbox/richtextbox to send the text so someone's ip..and it the gets opened with an windows message box
    Hard enough that you can't provide a relative example or a glimpse of help.

    The idea of a mesnger is that the two people on either end don't know each others IP (and really... shouldn't). The client systems should pass that information to the server and it should handle all of the relaying. In a tru IM program, both computers are clients that subscribe into a server. This will give you both an async state and also anonymity (real word, right?). FOr an intranet, this is an easy project, but when you add in proxies and seperate domains... It's a whole new game. Sockets are still the solution, but there's a whole new dynamic to it. If your problem is with the latter, I can't help you. It's beyond me right now. If everything is on an intranet, let me know where you're at and what you need. I have source code for both the client and server (in .net) and can get you going real quick.

  7. #7
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: Making an Instant Messenger?

    How different is it from the VB6 code .. just curious ..?
    anyway also check out vbip.com they have some .net stuff at the top of the home page ..

  8. #8
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: Making an Instant Messenger?

    One word, framework.

    More words, strict OOP dependency.

    The way you do it in VB6 can work (with many pointless hours of hooking the same APIs). In .Net, there's basically.... A bunch of objects you literally confgure and handle their events. There's no real nitty gritty involved.

  9. #9
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: Making an Instant Messenger?

    Ahh, ok i see .. yeah im a sucker for making it harder .. lol .. hence i still use Asp .. and not asp.net
    though winsock in vb6 is pretty simple ..

  10. #10
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: Making an Instant Messenger?

    Quote Originally Posted by rory
    Ahh, ok i see .. yeah im a sucker for making it harder .. lol .. hence i still use Asp .. and not asp.net
    though winsock in vb6 is pretty simple ..
    Actually, that's good. ASP.Net is soo easy and simplistic that people forget about the ASP part. Having an ASP background is clutch when it comes to ASp.Net.

  11. #11

    Thread Starter
    Hyperactive Member sheikh78's Avatar
    Join Date
    Apr 2006
    Location
    C:/
    Posts
    423

    Re: Making an Instant Messenger?

    Guys.....could you help me in this thread? I'm the one with the big code....i should have put it in a zip file....oh well whats done is done....just read my posts.....something is wrong with either the client or server: http://vbforums.com/showthread.php?p...18#post2509918 starting on post 13.
    "Imagination is more important than knowledge" - Albert Einstein, born on March 14th 1879.
    Can't find it here on VBForums? Go to the CodeProject. MSDN is your friend . I have such a bad website, my friend decided it would be funny to change the template and he moderates the site for me: visit my site!

    "Thinking of you, wherever you are
    We pray for our sorrows to end, and hope that our hearts will blend.
    Now I will step forward to realize this wish.
    And who knows, starting a new journey may not be so hard…
    Or maybe it has already begun.
    There are many worlds, but they share the same sky
    one sky, one destiny..."

  12. #12
    Addicted Member PeteD's Avatar
    Join Date
    Jun 2003
    Location
    Sydney
    Posts
    158

    Re: Making an Instant Messenger?

    check out the microsoft rtc sdk http://www.microsoft.com/downloads/d...F-DFA0ADF264AA. You may need a server os machine to handle all the presence functionality though.

  13. #13

    Thread Starter
    Hyperactive Member sheikh78's Avatar
    Join Date
    Apr 2006
    Location
    C:/
    Posts
    423

    Re: Making an Instant Messenger?

    Is this for use in Vb.net 2005? I haven't fully downloaded it yet.
    "Imagination is more important than knowledge" - Albert Einstein, born on March 14th 1879.
    Can't find it here on VBForums? Go to the CodeProject. MSDN is your friend . I have such a bad website, my friend decided it would be funny to change the template and he moderates the site for me: visit my site!

    "Thinking of you, wherever you are
    We pray for our sorrows to end, and hope that our hearts will blend.
    Now I will step forward to realize this wish.
    And who knows, starting a new journey may not be so hard…
    Or maybe it has already begun.
    There are many worlds, but they share the same sky
    one sky, one destiny..."

  14. #14
    Addicted Member PeteD's Avatar
    Join Date
    Jun 2003
    Location
    Sydney
    Posts
    158

    Re: Making an Instant Messenger?

    its com based, but can be used from vb.net through interop. Next version of .net will have all this integrated, but this is all there is for the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width