Error Running Windows Filtering Platform Sample - c++

I am trying to test WFP(Windows Filtering Platform) sample provided by microsoft. While testing I got error.
While building it builds well: With following message:
Build started: Project: package (Package\package), Configuration: Win8 Debug Win32 ------
Inf2Cat task was skipped as there were no inf files to process
========== Build: 1 succeeded, 0 failed, 5 up-to-date, 0 skipped ==========
And While running the exe file I got an error. as:
"Cannot Verify Digital signature of the file.......".
how to resolve this.
Code From: msdn
I am using Windows 8 Release Preview machine with Visual studio 2012.

Related

Visual Studio 2017 C++ Up-To-Date check always report up-to-date

I'm using VS2017 write C++ projects. After some version update, it cannot auto detect source file changes. The Build(F7) command always report something like:
1>------ Up-To-Date check: Project: hello, Configuration: Release Win32 ------
1>All outputs are up-to-date.
1>Time Elapsed 3 ms
========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
Although I can use Rebuild to get things work, it could be quite slow for some large projects. Are there any idea about this problem, or about how the build process check whether sources are out-dated?
Thanks.

Fatal error LNK1104: cannot open file 'sfml-system-s-d.lib'

I'am getting an error shown below, I'am using visual studio 2017 community and I'am trying to run a project I downloaded from github.
1>------ Build started: Project: CurveFever, Configuration: Debug Win32 ------
1>LINK : fatal error LNK1104: cannot open file 'sfml-system-s-d.lib'
1>Done building project "CurveFever.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
So far I have already uninstalled Visual Studio 2017 and re installing it again, I have already tried searching for questions similar to mine and what I found did not work. I have already checked whether sfml-system-s-d.lib is in the directory of my SFML folder and its in there.
Your linker seem not to be able to find 'sfml-system-s-d.lib'
You have to add the path to the library to the linker options:
Right-klick on your project->Properties->Linker->Additional Library Directories
Write the path to the folder containing your library, e.g. c:\lib\

Visual Studio 2015 Community C++ Build Failure: A task was cancelled

I'm trying to build a brand new c++ console project in Visual Studio 2015 Community and getting the following output:
1>------ Build started: Project: ConsoleApplication3, Configuration: Debug Win32 ------
1>A task was canceled.
1>A task was canceled.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
From this question it looks like the same problem. but the time has been recently synced:
And restarting Visual Studio doesn't change the build output. I've tried uninstalling Visual Studio and then reinstalling it, but the outcome is the same.
Delete Debug/Release folders and restart MSVC.

LINK : fatal error LNK1104: cannot open file 'ucrtd.lib' in VS2017 RC

I keep getting an error when I build a C++ project in Visual Studio 2017 RC.
1>------ Build started: Project: test, Configuration: Debug x64 ------
1>Source.cpp
1>LINK : fatal error LNK1104: cannot open file 'ucrtd.lib'
1>Done building project "test.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
OS: Windows 8.1, Visual Studio 2017 Release Candidate
Here is my program:
int main()
{
}
I did not set the language to anything special
I searched my whole machine for the file., but could not find it.
I have installed Windows SDK 8.1
Update:
After the comment from #user1336087
I tried to install Windows SDK 10I get an error:
[14f0:0009][2016-11-23T09:22:20] Package 'Win10SDK_10.0.14393.33,version=10.0.14393.3300' failed to install. Command executed: "C:\ProgramData\Microsoft\VisualStudio\Packages\Win10SDK_10.0.14393.33,version=10.0.14393.3300\packages\Win10SDK\10.0.14393.33\sdksetup.exe" /features OptionId.WindowsSoftwareDevelopmentKit OptionId.WindowsSoftwareLogoToolkit OptionId.NetFxSoftwareDevelopmentKit /quiet /norestart, Return code: -2146889721, Details: The hash value is not correct.
A workaround seems to have been described here: link
But the workaround still fails, even when I uninstall all SDK and install again.
It works in the final version of Visual Studio 2017
This comment here helped me with the same error. It seems having old versions of the Windows SDK present can cause LINK to get confused. Deleting the old version I had fixed the problem.
https://community.intel.com/t5/Intel-Fortran-Compiler/LINK-fatal-error-LNK1104-cannot-open-file-ucrtd-lib-with-VS2015/td-p/1060422

Migrating a project to a different computer: "Error: The device is not ready."

I'm using Visual C++ 2010 Express, and I just copied over a full project folder to a new computer (both are on Windows 8, if that's relevant). I opened the solution file exactly as I did on the other computer, and tried to build.
I'm getting the following error:
1>------ Build started: Project: <project_name>, Configuration: Debug Win32 ------
1>Error: The device is not ready.
1>
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
With no other context.
What's the deal?