none
Problem with cryptoAPI in WinCE RRS feed

  • Question

  • Hello, friends.

    I am developing a software with Visual Studio 2005 for a device with Windows CE 6.0 and I need to read and write certified files. For this I am using wincrypt32.h and crypt32.lib.

    And there are 3 functions in wincrypt32.h (all other functions in this .h work fine) with linkage problems. These 3 functions are:

    PFXImportCertStore(); -> more info: http://msdn.microsoft.com/en-us/library/ms926229.aspx

    PFXVerifyPassword(); -> more info: http://msdn.microsoft.com/en-us/library/ms926241.aspx

    FXIsPFXBlob(); ->more info: http://msdn.microsoft.com/en-us/library/ms926234.aspx


    And the linkage errors are:

    Test_396.obj : error LNK2019: unresolved external symbol PFXIsPFXBlob "public: virtual int __cdecl CTest_396App::InitInstance(void)" (?InitInstance@CTest_396App@@UAAHXZ)
    Test_396.obj : error LNK2019: unresolved external symbol PFXVerifyPassword "public: virtual int __cdecl CTest_396App::InitInstance(void)" (?InitInstance@CTest_396App@@UAAHXZ)
    Test_396.obj : error LNK2019: unresolved external symbol  PFXImportCertStore "public: virtual int __cdecl CTest_396App::InitInstance(void)" (?InitInstance@CTest_396App@@UAAHXZ)

    Any idea what is the problem?
    • Edited by p62capos Tuesday, December 16, 2014 11:03 AM
    • Moved by Shu 2017 Wednesday, December 17, 2014 7:12 AM wince issue
    Tuesday, December 16, 2014 11:03 AM

All replies

  • is there an definition available for CTest_396App::InitInstance(void), if yes, check the spelling and signature of the function declared and defined 
    Tuesday, December 16, 2014 4:33 PM
  • I think you should ask you question in Smart Device forum that is the right place for your question.

    Thanks


    Rupesh Shukla

    Tuesday, December 16, 2014 8:48 PM
  • Maybe you forget this:

    Configuration properties->Linker->input->additional dependencies->add crypt32.lib


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, December 17, 2014 7:18 AM
  • crypt32.lib is added (the remain function of crypt32 I am executing are working).

    It looks like these 3 functions are included in wincrypt32.h but they are not defined in cryp32.lib. Even I have done a test, I have linked with a cryp32.lib from WinCE5 instead of WinCE6 and my project have linked (but the executable does not work in my device, but it links).

    You are right, Pintu Shukla, I will ask where you tell me.

    Thanks, friends.

    Wednesday, December 17, 2014 10:35 AM