Compile errors

From: Wagner (wcampagner_at_hotmail.com)
Date: 01/21/04


Date: Wed, 21 Jan 2004 04:51:05 -0800

Hello,

I'm trying to compile the "Example C Program: Listing the Certificates in a Store" from the SDK and i'm getting some compile error as follows:

Compiling...
cert_store.c
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(52) : warning C4047: 'function' : 'unsigned long ' differs in levels of indirection from 'void *'
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(52) : warning C4024: 'CertOpenSystemStoreA' : different types for formal and actual parameter 1
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(94) : warning C4013: 'CertGetNameString' undefined; assuming extern returning int
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(96) : error C2065: 'CERT_NAME_SIMPLE_DISPLAY_TYPE' : undeclared identifier
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(133) : error C2065: 'CERT_SIGNATURE_HASH_PROP_ID' : undeclared identifier
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(133) : error C2051: case expression not constant
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(183) : error C2065: 'CERT_DESCRIPTION_PROP_ID' : undeclared identifier
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(183) : error C2051: case expression not constant
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(188) : error C2065: 'CERT_ACCESS_STATE_PROP_ID' : undeclared identifier
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(188) : error C2051: case expression not constant
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(193) : error C2065: 'CERT_SMART_CARD_DATA_PROP_ID' : undeclared identifier
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(193) : error C2051: case expression not constant
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(198) : error C2065: 'CERT_EFS_PROP_ID' : undeclared identifier
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(198) : error C2051: case expression not constant
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(203) : error C2065: 'CERT_FORTEZZA_DATA_PROP_ID' : undeclared identifier
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(203) : error C2051: case expression not constant
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(208) : error C2065: 'CERT_ARCHIVED_PROP_ID' : undeclared identifier
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(208) : error C2051: case expression not constant
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(213) : error C2065: 'CERT_KEY_IDENTIFIER_PROP_ID' : undeclared identifier
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(213) : error C2051: case expression not constant
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(218) : error C2065: 'CERT_AUTO_ENROLL_PROP_ID' : undeclared identifier
C:\Documents and Settings\wagnergc\Meus documentos\assinador\cert_store.c(218) : error C2051: case expression not constant
Error executing cl.exe.

cert_store.obj - 19 error(s), 3 warning(s)

i tried to find what could be wrong and didn't find anything.

Does anyone can help me solve this problem?

Thanks in advance,
Wagner Garcia Campagner