How do you compile WinCrypt.h under Visual C++?

不羁的心 提交于 2019-12-24 15:58:51

问题


I have a bog-standard Visual Studio Express Visual C++ environment, installed on a bog-standard Windows 7 box. I'd like to simply compile "#include "WinCrypt.h" (from the Windows SDK) without error. Can someone post the prereq set of includes (and perhaps VS settings) to accomplish this?


回答1:


Don't you only have to #include <Windows.h> then #include <Wincrypt.h>?

Edit: yes that is the case. I just tested it and the only requirements to #include Wincrypt are Windows.h and an entry point (main function) to your program.



来源:https://stackoverflow.com/questions/5665707/how-do-you-compile-wincrypt-h-under-visual-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!