Adding header files in a project
-
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
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
-
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
-
thanks for your prompt answer but i can't do that, i need other way to do that... I hope it exist
-
-
thanks for your prompt answer but i can't do that, i need other way to do that... I hope it exist
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
-
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
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
-
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
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...
-
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
-
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...
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
-
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