Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 930111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:16:59+00:00 2026-05-15T20:16:59+00:00

In a Project of mine, I use a Delphi Application which dynamically loads a

  • 0

In a Project of mine, I use a Delphi Application which dynamically loads a wrapper DLL (exporting C-Style functions) which in turn is statically link against a bunch of 3rd party DLLs.

It works fine on my test machines, but on my customers computer it failed to initialize with an error Message like “Couldn’t find entrypoint _somefunction@4AKKZ in TMYlibrary.dll”.

After some investigation with sysinternal’s process monitor, I realized that Windows would look fror DLLs in windows/sytem32 first, so if a DLL named similar to my DLL was present in system32, windows would pick that one and try to find my function entry points in it – which would fail.

Do you know of a possiblity to change windows’ DLL the searching behaviour?


Additional Information

  • [Update] The .exe file is located on the top level of the application’s folder tree.
  • The Wrapper and the 3rd-party-DLLs ar e both located in the Subfolder /bin of my apps Folder
  • Dev platform is windows XP/7, using VS2008 for the dlll and Delphi 2010 for the application
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T20:17:00+00:00Added an answer on May 15, 2026 at 8:17 pm

    I found another solution myself:

    SetDllDirectory adds an additional search path to the list of locations to look at.

    From http://msdn.microsoft.com/en-us/library/ms686203%28v=VS.85%29.aspx

    After calling SetDllDirectory, the DLL search path is:

    1. The directory from which the application loaded.
    2. The directory specified by the lpPathName parameter.
    3. The system directory. Use the GetSystemDirectory function to get the
      path of this directory. The name of
      this directory is System32.
    4. The 16-bit system directory. There is no function that obtains the
      path of this directory, but it is
      searched. The name of this directory
      is System.
    5. The Windows directory. Use the GetWindowsDirectory function to get
      the path of this directory.
    6. The directories that are listed in the PATH environment variable.

    (maybe i should do my googling before I post on SO 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a shell for a project of mine, which by design parses commands
In a project of mine the SQL statements that are executed against a SQL
An upcoming project of mine is considering a design that involves (what I'm calling)
I'm having trouble deciding if I want a project of mine to be web-based
I am currently thinking about open-sourcing a project of mine and am in the
I'm trying to learn TDD by applying it to a simple project of mine.
Project Darkstar was the topic of the monthly JavaSIG meeting down at the Google
Every project invariably needs some type of reporting functionality. From a foreach loop in
A project I'm working on at the moment involves refactoring a C# Com Object
My project is based on spring framework 2.5.4. And I try to add aspects

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.