Hi All,
I am trying to build a simple c++ MFC project using visual studio 2008. All works fine before the software restriction policy is applied. The restriction policy basically does not allow any programs to run if they are not in c:\program files, c:\windows folders and a few other folders specified by administrator.
The error I get is something like this:
1>Project : error PRJ0003 : Error spawning 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\rc.exe'.
Is there a way to get visual studio 2008 to build c++ MFC project when software restriction policy is in place? If so, how?
Some of you may ask why you need software restriction along with VS 2008 c++. Well, in the company setting, we use software restriction policy to fight virus, malware, ransomware and all the other unwanted software. Too bad, this VS is not supporting the fight. All the anti-virus is reactive (meaning someone must be sick first before a vaccine becomes available) while this approach is proactive.
This question was posted to the VS forum without getting any solution (https://social.msdn.microsoft.com/Forums/vstudio/en-US/1fb07bfe-e9a3-42f4-ad03-5e27996fab05/vs-2008-c-with-mfc-does-not-build-when-software-restriction-policy-is-in-place?forum=vcgeneral). On their advice, I am posting this here. Note that the project compiles and runs with no problems if the software restriction policy is removed. Also the whole project is in the folder where the execution is allowed by the policy. Any help about this problem would be greatly appreciated.
Thanks,
George.