adding <winsok2.h> to visual c++ 2008 express
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 3 of 3

Thread: adding <winsok2.h> to visual c++ 2008 express

Hybrid View

  1. #1
    Join Date
    Jul 2013

    Smile adding <winsok2.h> to visual c++ 2008 express

    hi every one iam trying to write network program with vc++ (windows form application)

    but the problem is

    when iam try to include <winsock2.h> the complier give this massge:

    warning C4627: '#include "windows.h"': skipped when looking for precompiled header use
    1> Add directive to 'stdafx.h' or rebuild precompiled header

    i intalled windows sdk and Integrated the Platform SDK into my Visual C++ Express.

    the integration steps is illustrated will in the link below:

    please please help me

  2. #2
    Join Date
    Dec 2012

    Re: adding <winsok2.h> to visual c++ 2008 express

    Do you understand pre-compiled headers?

    Have a look at


    If you search you find a lot of info about precompiled headers. It is also a great resource for info about the visual c++ and visual studio etc.
    All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.

  3. #3
    Join Date
    Apr 2000
    Belgium (Europe)

    Re: adding <winsok2.h> to visual c++ 2008 express

    short answer:
    add any additional includes AFTER the stdafx.h include or put them in the stdafx.h

    long anwser see above

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center