Giter Club home page Giter Club logo

Comments (10)

micjahn avatar micjahn commented on June 16, 2024

Did you try a restart of Access and/or the whole computer?

from zxing.net.

BobTB avatar BobTB commented on June 16, 2024

Yes I did. It did not help.

from zxing.net.

micjahn avatar micjahn commented on June 16, 2024

which version of access do you use?

if it works it should like the following screenshot:
grafik

from zxing.net.

BobTB avatar BobTB commented on June 16, 2024

I had to install VisualStudio2017, run it as administrator, and build zxing.interop. After this it is visible in VBA.
Now the question is, how can this be done without installing visual studio and building it on every computer. The register.com if run from c:\Windows dir does not work (run as Administrator) It is registered successfully but not visible in VBA. I really don't know what is wrong. I checked the registry and it seems to be ok. What is the difference when running it with regasm vs building it from Visual Studio? I am on Windows 10 PRO 64 bit and am using a 32 bit office, so there should not be a problem.

I found this, http://edndoc.esri.com/arcobjects/9.2/NET/9826f81b-278c-49cc-a912-ab8d86f5e91e.htm
and it seems an installer has to be made for it to work. Any ideas?

from zxing.net.

BobTB avatar BobTB commented on June 16, 2024

I checked the registry and when run form VS2017 as described above it looks like this:

image

What I will try next is to put the dll somewhere else, not in c:\windows and run register.cmd on a computer which does not have visual studio installed, to see if it shows up in VBA (it does register no matter what, but does not show up in the VBA)

from zxing.net.

BobTB avatar BobTB commented on June 16, 2024

I also noticed that building in VS there is the tlb file created. Can this be the problem? Should I use regasm /tlb ?

from zxing.net.

BobTB avatar BobTB commented on June 16, 2024

It seems tlb is needed:
https://www.red-gate.com/simple-talk/dotnet/visual-studio/build-and-deploy-a-.net-com-assembly/

from zxing.net.

micjahn avatar micjahn commented on June 16, 2024

I thought the TLB file would be created because of the /tlb parameter:
"%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\regasm.exe" /codebase %~dp0zxing.interop.dll /tlb %~dp0zxing.interop.tlb

I have to check it again.

from zxing.net.

micjahn avatar micjahn commented on June 16, 2024

It looks to me that there is an issue if the register.cmd is executed on 64bit windows.
Please try it manually with the following command:
"%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\regasm.exe" /codebase C:\Windows\System32\zxing.interop.dll /tlb C:\Windows\System32\zxing.interop.tlb

from zxing.net.

jdoyle-fts avatar jdoyle-fts commented on June 16, 2024

I found that running register.cmd DID work OK (as long as the full path to the zxing.interop files did NOT contain spaces).
It did then appear as an available reference in my VB6 projects, but was listed just as

port of the java based barcode scanning library for .net (java zxing 29.07.2019 21:30:35)

and NOT as

ZXing.NET: port of the java based barcode scanning library for .net (java zxing 29.07.2019 21:30:35)

Before trying to rebuild the project in Visual Studio (as suggested above) try looking for this entry.
Hope this helps.

from zxing.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.