Thread: WinSock

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    20

    Angry WinSock

    I want to Do socket programming in C (windows).. but the problem is that i am using the lamest compiler exists on this planet "Turbo C++ V 3.0" ..
    my problem is that i cant compile any program in which i include "winsock.h" file i am getting the following error

    "..\..\INCLUDE\WINNT.H 1382: Error directive: "undefined processor type"

    can anyone please tell me what can be the problem.. is it i dont have the correct header files if not from where can i download them.. or there is somethign wrong with my compiler..
    please please reply me soon
    Life is Like a Game.. You Just Dont Get 3 lives

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    You're using header files not designed for the compiler you're using (its a fossil from a bygone age).

    www.compilers.net
    And get either the borland command line tools 5.5 or dev-c++
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    May 2003
    Posts
    20
    No i have to Stick with this compiler... its mean i cant do socket programming using this compiler???
    Life is Like a Game.. You Just Dont Get 3 lives

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Why does everyone seem to have some sentimental attachment to those old compilers, despite having the very latest OS/Compiler???

    Get with the times man and get something more compatible with the OS you're actually using.

    No, you're pretty much stuck unless you spend some money
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    May 2003
    Posts
    20
    Thanks... but the the website you mentioned is not working or maybe its my stupid cable net .. anyways thanks again
    Life is Like a Game.. You Just Dont Get 3 lives

  6. #6
    Obsessed with C chrismiceli's Avatar
    Join Date
    Jan 2003
    Posts
    501
    almost always when you get unresolved errors with winsocks, it is because you didn't call
    WSAStartup()
    and
    WSACleanup()
    look here for info
    http://msdn.microsoft.com
    Help populate a c/c++ help irc channel
    server: irc://irc.efnet.net
    channel: #c

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Winsock issues
    By tjpanda in forum Windows Programming
    Replies: 3
    Last Post: 12-04-2008, 08:32 AM
  2. Winsock Messaging Program
    By Morgul in forum Windows Programming
    Replies: 13
    Last Post: 04-25-2005, 04:00 PM
  3. Winsock - Where do i start?
    By Brain Cell in forum Networking/Device Communication
    Replies: 5
    Last Post: 02-14-2005, 01:39 PM
  4. Where do I initialize Winsock and catch messages for it?
    By Lithorien in forum Windows Programming
    Replies: 10
    Last Post: 12-30-2004, 12:11 PM
  5. winsock
    By pode in forum Networking/Device Communication
    Replies: 2
    Last Post: 09-26-2003, 12:45 AM