如何在 C++ 中使用 windows.h 头文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14541401/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to use windows.h header file in C++?
提问by aanrv
I needed help with using the windows.h header file in C++. I see people using windows.h in their programs to (obviously) interact with windows, but I don't know how to use it. Specifically, is there a website that lists and describes the methods and functions in the windows.h header file. I try to open the windows.g header file and see the methods for myself but I only see a bunch of other #includes and don't know what to do next. I'm new to C++, so I apologize if my question is not a good one!
我需要在 C++ 中使用 windows.h 头文件的帮助。我看到人们在他们的程序中使用 windows.h 来(显然)与 windows 交互,但我不知道如何使用它。具体来说,有没有网站列出和描述windows.h头文件中的方法和功能。我尝试打开 windows.g 头文件并查看自己的方法,但我只看到一堆其他 #includes 并且不知道下一步该怎么做。我是 C++ 新手,所以如果我的问题不是一个好问题,我深表歉意!
回答by James Curran
Well, there's the Microsoft Developer Network at http://msdn.microsoft.com/en-US/which have reference and, I think, beginner tutorials, but you'll probably be better off with a book. Charles Petzold's "Programming Windows" used to use C++ (though I believe recent editions use C#)
嗯,在http://msdn.microsoft.com/en-US/上有Microsoft Developer Network,其中有参考资料,我认为还有初学者教程,但最好还是看一本书。Charles Petzold 的“Programming Windows”曾经使用 C++(尽管我相信最近的版本使用 C#)