ntstrsafe.lib(output.obj) : error LNK2019: unresolved external symbol @__security_check_cookie@4 referenced in function __output
ntstrsafe.lib(woutput.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4

解决方法参见:http://support.microsoft.com/kb/894573/

总结:
用户模式程序需要链接bufferoverflowU.lib
内核模式程序需要链接bufferoverflowK.lib


本文链接地址: unresolved symbol @__security_check_cookie
https://blog.qingfengju.com/index.asp?id=247

分类:Win32/C++ 查看次数:11847 发布时间:2011/4/27 17:16:11

1.在CxxxxApp::InitInstance()中注册类名
WNDCLASS wndclass;
 ::GetClassInfo(AfxGetInstanceHandle(),"#32770",&wndclass);
 wndclass.lpszClassName="wndclass_B11D006B-87D2-4f05-AEEB-30D3685118B0";
 AfxRegisterClass(&wndclass);

2.在对话框资源中使用类名
打开应用程序的rc文件,为对话框资源添加class属性:
IDD_xxxx_DIALOG DIALOGEX 0, 0, 279, 158
FONT 9, "MS Shell Dlg", 0, 0, 0x1
CLASS "wndclass_B11D006B-87D2-4f05-AEEB-30D3685118B0" //添加的class属性


本文链接地址: 修改对话框的类名
https://blog.qingfengju.com/index.asp?id=251

分类:Win32/C++ 查看次数:7043 发布时间:2011/4/13 10:32:28