Hi all;
I’m trying to communicate with Code bar reader From Nav using Automation Variable. I created a DLL project , when i compile on my own PC the result was perfect. When i tried it on other PC with sames configuration .net version …etc i got always the same error :
:
i used the flowing code to register the DLL :
SET GACUTIL="C:\Program Files (X86)\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe"
SET REGASM="C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\regasm.exe"
%REGASM% CodeBarReader.dll /tlb:CodeBarReader.tlb
%GACUTIL% /i CodeBarReader.dll
Has any body experienced such an error or had tried automation variables?
How can i fix that?
regards
i used Visual Studio 2010 to compile the project.
the Principal DLL that a i use from nav is CodeBarReader.dll, this one use a third-party dll wich is BCP8000.dll
Hi,
there can be millions of issues. You can try to perhaps run this automation from VBA , that might give you more idea or Vis. Studio.
g.
Thanks for your replay ,
I tried it on Visual Studio and it works fine , the problem is that DLL could not be registered properly on other PCs.
Finally i found the solution.
The best and the easiest way is to create a Setup Project on Visual Studio, you should care about the .net version that you are using on both setup and Dll project to avoid any problem.
Check this out : http://www.codeproject.com/Articles/28657/Registering-a-COM-DLL-with-VS-A-Walk-Through
This works for me,