[UWP] [C ++] pch.h在哪里? [英] [UWP][C++]Where is pch.h?

查看:110
本文介绍了[UWP] [C ++] pch.h在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习本教程。在过程8中(在您的UWP应用程序的pch.h文件中包含库的头文件。)

这是我拥有的,在UWPApps下没有pch.h。我应该自己创建它,如果我应该放在哪里?

https://imgur.com/a/pwonHfc

I'm following this tutorial. In procedure 8 (Include the library's header file(s) in your UWP app's pch.h file.)
Here is what I have, no pch.h under UWPApps. Should I create it by myself if yes where should I place it?
https://imgur.com/a/pwonHfc

并且不是c ++的pch.ha头文件,c#也可以这样做吗?

And isn't pch.h a header file for c++, Can c# also do this?

已解决。

有否NBSP; pch.h。对于c#,只需使用  DllImport,对于DLL文件,添加  extern"C" {method}

There is no pch.h. For c# just use DllImport and for DLL file add extern "C"{method}

推荐答案

Pch .h是Visual C ++项目中使用的预编译头。它(也没有其他C ++头文件)不在C#项目中使用。有关预编译头的更多信息,请参阅https://docs.microsoft.com/en-us/cpp/build/reference/creating-precompiled-header-files?view=vs-2017
Pch.h is a precompiled header used in Visual C++ projects. It (nor other C++ header files) is not used in C# projects. For more info on precompiled headers see https://docs.microsoft.com/en-us/cpp/build/reference/creating-precompiled-header-files?view=vs-2017


这篇关于[UWP] [C ++] pch.h在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆