Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. DLL not found !!!

DLL not found !!!

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BlackDice
    wrote on last edited by
    #1

    I have a dll that I created in C++ and declare the function in a VB .exe and it works just fine. But when I give the folder to somebody else and have them run the .exe with the dll in the same folder I get a 'run-time error 53: Export.DLL not found'. Even if I hard code it and specify it with an absolute path I still get the same error. This dll doesn't have to be registered. Does anyone know what's going on? If it's broken, I probably did it bdiamond

    L _ 2 Replies Last reply
    0
    • B BlackDice

      I have a dll that I created in C++ and declare the function in a VB .exe and it works just fine. But when I give the folder to somebody else and have them run the .exe with the dll in the same folder I get a 'run-time error 53: Export.DLL not found'. Even if I hard code it and specify it with an absolute path I still get the same error. This dll doesn't have to be registered. Does anyone know what's going on? If it's broken, I probably did it bdiamond

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Is your dll using any other dlls? Maybe they can not be loaded but final efect is that head dll error is reported. For example if you build dll in Debug and you are distributing it on computer without same developer tool. (there are only release version) It will not to work. that sometime happen

      B 1 Reply Last reply
      0
      • B BlackDice

        I have a dll that I created in C++ and declare the function in a VB .exe and it works just fine. But when I give the folder to somebody else and have them run the .exe with the dll in the same folder I get a 'run-time error 53: Export.DLL not found'. Even if I hard code it and specify it with an absolute path I still get the same error. This dll doesn't have to be registered. Does anyone know what's going on? If it's broken, I probably did it bdiamond

        _ Offline
        _ Offline
        _moved
        wrote on last edited by
        #3

        some years ago i’ve coded dlls for VB 6.0 and had the same trouble,I don’t know why an VB app needs full path to dll even if dll is in its folder. you can use some APIs like GetModuleFileName to get full path to your application then append dll name to it. I don’t know if there is some better way to solve it I’m not VB coder.

        1 Reply Last reply
        0
        • L Lost User

          Is your dll using any other dlls? Maybe they can not be loaded but final efect is that head dll error is reported. For example if you build dll in Debug and you are distributing it on computer without same developer tool. (there are only release version) It will not to work. that sometime happen

          B Offline
          B Offline
          BlackDice
          wrote on last edited by
          #4

          I made the DLL with MFC statically linked, so it shouldn't be that. what about #include files? For instance, I'm using the MySQL.h header file and linking to its .lib file when compiling my DLL, but they are not included in the project. Should I do that? thanks for your help If it's broken, I probably did it bdiamond

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups