|
-
October 29th, 2003, 11:28 AM
#1
Errors compiling wincrypt.h
Hi! I have downloaded Microsoft SDK, and this is my code:
Code:
#include "stdafx.h"
#define _WIN32_WINNT 0x0400
#include <stdio.h>
#include <windows.h>
#include <wincrypt.h>
And when I compile I get these errors:
c:\program files\microsoft sdk\include\wincrypt.h(249) : error C2146: syntax error : missing ';' before identifier 'HCRYPTPROV'
c:\program files\microsoft sdk\include\wincrypt.h(249) : fatal error C1004: unexpected end of file found
Any idea? Thank you in advance.
I am Miss Maiden... Miss Iron Maiden :-D
-
October 29th, 2003, 11:32 AM
#2
Have you checked all #include directives are OK?
-
October 30th, 2003, 02:56 AM
#3
Hi Doctor 
I don't know if I need to include some directive more.
The error happens in this line:
typedef ULONG_PTR HCRYPTPROV;
Thank you for your answers.
I am Miss Maiden... Miss Iron Maiden :-D
-
October 30th, 2003, 03:26 AM
#4
maybe I have an older wincrypt.h file. I have
typedef unsigned long HCRYPTPROV; and not in the line 249.
Sorry.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|