---
title: "csp开发必须做的事"
author: "891633093"
date: "2010-10-27T13:59:08Z"
tags: []
categories: ["编程语言"]
slug: "csp"
draft: false
lastmod: "2010-10-27T14:04:17Z"
id: 795471
url: "https://richling.iteye.com/blog/795471"
---

vc6缺省是不定义\_WIN32\_WINNT宏的。  
而在wincrypt.h中有  
#if (\_WIN32\_WINNT &gt;= 0x0400)  
...  
#endif

 

必须加入：

#define \_WIN32\_WINNT 0x0400

而且  
#include &lt;windows.h&gt;

必须在#include &lt;wincrypt.h&gt;之前