I'm trying to create a function list to be able to be returned in
C_GetFunctionList.  The code looks something like the following:

CK_FUNCTION_LIST FunctionList = {
                {2,0},
                &C_Initialize , &C_Finalize, &C_GetInfo,
                ...
                &C_GenerateRandom, &C_GetFunctionStatus,
                &C_CancelFunction
                };

This used to compile fine in VC++ 6.0, but when I tried to convert my
project to C++ .NET...I am getting the following errors:

c:\Projects\PKCS11\common source\PKCS11Def.cpp(16) : error C2440:
'initializing' : cannot convert from 'CK_RV (__stdcall *)(CK_VOID_PTR)'
to 'CK_C_Initialize'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast

c:\Projects\PKCS11\common source\PKCS11Def.cpp(16) : error C2440:
'initializing' : cannot convert from 'CK_RV (__stdcall *)(CK_VOID_PTR)'
to 'CK_C_Finalize'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast

and on and on....

Any ideas?

_______________________________________________
mozilla-crypto mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-crypto

Reply via email to