Visual Studio unable to recognise my MFC library for my webcam laser rangefinder code(Visual Studio 无法识别我的网络摄像头激光测距仪代码的 MFC 库)
问题描述
我尝试直接从互联网上复制源代码,但由于出现以下错误,我无法构建/调试整个文件.
I tried copying the source code from the internet directly and I couldn't build/debug the whole file because of the error found below.
请帮忙
Error occurred while restoring NuGet packages: System.ArgumentException: The path is not of a legal form. at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength,Boolean expandShortPaths)
at System.IO.Path.GetDirectoryName(String path)
at NuGet.VisualStudio.VsUtility.GetNuGetSolutionFolder(Solution solution)
at NuGet.VsEvents.PackageRestorer.UsingOldPackageRestore(Solution solution)
at NuGet.VsEvents.PackageRestorer.BuildEvents_OnBuildBegin(vsBuildScope Scope, vsBuildAction Action).
1>------ Build started: Project: LaserRange, Configuration: Debug Win32 ------
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.CppBuild.targets(369,5): error MSB8031: Building an MFC project for a non-Unicode character set is deprecated. You must change the project property to Unicode or download an additional library. See http://go.microsoft.com/fwlink/p/?LinkId=286820 for more information.
========== 构建:0 成功,1 失败,0 最新,0 跳过 ==========}
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========}
推荐答案
右键单击您的解决方案,转到属性并将项目属性设置为使用 Unicode.
right click your solution, go to properties and set the project properties to use Unicode instead.
这篇关于Visual Studio 无法识别我的网络摄像头激光测距仪代码的 MFC 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Visual Studio 无法识别我的网络摄像头激光测距仪代码的 MFC 库
基础教程推荐
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- 初始化列表*参数*评估顺序 2021-01-01
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- CString 到 char* 2021-01-01
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
