+ Reply to Thread
Results 1 to 3 of 3

Thread: C++ dll help

  1. #1
    revolupowered is offline x10Hosting Member revolupowered is an unknown quantity at this point
    Join Date
    Apr 2010
    Posts
    4

    Post C++ dll help

    I'm in the process of making a Multi-player module for a space simulator called orbiter.

    how do tell my program to look in a directory for my DLL, at the moment it loads in the same folder as the .exe, I need to change this. I'm using Implicit Linking.



    Home: http://surgesoft.x10hosting.com/


    Thanks

  2. #2
    spadija's Avatar
    spadija is offline x10Hosting Member spadija is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    48

    Re: C++ dll help

    It's hard to tell exactly what you are trying to do and how you are trying to do it without some code, but you could try using relative paths. If that doesn't work, you could try finding the absolute path to the DLL by appending the relative path to the working directory.

  3. #3
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: C++ dll help

    The folders MS Windows searches a DLL for are listed in "Search Path Used by Windows to Locate a DLL". One thing you can do is set the current directory in the shortcut used to launch the executable. If the DLL isn't in any of the locations listed in the "Search Path" document, you'll have to either place it in one or switch to explicit linking.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers