Teen Programmers Unite  
 

 

Return to forum top

Winsock/Winsock2 in C++ for DOS Apps

Posted by SSJ4KAL [send private reply] at March 02, 2002, 07:07:24 PM

Hey, would anybody help me learn how to use winsock and winsock2. I know how to head the files, lol, i just need to know how to apply them so i can get started in GUI.

Posted by CViper [send private reply] at March 05, 2002, 02:05:59 AM

Winsock is quite complex for a short answere... You might want to visit MSDN (msdn.microsoft.com or "http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/apistar..." )

Console programming with winsock/winsock2 is more or less the same as Win32 apps, unless you decide to use messages (where you need windows to recive the messages) etc.

Hope this helps at least a bit :)

Posted by buzgub [send private reply] at March 05, 2002, 04:07:01 AM

I can't help thinking that the SSJ4KAL needs to work out what (s)he wants to do. Winsock has nothing to do with GUIs, and I don't know of any verb "to head". I'm guessing (s)he actually wants to learn how to make a GUI, rather than do networks, but with such a garbled message, who can say? Besides, the answer to that one is sitting in a quick start guide, and a sockets tutorial can, I believe, be found on the links page. So, RTFM, then come back if you have a specific, sensible query that you've already spent a day or two thinking about.

Posted by AREM [send private reply] at March 05, 2002, 01:57:19 PM

I believe he wants to learn networking not how to make a gui . If you want to make a winsock program with MFC (Microsoft Foundation Classes) you can use a special winsock type. The header file is "afxsock.h". To learn how to use it I suggest reading the VC++ documentation (assuming you have VC++). You should be able to make better apps using MFC instead of a WIN32 Console app. Good luck!

-AREM

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.