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. Adding header files in a project

Adding header files in a project

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
11 Posts 5 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.
  • V vasmvr

    Hi all, i need help about a problem: i wanted to chance the dialog style of SHBrowseForFolder, i need to use BIF_NEWDIALOG STYLE. The right shlobj.h file that allow me to use BIF_NEWDIALOG STYLE is in the platform sdk. So i have to use that file and add it in my project but i can't overwrite the old one placed in v98 directory. How can i do this? I hope someone can help me.... thanks in advance vasmvr

    D Offline
    D Offline
    David Crow
    wrote on last edited by
    #2

    Change your include path to look in C:\Program Files\Microsoft SDK\include first.


    "The largest fire starts but with the smallest spark." - David Crow

    "Judge not by the eye but by the heart." - Native American Proverb

    V 1 Reply Last reply
    0
    • D David Crow

      Change your include path to look in C:\Program Files\Microsoft SDK\include first.


      "The largest fire starts but with the smallest spark." - David Crow

      "Judge not by the eye but by the heart." - Native American Proverb

      V Offline
      V Offline
      vasmvr
      wrote on last edited by
      #3

      thanks for your prompt answer but i can't do that, i need other way to do that... I hope it exist

      T Z 2 Replies Last reply
      0
      • V vasmvr

        thanks for your prompt answer but i can't do that, i need other way to do that... I hope it exist

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #4

        why not ?


        TOXCCT >>> GEII power

        [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

        V 1 Reply Last reply
        0
        • T toxcct

          why not ?


          TOXCCT >>> GEII power

          [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

          V Offline
          V Offline
          vasmvr
          wrote on last edited by
          #5

          because it isn't a project settings and if someone want to compile in another computer where is not installed sdk the program don't compile. I want to avoid to install sdk in all computer. thanks in advance

          D 1 Reply Last reply
          0
          • V vasmvr

            thanks for your prompt answer but i can't do that, i need other way to do that... I hope it exist

            Z Offline
            Z Offline
            Zac Howland
            wrote on last edited by
            #6

            Mixing and matching versions of the SDK is never a good idea. It only leads to a highly complicated codebase and bugs that are extremely difficult to track down. I realize you just want this flag out of the newer SDK, but trying to mix'n'match in this way only opens the door to much bigger problems. My suggestion is to try to use the newer SDK completely and fix any issues you have when that is done. If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac

            1 Reply Last reply
            0
            • V vasmvr

              because it isn't a project settings and if someone want to compile in another computer where is not installed sdk the program don't compile. I want to avoid to install sdk in all computer. thanks in advance

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #7

              vasmvr wrote:

              ...if someone want to compile in another computer where is not installed sdk the program don't compile.

              Right, so what's the problem? If the other machine does not have the Platform SDK installed, they aren't going to be able to compile the project anyway. :confused: Whether the Platform SDK is present on a machine or not, you can still instruct the compiler to look there. If the path is not present, the compiler simply moves to the next one in line. But given that you are using code that is only present in a newer .h file, this is a non-issue.


              "The largest fire starts but with the smallest spark." - David Crow

              "Judge not by the eye but by the heart." - Native American Proverb

              V K 2 Replies Last reply
              0
              • D David Crow

                vasmvr wrote:

                ...if someone want to compile in another computer where is not installed sdk the program don't compile.

                Right, so what's the problem? If the other machine does not have the Platform SDK installed, they aren't going to be able to compile the project anyway. :confused: Whether the Platform SDK is present on a machine or not, you can still instruct the compiler to look there. If the path is not present, the compiler simply moves to the next one in line. But given that you are using code that is only present in a newer .h file, this is a non-issue.


                "The largest fire starts but with the smallest spark." - David Crow

                "Judge not by the eye but by the heart." - Native American Proverb

                V Offline
                V Offline
                vasmvr
                wrote on last edited by
                #8

                i have a project shared by a lot of people working on it and i want to introduce BIF_NEWDIALOGSTYLE and add new .h file in the projects in transparent mode, so the other at the next get of the project can work without a problem with the latest code. And i don't want to overwrite old .h file because maybe it is used by someone.... i hope it is clear...

                D 1 Reply Last reply
                0
                • D David Crow

                  vasmvr wrote:

                  ...if someone want to compile in another computer where is not installed sdk the program don't compile.

                  Right, so what's the problem? If the other machine does not have the Platform SDK installed, they aren't going to be able to compile the project anyway. :confused: Whether the Platform SDK is present on a machine or not, you can still instruct the compiler to look there. If the path is not present, the compiler simply moves to the next one in line. But given that you are using code that is only present in a newer .h file, this is a non-issue.


                  "The largest fire starts but with the smallest spark." - David Crow

                  "Judge not by the eye but by the heart." - Native American Proverb

                  K Offline
                  K Offline
                  khb
                  wrote on last edited by
                  #9

                  I think what vasmvr wants to is to provide the problematic header file with his own code. Regards, Marcus.

                  1 Reply Last reply
                  0
                  • V vasmvr

                    i have a project shared by a lot of people working on it and i want to introduce BIF_NEWDIALOGSTYLE and add new .h file in the projects in transparent mode, so the other at the next get of the project can work without a problem with the latest code. And i don't want to overwrite old .h file because maybe it is used by someone.... i hope it is clear...

                    D Offline
                    D Offline
                    David Crow
                    wrote on last edited by
                    #10

                    vasmvr wrote:

                    i hope it is clear...

                    Somewhat, but I still think it is a mistake to not be using the latest Platform SDK. Trying to work around its presence is just asking for trouble.


                    "The largest fire starts but with the smallest spark." - David Crow

                    "Judge not by the eye but by the heart." - Native American Proverb

                    V 1 Reply Last reply
                    0
                    • D David Crow

                      vasmvr wrote:

                      i hope it is clear...

                      Somewhat, but I still think it is a mistake to not be using the latest Platform SDK. Trying to work around its presence is just asking for trouble.


                      "The largest fire starts but with the smallest spark." - David Crow

                      "Judge not by the eye but by the heart." - Native American Proverb

                      V Offline
                      V Offline
                      vasmvr
                      wrote on last edited by
                      #11

                      maybe it's a mistake but i can't do what you said, i have to find another solution... thanks for your interest

                      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