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
  1. Home
  2. General Programming
  3. Windows API
  4. LoadLibrary error 127 on W7 X64

LoadLibrary error 127 on W7 X64

Scheduled Pinned Locked Moved Windows API
sqlitehelpcsharpvisual-studioalgorithms
3 Posts 2 Posters 10 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.
  • D Offline
    D Offline
    Dusan Paulovic
    wrote on last edited by
    #1

    Hi all, I am frustrated after week of searching for reason to unresolved import error from LoadLibrary function trying to load my own DLL compiled with /MD (which uses custom [same computer and same VS2005] compiles of Proj 4, Geos 3.3.1, SpatiaLite 3.0.0 beta1 and SQLite3 - all compiled with /MD as well). I have looked into it using Dependency Walker and the reason surprisingly seems to be kernel32.dll. There are missing following imports: InterlockedCompareExchange InterlockedDecrement InterlockedIncrement InterlockedExchange I do not use those in my code, but for example msvcr80.dll internally does. DLLs work fine on my Vista x64 notebook and also work fine on another x64 Win7, but not on mine - compile machine. I have installed correct redist. and so on, but the main problem is that IT DOES NOT WORK ON DEV MACHINE!!! Did you ever seen this? I can compile it, but can not load it :( I can load separately Proj, Geos and SQLite, but can not load SpatiaLite. My system: Windows 7 x64 Visual Studio 2005 (with needed service packs) Thanks, Dusan

    Richard Andrew x64R 1 Reply Last reply
    0
    • D Dusan Paulovic

      Hi all, I am frustrated after week of searching for reason to unresolved import error from LoadLibrary function trying to load my own DLL compiled with /MD (which uses custom [same computer and same VS2005] compiles of Proj 4, Geos 3.3.1, SpatiaLite 3.0.0 beta1 and SQLite3 - all compiled with /MD as well). I have looked into it using Dependency Walker and the reason surprisingly seems to be kernel32.dll. There are missing following imports: InterlockedCompareExchange InterlockedDecrement InterlockedIncrement InterlockedExchange I do not use those in my code, but for example msvcr80.dll internally does. DLLs work fine on my Vista x64 notebook and also work fine on another x64 Win7, but not on mine - compile machine. I have installed correct redist. and so on, but the main problem is that IT DOES NOT WORK ON DEV MACHINE!!! Did you ever seen this? I can compile it, but can not load it :( I can load separately Proj, Geos and SQLite, but can not load SpatiaLite. My system: Windows 7 x64 Visual Studio 2005 (with needed service packs) Thanks, Dusan

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      You did not say exactly what the LoadLibrary error is. Have you resolved this already?

      The difficult we do right away... ...the impossible takes slightly longer.

      D 1 Reply Last reply
      0
      • Richard Andrew x64R Richard Andrew x64

        You did not say exactly what the LoadLibrary error is. Have you resolved this already?

        The difficult we do right away... ...the impossible takes slightly longer.

        D Offline
        D Offline
        Dusan Paulovic
        wrote on last edited by
        #3

        Yes I did. Error was due to different version of SQLite than I link in system32 directory.

        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