Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FabFr opened this issue Dec 24, 2021 · 9 comments
Open

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

FabFr opened this issue Dec 24, 2021 · 9 comments

Comments

@FabFr
Copy link

FabFr commented Dec 24, 2021

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
Copy link

ovt001 commented Jan 20, 2022

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

@ovt001
Copy link

ovt001 commented Jan 24, 2022

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
Copy link
Author

FabFr commented Jan 24, 2022

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
Copy link
Owner

jdt commented Jan 24, 2022

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
Copy link

ovt001 commented Jan 24, 2022 via email

@FabFr
Copy link
Author

FabFr commented Jan 24, 2022

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
Copy link
Author

FabFr commented Jan 24, 2022

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
Copy link
Owner

jdt commented Jan 24, 2022

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
Copy link
Author

FabFr commented Jan 24, 2022

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants