Error using an DLL

Author: nilo.fontes@hotmail.com (nilofontes)

Hi, i'm trying use an DLL that was made by myself, but when i call on Uniface, this error appears 

Unable to load C:\disk\ConsultaNota\ConsultaNFe.dll; error 126 ('Não foi possível encontrar o módulo especificado.') *** The DLL exists but it cannot be loaded. There may be a problem *** with dependencies or entrypoints. Check the DLL with Dependency Walker. Unable to locate: p_consulta_nfe *** The application has tried to dynamically activate this 3GL function but could not find it. *** Check if you have an entry for this function in the [USER_3GL] section of your assignment file.

to make the DLL, i use a DLL that already are in use, i already modified the ASN file and generated the signature manually. remembering that i use the same DLL in other applications. someone have some idea to do now? Thanks by now and sorry for the english

4 Comments

  1. Hi, The error 126 means that your DLL has a dependency to another module (DLL) that cannot be found. If I encounter such an issue then I use the utility Dependency Walker to figure out which dependent module is missing. So you should see what the problem is when you open your DLL (ConsultaNFe.dll) in the Dependency Walker. Hope this helps. Kind regards, Daniel


    Author: diseli (daniel.iseli@uniface.com)
  2. What about this tools: https://technet.microsoft.com/de-de/sysinternals/bb795533.aspx In particular the process monitor is a usefull tool to find missing files Ingo


    Author: istiller (i2stiller@gmx.de)
  3. If you are not able to access the dll file in your system then and your system showing an error when you are access the dll file then download Vorbisfile.dll it will be definitely solve your problem. I also use this when i was facing the problem of error when using dll.


    Author: khushbu (khushbukashyap443@gmail.com)
  4. khushbu said If you are not able to access the dll file in your system then and your system showing an error when you are access the dll file then download Vorbisfile.dll it will be definitely solve your problem. I also use this when i was facing the problem of error when using dll.  

    Thanks for your contribution, but it is quite beside the point. Uniface definitely does not use VorbisFile.dll, and installing that DLL will not do anything to solve this problem. Unless the original poster's dll (ConsultaNFe.dll) depends on it, but that seems very unlikely.


    Author: Chris Breemer (chris.breemer@uniface.com)