|
-
Apr 29th, 2006, 12:46 PM
#1
Thread Starter
New Member
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 :\
-
Apr 29th, 2006, 08:08 PM
#2
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.
-
Apr 30th, 2006, 03:08 AM
#3
Thread Starter
New Member
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
-
Apr 30th, 2006, 03:20 AM
#4
Re: AxInterop.MSWinsockLib.DLL and something else
It can do the same and more but it looks totally different.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|