WinSock

This is a discussion on WinSock within the C Programming forums, part of the General Programming Boards category; I want to Do socket programming in C (windows).. but the problem is that i am using the lamest compiler ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,494
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,494
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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, 07: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, 12: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, 11:11 AM
  5. winsock
    By pode in forum Networking/Device Communication
    Replies: 2
    Last Post: 09-26-2003, 12:45 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21