Results 1 to 4 of 4

Thread: AxInterop.MSWinsockLib.DLL and something else

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    15

    AxInterop.MSWinsockLib.DLL and something else

    Hello,

    I'm pretty new to C# but I still have some questions

    When I add a component called Winsock 6.0 SP5 to Visual Basic 6.0 , it has DIFFERENT event parameters (such as connectionrequest) than when I put the same component in C# :S ??? This really confuses me

    Visual Basic 6 ConnectionRequest Event Winsock Params:
    Index as Integer , ByVal requestID as long

    C# ConnectionRequest Event Winsock Params:
    int requestID

    I really hope someone has an explanation for this and a fix???

    Anyway I've been searching around and I also found on this forum and I found this thread:
    http://www.vbforums.com/showthread.p...ht=axmswinsock

    The creater of the thread uses AxMSWinsockLib
    I use MSWinsockLib

    Where can I get AxMSWinsockLib?
    I think it should be this file but I'm not sure anymore(I searched alot): AxInterop.MSWinsockLib.DLL

    Thanks I really hope someone can help me out :\

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

    Re: AxInterop.MSWinsockLib.DLL and something else

    My advice: don't use Winsock at all. That person upgraded code from VB6 that would have used Winsock originally. If you're creating new .NET code then avoid ActiveX as much as possible. The System.Net namespace contains all the classes you need for various network programming scenarios. I suggest that you find the "proper" .NET solution to your problem rather than using old technology.
    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
    New Member
    Join Date
    Apr 2006
    Posts
    15

    Re: AxInterop.MSWinsockLib.DLL and something else

    yeah well then I have to learn to work with system.net sockets and I'm actually rewriting from vb6 to C# and that vb6 used winsock

    I hope system.net sockets can do the same and looks the same as winsock :P

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

    Re: AxInterop.MSWinsockLib.DLL and something else

    It can do the same and more but it looks totally different.
    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

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