As an example: In visual studio right-click on any function that is in the standard library and click “Go To Definition”, it will show the definition in a header or source file that is read-only.
How would I accomplish this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Mark the files as read-only when you distribute them. This offers the minimum amount the protection, as the permissions can be restored easily. Even from Visual Studio, if you attempt to overwrite the file, it will bring up a dialog that asks for confirmation of removal of read-only protection. This also happens for standard library headers.