Error E2188 eidstructures.hpp 26: Expression syntax
Error E2257 eidstructures.hpp 64: , expected
Error E2188 eidstructures.hpp 73: Expression syntax
Error E2257 eidstructures.hpp 81: , expected
Error E2188 eidstructures.hpp 90: Expression syntax
Error E2257 eidstructures.hpp 96: , expected
Error E2188 eidstructures.hpp 105: Expression syntax
Error E2257 eidstructures.hpp 111: , expected
Error E2108 eidstructures.hpp 126: Improper use of typedef 'TManagerProc'
Error E2139 eidstructures.hpp 126: Declaration missing ;
Error E2257 eidstructures.hpp 140: , expected

// Certificate, stored on EID card
typedef EID_Certificate  TEIDCertificate;
// Certificate, stored on EID card
typedef EID_Certificate *PEIDCertificate;


//Callback procedure for card events
typedef void ( __stdcall * TManagerProc)(void);
//Callback procedure for card error event
typedef void ( __stdcall * TManagerErrorProc)(unsigned ErrorCode);

//Data manager is used to pass the callback procedures pointers to EIDNative
struct TManagerData
{
public:
    // Card is inserted callback procedure
    TManagerProc CardInserted;
    // Card was activated callback procedure
    TManagerProc CardActive;
    // Card was removed from the reader  callback procedure
    TManagerProc CardRemoved;
    // Invalid card was inserted into the reader callback procedure
    TManagerProc CardInvalid;
    // There is no card in the reader and reader is waiting for the next operation
    TManagerProc ReaderWaiting;
    // Card operation error  callback procedure
    TManagerErrorProc Error;
} ;

//Data manager is used to pass the callback procedures pointers to EIDNative
typedef TManagerData *PManagerData;
//Data manager is used to pass the callback procedures pointers to EIDNative
typedef TManagerData MANAGER_DATA;

#endif  // _EIDSTRUCTURES_H_

Wath is wrong on this hpp file ?

Recommended Answers

All 4 Replies

It seems there is no error in above line.Error might be in lines that you have not included.Check that.
As per error,you are missing commas(,)check that

Error E2141 eiddemo.prg 13: Declaration syntax error in function HB_FUN_MyFunc
Error E2451 eiddemo.prg 30: Undefined symbol 'data' in function HB_FUN_MyFunc

#pragma BEGINDUMP
#include <stdio.h>

#include "stdafx.h"
 #include "hbapi.h"
 #include "hbapiitm.h"

 HB_FUNC(MyFunc) {

int _tmain(int argc, _TCHAR* argv[])


   TEIDIdentity data;
   char readerName[60];

   InitReaderEx(NULL);

   if (GetReadersCount() == 0)
   {
      printf("There is no reader connected to PC\n");
   }
   else
   {
      GetReaderName(0, readerName, 60);
      printf("Reader name: %s\n", readerName);

     // WaitForCard(5);
      if (IsEIDCard())
      {
         ReadIDData(&data);
         printf("First Name: %s\n", data.firstName1);
         printf("Last  Name: %s\n", data.name);

      }
      else
         printf("No eID card detected\n");
   }

   DoneReaderEx();


   return ;
} 

Sorry , these are the errors in the first

why does line 8 exist??? You probably need to delete that line. And line 11 is missing open brace {

line 42: need to add a return value, e.g. "return 0"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.