I am new to c++ programming,
I have a c++ project developed in visual studio 2010, and now I am developping a COM project in VS2008. In this project I have to include some files used in the c++ project (developed in VS2010).
When I tried to include a header file from the C++ project (developed in VS2010), the compiler gives error "cannot find stdint.h file"
.
Is this problem with my installed visual studio?
Place your caret on the first line of any C# or Visual Basic file. Press Ctrl +. to trigger the Quick Actions and Refactorings menu. Select Add file header. To apply the file header to an entire project or solution, select Project or Solution under the Fix all occurrences in: option.
Press Ctrl +. to trigger the Quick Actions and Refactorings menu. Select Add file header. To apply the file header to an entire project or solution, select Project or Solution under the Fix all occurrences in: option. The Fix all occurrences dialog will open where you can preview the changes.
Add the following rule to your EditorConfig file: file_header_template. Set the value of the rule to equal the header text you would like applied. You can use {fileName} as a placeholder for the file name.
Why: Your team requires you to include a file header for copyright purposes. Add an EditorConfig to a project or solution if you do not already have one. Add the following rule to your EditorConfig file: file_header_template. Set the value of the rule to equal the header text you would like applied.
The stdint.h file is only available with vs2010 and not with vs2008. As a temporary solution you can copy the stdint.h file from include folder of an installed visual studio 2010, (c:\ProgramFiles\VS\include\stdint.h) and add that to your 2008 project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With