Hi
I need to read the data of the Portuguese citizen's card.
It is a card with a chip that contains the citizen's data (name, address, etc).
For this there is a DLL but I can not use it because I have no experience in this type of programming.
The dll is called "pteidlib_dotnet" and is installed in ProgramFiles \ Portugal Identity Card \ sdk \ dotnet.
It is downloaded from this link:
www.autenticacao.gov.pt/.../55dd1efb-6bc9-4142-a82a-f84d1f2c0685)
According to the manual the first thing to do is to initialize the SDK.
Example given in C #
namespace PTEIDSample {
class Sample {
(...)
public static void Main (string [] args) {
PTEID_ReaderSet.initSDK ();
(...)
PTEID_ReaderSet.releaseSDK ();
}
}
}
One of the things that happens to me is that I can not use the PTEID_ReaderSet.initSDK function because it does not appear to me when I write the function.
I do not know if I lack any function or not.
To read some card data have the following in C #:
(...)
PTEID_EIDCard card = context.getEIDCard ();
PTEID_EId eid = card.getID ();
string name = eid.getGivenName ();
string nrCC = eid.getDocumentNumber ();
(...)
I think if I can start the process then I will be able to move forward. But until then...
Let's see if anyone can help me to go beyond this stage.
Thank you.