Results 1 to 7 of 7

Thread: [2.0] sockets class?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    [2.0] sockets class?

    Well I have a vb.net sockets class that acts like winsock but I need a C# one. Anyone know where I can find one with an example on usage?
    Last edited by high6; May 11th, 2007 at 02:21 PM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2.0] sockets class?

    Why do you need a C# one? Just use your VB class. Compile it into a DLL and then reference that DLL in your C# project. You do the opposite all the time. The whole .NET Framework is written in C# and you reference those DLLs in VB projects. Part of the point of the .NET platform is language interoperability.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Re: [2.0] sockets class?

    Quote Originally Posted by jmcilhinney
    Why do you need a C# one? Just use your VB class. Compile it into a DLL and then reference that DLL in your C# project. You do the opposite all the time. The whole .NET Framework is written in C# and you reference those DLLs in VB projects. Part of the point of the .NET platform is language interoperability.
    How do you package the dll into the C# project so when compiled it stays 1 easy to use .exe?

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2.0] sockets class?

    Microsoft provide a tool called ILMerge that can be used to merge multiple .NET assemblies into a single assembly.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Re: [2.0] sockets class?

    Ok now my last problem is that the past 2 socket classes that are like winsock haven't worked properly. the code is the same as terms of vb6 to C# but the vb6 connects to the irc fine but the C# connects but stops after finding hostname.

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2.0] sockets class?

    I'm going to guess that your thing doesn't have any stuff. With the information you've provided that's about as good a guess as I can make.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7
    Lively Member Dominator's Avatar
    Join Date
    Oct 2004
    Location
    Egypt
    Posts
    65

    Re: [2.0] sockets class?

    hi

    I made a good socket class in C#, i use it to make a file explorer over network
    here is the link to my site

    http://www40.brinkster.com/Dominator...rojLang=Csharp

    hope it help you.
    .........................................................
    John F. Gouda {A.K.A}{Dominator Legend}
    Software Engineer
    +20-0125113313
    .......................................................
    Please feel free to download my projects:
    Http://DominatorLegend.Co.Nr
    .................................................................................................... ................................................................................................
    Direct Library | Speech Library | System Locker V.3 | Magic Encryptor | And many many more, follow the link above...

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