jdt / EID.Wrapper

A COM Wrapper for the Belgian EID to allow legacy VBA to access the EID card data
MIT License
2 stars 2 forks source link

Unregistred class error, on the 'Set data = wrapper.GetCardData() #14

Open FabFr opened 2 years ago

FabFr commented 2 years ago

Hello,

As many, I'm looking for a new dll to be able to read new Belgium identity card. I use VB6 and was happy to find this great share community. I tried the given code to read Belgium card, but I'm having trouble, here's my test code :

erreur unregistred class

Of course, the EID.Wrapper.tlb is well referenced in the project. Unfortunately, on the line : Set data = wrapper.GetCardData() return the error : unregistered class

Is there something missing ? A module class ? I thought everything was in the dll.

I'm sorry, but I really don't understand what's missing. Hope you can help me to understand. Many thanks in advance, have all a nice chrismas day,

Fab

ovt001 commented 2 years ago

Hello Fab, I have the same issue. Did you find the solution at this problem? thanks

ovt001 commented 2 years ago

Hello, I find the solution. I used the wrong self register exe. My office is a 32bits then I need to use the x86 version of the self register executable. Now it works fine. Regards O.

FabFr commented 2 years ago

Hello ovt001,

Thank you for your answer. I'm not sure to understand what you mean. As the dll is not readable for VB or VBA, I've used Regasm.exe which create a EID.wrapper.tlb file, that can be used in reference by VB or VBA. At this point, I have a unregistred class error as I described.

So, what self register executable do you use ? Can you please be more spécific ?

Thank you again,

Fab

jdt commented 2 years ago

Hi FabFr

did you follow the Installation steps specified in the ReadMe? The zipfile that contains the DLL also contains a utility that can be used to install and register the DLL so it can be referenced correctly from your application. That tool does the required RegAsm work for you. Also, make sure you use the right version (it's most likely 32-bit as 64-bit Office installations are not that common) as outlined in the readme.

ovt001 commented 2 years ago

Hello Fab,Call me. It will go faster+32 476 47 00 84Envoyé depuis mon appareil Galaxy -------- Message d'origine --------De : FabFr @.> Date : 24/01/22 15:44 (GMT+01:00) À : "jdt/EID.Wrapper" @.> Cc : ovt001 @.>, Comment @.> Objet : Re: [jdt/EID.Wrapper] Unregistred class error, on the 'Set data = wrapper.GetCardData() (Issue #14)

Hello ovt001,

Thank you for your answer.

I'm not sure to understand what you mean.

As the dll is not readable for VB or VBA, I've used Regasm.exe which create a EID.wrapper.tlb file, that can be used in reference by VB or VBA. At this point, I have a unregistred class error as I described.

So, what self register executable do you use ?

Can you please be more spécific ?

Thank you again,

Fab

—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you commented.Message ID: @.***>

FabFr commented 2 years ago

Hello jdt,

Yes, now I remember I've used EID.Wrapper.Register.exe which automatically create the .tlb file. So this EID.wrapper.tlb is well accepted in the reference project. But I don't understand how I can find this two version ? In the Release.zip file, there is only one EID.Wrapper.Register.exe ? Where can I find the link distinguishing 32-bit DLL or 64-bit DLL version ?

I'm sorry to bother you, thank you for help,

Fab

Hi FabFr

did you follow the Installation steps specified in the ReadMe? The zipfile that contains the DLL also contains a utility that can be used to install and register the DLL so it can be referenced correctly from your application. That tool does the required RegAsm work for you. Also, make sure you use the right version (it's most likely 32-bit as 64-bit Office installations are not that common) as outlined in the readme.

FabFr commented 2 years ago

Hello Fab,Call me. It will go faster+32 476 47 00 84

Thank you ovt001, I understand the problem now. I just have to find where are 32-bit or 64-bit version.

Fab

jdt commented 2 years ago

If you download the Release.zip from the repository and unzip that, inside is a Release folder with two subdirectories: x64 and x86. You need to run the EID.Wrapper.Register.exe from the x86 folder if you have a 32-bit version of Office (which is probably the case)

FabFr commented 2 years ago

Thank you very much jdt,

It works fine now. I think the first time I've downloaded the zip file, I should have deleted the 32-bit directory or something like that. Sorry and confused for this stupid trouble I cannot fix by myself.

I wish you the best,