1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Development VB6 IRC Client-where to start?

Discussion in 'Software' started by DickH, 17 Apr 2005.

  1. DickH

    DickH What's a Dremel?

    Joined:
    6 Jun 2004
    Posts:
    273
    Likes Received:
    0
    I would like to make my own IRC client, but can only do it with Visual basic 6. Where should I go to figure out how to communicate with an IRC server?
     
    Last edited: 17 Apr 2005
  2. Dinh

    Dinh What's a Dremel?

    Joined:
    27 Jun 2004
    Posts:
    810
    Likes Received:
    0
  3. TheAnimus

    TheAnimus Banned

    Joined:
    25 Dec 2003
    Posts:
    3,214
    Likes Received:
    8
    no no no.

    read the RFC

    www.rfc-editor.org

    1459 iirc.

    using VB6 will be a pain for this.
     
  4. Henchman:crg

    Henchman:crg What's a Dremel?

    Joined:
    9 Feb 2005
    Posts:
    749
    Likes Received:
    0
    Good luck using the RFC site, I had to use this for doing http uploading, but the documentation on this site was awful :miffed:
     
  5. DeX

    DeX Mube Codder

    Joined:
    22 Jul 2002
    Posts:
    4,152
    Likes Received:
    3
    I used the IRC RFC to create a simple VB6 program to connect to an IRC server, join a channel and send commands. I didn't get further than that but it wasn't hard to do.

    I agree with you TheAnimus in that you shouldn't just download a premade program because learning from that will take 10 times longer than learning from scratch. But I disagree (once again) that VB will make it a pain. An IRC client requires lots of string parsing and VB is perhaps the second best language I've used to do this. PHP is probably the best but it would be silly to make an IRC client in PHP. :)
     
  6. TheAnimus

    TheAnimus Banned

    Joined:
    25 Dec 2003
    Posts:
    3,214
    Likes Received:
    8
    String parsing in VB is only beeten by:

    Perl
    C#.NET
    VB.NET
    J#.NET
    Python (and Python.NET)
    PHP
    MASM32 (with strings macro lib)
    C++ (with strings lib)
    C__ (you can have delimiters etc)
    erm, pretty much any language i've ever come accross.

    but thats besides the point.

    The reason this will be hell in VB6, is that theres no native support for a v2 RichEdit, so you can implement all the colouring easily (the background colour on the text). Its not a good OO lang, so you can't easily make a "channel" class that handles that channel, so to support another channel you just add a new channel, same goes with servers. WinSock support is a bit naff too.

    I actually made a simple one channel IRC client in VB before for kicks, so this isn't religous predudice. .NET would be a much better language for this.
     
  7. Lazlow

    Lazlow I have a dremel.

    Joined:
    8 Aug 2003
    Posts:
    1,464
    Likes Received:
    0
  8. DickH

    DickH What's a Dremel?

    Joined:
    6 Jun 2004
    Posts:
    273
    Likes Received:
    0
    I guess I need help with sending and recieving info from the net before I get to the IRC part, does VB6 have any commands or anything for sending/recieving info online?
     
  9. ColD_FusSioN

    ColD_FusSioN What's a Dremel?

    Joined:
    26 May 2004
    Posts:
    93
    Likes Received:
    0
    check out the posibilities of interfacing with netcat, there is more info on
    commands
     
  10. ColD_FusSioN

    ColD_FusSioN What's a Dremel?

    Joined:
    26 May 2004
    Posts:
    93
    Likes Received:
    0
    are you familiar with winsocks??? there is an object (OCX) to do TCP connections in VB6
     
  11. DickH

    DickH What's a Dremel?

    Joined:
    6 Jun 2004
    Posts:
    273
    Likes Received:
    0
    nope, not at all
     
  12. ColD_FusSioN

    ColD_FusSioN What's a Dremel?

    Joined:
    26 May 2004
    Posts:
    93
    Likes Received:
    0
    Socks!!

    In VB6 you can add the winsocks control to your project from "Project/Components..." selecting Microsoft Winsock Control 6.0.
    In www.freevbcode.com you can get very cool examples to know how to use it, if this is the first time you are going to use winsocks, check this example

    Hope that helps... :rock:
     
  13. DickH

    DickH What's a Dremel?

    Joined:
    6 Jun 2004
    Posts:
    273
    Likes Received:
    0
    Im trying to use winsocks, but I get this error everytime
    "License information for this component not found. You do not have an appropriate license to use this functionality in the design environment."

    I looked up the problem and download what was suposed to be the fix from microsoft, but it didn't fix it.
     
  14. TheAnimus

    TheAnimus Banned

    Joined:
    25 Dec 2003
    Posts:
    3,214
    Likes Received:
    8
    could be a security rights issue, you running as admin? check your active-x rules.

    if you can afford it, get a copy of VB.NET its not as nice as C# in many ways, but its good none the less.
     
  15. ColD_FusSioN

    ColD_FusSioN What's a Dremel?

    Joined:
    26 May 2004
    Posts:
    93
    Likes Received:
    0
    what service pack do you have?? :confused:
     
  16. DickH

    DickH What's a Dremel?

    Joined:
    6 Jun 2004
    Posts:
    273
    Likes Received:
    0
  17. DeX

    DeX Mube Codder

    Joined:
    22 Jul 2002
    Posts:
    4,152
    Likes Received:
    3
    Try running this from the Run box:

    regsvr32 MSWINSCK.OCX

    Then add it to you project by going to Components and finding the Microsoft Winsock Control 6.0.

    Then read the Winsock Control tutorials on this site:
    http://www.vbip.com/winsock/index.asp
     
  18. DickH

    DickH What's a Dremel?

    Joined:
    6 Jun 2004
    Posts:
    273
    Likes Received:
    0
    thanks, the link to the info on winsock was almost exactly what I need, however I still have the same problem when I try to add it to a form. Do you think reinstalling vb6 would fix it?
     
  19. DeX

    DeX Mube Codder

    Joined:
    22 Jul 2002
    Posts:
    4,152
    Likes Received:
    3
    You could try reinstalling but that doesn't usually fix it. You've tried using revsrv32 to register the ocx right? And you've tried this program from MS which usually fixes the problem right?
    http://support.microsoft.com/kb/q194751/

    If those two things don't work then try reinstalling VB. Otherwise I don't know what you can do.
     
  20. Dinh

    Dinh What's a Dremel?

    Joined:
    27 Jun 2004
    Posts:
    810
    Likes Received:
    0

Share This Page