Announcement

Collapse
No announcement yet.

windows.h

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • windows.h

    Shouldn't I be able to find the windows.h file on my PC?

    Can't find it, but programs compile that have "#include <windows.h>"
    in them.

    What am I missing?

    Thanks.

    ------------------

  • #2
    Phil,

    What you are missing:
    1) The right forum - this is a basic forum
    2) The right directory - windows.h have to be somewhere on your
    PC. If yor are using VC++ you can find it in C:\Program Files\Microsoft Visual Studio\VC98\Include

    Regards
    Peter

    ------------------
    [email protected]
    [email protected]
    www.dreammodel.dk

    Comment


    • #3
      Peter:

      I was looking at pbnote.bas provided as a sample with PBDLL60 and trying to understand something about how it works. I noticed that in the resource file pbnote.rc that there is a statement "#include <windows.h>". I was just trying to look at windows.h.

      I apologize if wrong forum. Where should I have posted?

      Thanks, Phil

      ------------------

      Comment


      • #4
        Phil --

        Header (.h) files are a perfectly normal part of resource (.rc) files. Not all resource files use them, but many do.

        I'd suggest downloading the Platform Software Development Kit (PSDK) or whatever MS is calling it these days, from microsoft.com. It will contain all the standard header files for Windows apps.

        You will also find them if you install Microsoft Visual Studio, Borland C, or any number of other programming languages.

        -- Eric


        ------------------
        Perfect Sync Development Tools
        Perfect Sync Web Site
        Contact Us: mailto:[email protected][email protected]</A>
        "Not my circus, not my monkeys."

        Comment


        • #5
          Phil,

          All I think that is happening is that the old PBnote used a
          Microsoft VC or similar resource file that calls windows.h for
          the resource definitions.

          I would be tempted to change it to the "resource.h" definition
          file that comes with PowerBASIC as it should have most of the
          resource definitions for a program like PBnote.

          Regards,

          [email protected]

          ------------------
          hutch at movsd dot com
          The MASM Forum

          www.masm32.com

          Comment


          • #6
            Thanks a lot guys! I'll try replacing windows.h with resource.h and see what happens.

            Phil

            ------------------

            Comment


            • #7
              Steve's nailed it. That should be "resource.h".

              ------------------
              Tom Hanlin
              PowerBASIC Staff

              Comment


              • #8
                Phil

                Sorry...your question makes sense in this forum

                Regards
                Peter

                ------------------
                [email protected]
                [email protected]
                www.dreammodel.dk

                Comment

                Working...
                X