Discussion Groups

SDK RDIF WAP for C++

This question is answered

  Hello,

I have to integrate RFID in our solution so I see that the SDK does not support C++ language and I've downloaded the CaenRfidLib5.zip file.

I'm using :

WAP : UHF-CA3-AC5-XMOD

Microsoft Visual Studio 2008 professional Edition.

When I try to execute TestCaenRfidLib.exe I've got this :

Any Idea?

Frédéric.

Verified Answer
  • Please use the Visual Studio 2008 DLL.  You may not see errors yet, but you might later on...

All Replies
  • Anyway you can make that picture of the error bigger?  I can't read it...

  • Automatically resized to 550px !!

    It says !

    "Impossible de démarrer le programme '%CSIDL_PROGRAM_FILES%\TestCaenRfidLib.exe'.

    Une erreur s'est produite qui indique en générale une installation endommagée (code 0x8007007e). Si le problème persiste, réparez votre installation de visual studio via ajout et suppression de programmes' du panneau de configuration."

    Translated:

    "Unable to start program '%CSIDL_PROGRAM_FILES%\TestCaenRfidLib.exe'.
    An error occured that usually indicates a corrupt installation (code 0x8007007e). If the problem persists, repair your VS installtion via Add or Remove Programs in Control Panel."

    It's the only project wich did that ! Others work fine. Probleme with the conversion VS2005 to VS2008 ?

    Anyway, for the moment I try to take the source code from the demo and put it in my solution and try to make it works (I hope soon Wink ).

    But I would have appreciated to make the demo works.


    Thanks for your help !!

    Frédéric.

  • Do you have the 'PsionTeklogixCE500' SDK installed?  That may be part of the problem.

    It could be a VS2005 to VS2008 conversion problem.   

    If you wanted to reconstitute the demo on your own, ensure that you link 'ws2.lib' to the CaenRfidLib project.  Remember, CaenRfidLib is actually built as a DLL, so remember to include 'CeanRfidLib.def'

  • The OS of the WAP is : WM6.1 classical.

    Do I really need the CE500 SDK ?

    Anyway this SDK is installed but I use the Windows Mobile Professional SDK to make the solution (it works with my software on WAP and Ikon for example).

    I will check for the dll part.

    Thanks for your answer.

    Frédéric.

  • Are you getting this error when you deploy the application to the device via ActiveSync, and are trying to run it via the debugger?

    Have you deployed both the test application and the DLL?  Are they in the same folder?

    Try executing the application from the device first (with the CaenRfidLib.dll file in the same directory) and see if it works from there.

    If it does, then close every instance of Visual Studio down that you have open.  Reboot the hand-held device.  Open just this instance of Visual Studio, and try again.

     

  • Deploying is succesfull, I 've got the error un runnig the debugger (WAP connecting via USB and Active sync).

    Application and Dll are in the same solution so they are deploying together.

    On the computer they are :

    C:\temp\CaenRfidLib5\CaenRfidLib\CaenRfidLib\Windows Mobile 6 Professional SDK (ARMV4I)\Release

    C:\temp\CaenRfidLib5\CaenRfidLib\TestCaenRfidLib\Windows Mobile 6 Professional SDK (ARMV4I)\Release

    on the WAP

    \Program Files\CaenRfidLib

    \Program Files\TestCaenRfidLib

    but I put the dll in \Program Files\TestCaenRfidLib manually

    and Finally on trying to execute application directly on the WAP i've got an error message about signing certificate.

    something like "Impossible to open the file 'TestCaenRfidLib'. It is not signed or a component is missing"

    Frédéric.

  • Try this:

    • Reboot the WAP
    • Rebuild the solutions (DLL and EXE).  Take the DLL and EXE from the 'Release' directory and copy it to the \Temp folder on the device
    • Unhook ActiveSync
    • Run the EXE from \Temp

    Does that run? 

     

  • No I've got the same message.

    And I also try with the 2 files in C:\temp\CaenRfidLib5\CaenRfidLib\_EXE

    Same message.

    I keep moving the demo code in my code and try to make it work.

    Best regards.

    Frédéric.

  • Ahhhh... I think you're forgetting the MDSDK file, PtxSdkCpp.dll (or in the case of recompilation against Visual Studio 2008, you'll need PtxSdkCpp2008.dll).  That project relies on our triggers, so you have to copy that over as well.

     

  • Exactly !!!!

    So now the demo start if I execute it on the Wap AND by the debugger !

    I don't know how it works, but it's launched !

    Thanks for your help I'll try noow to put this in my solution.

    Best regards.

    Frédéric.

  • Ok It works in realease but not in debug.

    I've got this errors

    CaenRfidLib.obj : error LNK2019: symbole externe non résolu recv référencé dans la fonction CAENRFID_GetNotification
    CaenRfidLib.obj : error LNK2019: symbole externe non résolu WSAGetLastError référencé dans la fonction CAENRecv
    CaenRfidLib.obj : error LNK2019: symbole externe non résolu select référencé dans la fonction CAENRecv
    CaenRfidLib.obj : error LNK2019: symbole externe non résolu send référencé dans la fonction _SendReceivePacket
    ioLib.obj : error LNK2019: symbole externe non résolu htonl référencé dans la fonction makeHeaderAVP
    ioLib.obj : error LNK2019: symbole externe non résolu htons référencé dans la fonction makeHeaderAVP
    ioLib.obj : error LNK2019: symbole externe non résolu ntohs référencé dans la fonction GetCommandID

    and

    c:\program files\psion\mobile devices sdk v5.4\cpp\PTXDllSpec.hpp(31) : fatal error C1189: #error :  The /MT compiler switch is required to use this SDK. Do not link to a different runtime library.  The preprocessor definitions _DEBUG and _DLL indicate that a different runtime is being used, please do not define them. See the release notice for further details.

    I compare the options of the 2 configurations.

    Thanks again for your help.

    Frédéric.

  • and I'm building the solution with VS2008 but the exe file works with the PtxSdkCpp.dll !!

    Best regards.

    Frédéric.

  • A2iTeam

    Ok It works in realease but not in debug.

    I've got this errors

    CaenRfidLib.obj : error LNK2019: symbole externe non résolu recv référencé dans la fonction CAENRFID_GetNotification
    CaenRfidLib.obj : error LNK2019: symbole externe non résolu WSAGetLastError référencé dans la fonction CAENRecv
    CaenRfidLib.obj : error LNK2019: symbole externe non résolu select référencé dans la fonction CAENRecv
    CaenRfidLib.obj : error LNK2019: symbole externe non résolu send référencé dans la fonction _SendReceivePacket
    ioLib.obj : error LNK2019: symbole externe non résolu htonl référencé dans la fonction makeHeaderAVP
    ioLib.obj : error LNK2019: symbole externe non résolu htons référencé dans la fonction makeHeaderAVP
    ioLib.obj : error LNK2019: symbole externe non résolu ntohs référencé dans la fonction GetCommandID

    Those are all functions from CaenRfidLib, which is built within the solution.  The debug version was NOT setup, so you have to go into project settings and duplicate the linker and compiler settings from the 'Release' variant.  That also includes linking to the MDSDK 5.4 (use the Visual Studio 2008 version please).

    A2iTeam

    c:\program files\psion\mobile devices sdk v5.4\cpp\PTXDllSpec.hpp(31) : fatal error C1189: #error :  The /MT compiler switch is required to use this SDK. Do not link to a different runtime library.  The preprocessor definitions _DEBUG and _DLL indicate that a different runtime is being used, please do not define them. See the release notice for further details.

    Please read this on that MT issue:  http://community.psion.com/knowledge/w/knowledgebase/1139.aspx

  • Please use the Visual Studio 2008 DLL.  You may not see errors yet, but you might later on...

  • Thank you Steven, the demo works in Debug mode.

    But I still have to use the other dll, the 2008 one doesn't work.

    Best regards.

    Frédéric.