Results 1 to 5 of 5

Thread: DLL LIB problem ("cant find DLL")

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2001
    Posts
    843

    Angry DLL LIB problem ("cant find DLL")

    Oh boy.... I have been on this all morning and I cant figure it out what wrong....

    I wrote a MFC DLL app. A couple of simple classes. I compiled it and created the DLL and LIB files. Evrything nice....
    Then I create an app to test it. A MFC Exe. I add the LIB file to the project, include the header files for the classes that I use from the DLL and it should work... but it tells me that it cant find the DLL. It sends me 3 message boxes saying it cant find the DLL, that the program cant be executed and more blah blah!

    What else do I have to do besided what I did to use the DLL?

    Thanks for your help!:
    "The difference between mad and genius is the success"

  2. #2
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    May be a silly question, but is the DLL in the same folder as the .exe?
    Alcohol & calculus don't mix.
    Never drink & derive.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2001
    Posts
    843
    hehe... ooppss.... the question isnt that silly since I didnt know they have to be in the same folder....

    THANKS!
    "The difference between mad and genius is the success"

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    They don't have to be in the same folder, they just have to be somewhere on Windows's DLL loader search path (which includes things like %WINDOWS%, %WINDOWS%\system[32], the local directory, etc.).
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2001
    Posts
    843
    nice tip... thank you
    "The difference between mad and genius is the success"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width