I have a project which accesses a .dll. I have sucessfully accessed the dll in the past by packaging it under the subdirectory with my project. I have declared and used this dll without any problems.
Now I am working on a new project on a new Windows 2000 machine. The exact same code to declare this dll and call the functions within it. The program will run correctly after I start VB -but only the first time. If I try to run the program (from the design environment) a second time, I get the error message "File Not Found: myfile.dll". The program will again run correctly when when I re-start VB, but it is a real pain to have to restart the design environment every time I test my app.
I have tried registering the dll with regsvr32, but I get the dreaded "Loadlibrary failed - the specified module can not be found" error. I believe only certain kinds of DLL's can be registered this way, but I know I've called functions from this dll in the past -using these same function call. What's going on here?
Best regards,
Ryan
Now I am working on a new project on a new Windows 2000 machine. The exact same code to declare this dll and call the functions within it. The program will run correctly after I start VB -but only the first time. If I try to run the program (from the design environment) a second time, I get the error message "File Not Found: myfile.dll". The program will again run correctly when when I re-start VB, but it is a real pain to have to restart the design environment every time I test my app.
I have tried registering the dll with regsvr32, but I get the dreaded "Loadlibrary failed - the specified module can not be found" error. I believe only certain kinds of DLL's can be registered this way, but I know I've called functions from this dll in the past -using these same function call. What's going on here?
Best regards,
Ryan