another problem :s getting an error :s

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stdvu
    New Member
    • Oct 2008
    • 21

    another problem :s getting an error :s

    #include <stdafx.h>
    #include <windows.h>

    int CALLBACK WinMain(HINSTAN CE hInstance,HINST ANCE hPrevInstance,L PSTR lpCmdLine,int nCmdShow)
    {
    MessageBox(NULL , "VISUAL PROGRAMMING \n\n FIRST ASSIGNMENT", "Virtual Uinversity of Pakistan", MB_OKCANCEL);
    return 0;
    }


    I am getting an error "Error1 fatal error C1083: Cannot open include file: 'windows.h': No such file or directory h:\visual studio 2008\projects\p c080400184_cs41 0_1\pc080400184 _cs410_1\pc0804 00184_cs410_1.c pp 5 Pc080400184_cs4 10_1"

    I have installed my vs08 on h drive ...
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Jeez, can't you people think anymore? You installed VS2008 on an h: drive; your
    compiler was able to find the first .h file: it only complained about the second .h
    file. Bother files are part of that installation. Doesn't your Sherlock Holmes gene
    rear its head? I guess not; all you do is ask us on this forum. As if we know what
    silly things you have done. Go and check first. Where are these files? Are they
    in place? Where does your compiler search for include files? Is your installation
    alright? Can you compile and run other (simple) source files?

    Don't come to us with those open-ended questions.

    Jos

    ps. cute directory names btw.

    Comment

    • stdvu
      New Member
      • Oct 2008
      • 21

      #3
      gosh ........ that was rude ......

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by stdvu
        gosh ........ that was rude ......
        You could also consider it a little hint to start thinking for yourself; don't expect
        to be pampered here if you act as a brain dead child. If you do, programming is
        not for you.

        Jos

        Comment

        • stdvu
          New Member
          • Oct 2008
          • 21

          #5
          ahaan.......... .thanks neway..........

          Comment

          • JosAH
            Recognized Expert MVP
            • Mar 2007
            • 11453

            #6
            Originally posted by stdvu
            ahaan.......... .thanks neway..........
            And please at least try to write proper English; this is an international forum and
            your over-punctuated sms babble is hardly readable for your reading audience.

            Jos

            Comment

            Working...