Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. WSAAsyncGetHostByName - undeclared identifier

WSAAsyncGetHostByName - undeclared identifier

Scheduled Pinned Locked Moved C / C++ / MFC
help
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    harshadha
    wrote on last edited by
    #1

    hai, I am working in EVC for socket and am getting the follwoing errors . I have included Ws2_32.lib and Winsock2.h . error C2065: 'WSAAsyncGetHostByName' : undeclared identifier error C2065: 'WSAAsyncSelect' : undeclared identifier error C2065: 'WSACancelAsyncRequest' : undeclared identifier. Thanks in advance.. Harshadha

    N M 2 Replies Last reply
    0
    • H harshadha

      hai, I am working in EVC for socket and am getting the follwoing errors . I have included Ws2_32.lib and Winsock2.h . error C2065: 'WSAAsyncGetHostByName' : undeclared identifier error C2065: 'WSAAsyncSelect' : undeclared identifier error C2065: 'WSACancelAsyncRequest' : undeclared identifier. Thanks in advance.. Harshadha

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      may be because the INCL_WINSOCK_API_PROTOTYPES got define before including the winsock2.h . I dont know how it got define. Try including "winsock2.h" above all other includes.( if ur using stdafx.h, put #include winsock2.h above the first include in it)

      nave

      H 1 Reply Last reply
      0
      • N Naveen

        may be because the INCL_WINSOCK_API_PROTOTYPES got define before including the winsock2.h . I dont know how it got define. Try including "winsock2.h" above all other includes.( if ur using stdafx.h, put #include winsock2.h above the first include in it)

        nave

        H Offline
        H Offline
        harshadha
        wrote on last edited by
        #3

        hai, i added it still it has the same error.... thanks Harshadha

        N 1 Reply Last reply
        0
        • H harshadha

          hai, i added it still it has the same error.... thanks Harshadha

          N Offline
          N Offline
          Naveen
          wrote on last edited by
          #4

          try this. I am not sure whether this a right way to do. How ever if the error was because of the pblm I above mentioned, it will compile fine when wrote as below #undef INCL_WINSOCK_API_PROTOTYPES #include

          nave

          H 1 Reply Last reply
          0
          • N Naveen

            try this. I am not sure whether this a right way to do. How ever if the error was because of the pblm I above mentioned, it will compile fine when wrote as below #undef INCL_WINSOCK_API_PROTOTYPES #include

            nave

            H Offline
            H Offline
            harshadha
            wrote on last edited by
            #5

            hai, but still the error is there.... harshadha

            1 Reply Last reply
            0
            • H harshadha

              hai, I am working in EVC for socket and am getting the follwoing errors . I have included Ws2_32.lib and Winsock2.h . error C2065: 'WSAAsyncGetHostByName' : undeclared identifier error C2065: 'WSAAsyncSelect' : undeclared identifier error C2065: 'WSACancelAsyncRequest' : undeclared identifier. Thanks in advance.. Harshadha

              M Offline
              M Offline
              Mark Salsbery
              wrote on last edited by
              #6

              Please forgive my ignorance - What is EVC?

              "If you can dodge a wrench, you can dodge a ball."

              J 1 Reply Last reply
              0
              • M Mark Salsbery

                Please forgive my ignorance - What is EVC?

                "If you can dodge a wrench, you can dodge a ball."

                J Offline
                J Offline
                JudyL_MD
                wrote on last edited by
                #7

                Embedded Visual C++ - Visual Studio-like tool for C++ development for PocketPc and the like Judy

                M 1 Reply Last reply
                0
                • J JudyL_MD

                  Embedded Visual C++ - Visual Studio-like tool for C++ development for PocketPc and the like Judy

                  M Offline
                  M Offline
                  Mark Salsbery
                  wrote on last edited by
                  #8

                  Thanks Judy!

                  "If you can dodge a wrench, you can dodge a ball."

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups