gpt4 book ai didi

c++ - 使用 C++ 实现事件日志

转载 作者:太空宇宙 更新时间:2023-11-04 13:02:52 26 4
gpt4 key购买 nike

我正在尝试使用此 example 使用 C++ 实现 EventLog

但是在这条线上:

Console::WriteLine( "CreatingEventSource" );

Visual Studio 无法识别控制台对象:

enter image description here

你们知道为什么 Visual Studio (2017) 不能识别 Console 对象吗?

最佳答案

您链接到的示例代码使用 Console 如下:

Console::WriteLine("Test");

您需要确保您的 #usingusing 指令也是完整的。

关于c++ - 使用 C++ 实现事件日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43483650/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com