|
-
May 12th, 2002, 12:26 PM
#1
Thread Starter
Fanatic Member
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"
-
May 12th, 2002, 12:29 PM
#2
Fanatic Member
May be a silly question, but is the DLL in the same folder as the .exe?
Alcohol & calculus don't mix.
Never drink & derive.
-
May 12th, 2002, 01:04 PM
#3
Thread Starter
Fanatic Member
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"
-
May 12th, 2002, 01:18 PM
#4
Monday Morning Lunatic
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
-
May 12th, 2002, 02:44 PM
#5
Thread Starter
Fanatic Member
"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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|