mr_gees100_peas wrote:
> I've downloaded a DLL utility for an USB device. We wrote a test program and 
> compiled and ran it. So far so good. the only issue is that the program only 
> runs if the DLL that controls the device is located in the same directory 
> where the executable is. I would like to specify the program where to look 
> for the DLL. Is there a way to do this in visual c++ express 2008? Is there 
> another way? 

Look at the rules for the LoadLibrary() API call.  You can put your DLL 
in any of those locations.  If you make the LoadLibrary() call yourself, 
you can control where it looks by hardcoding the path (or finding the 
DLL through some means you devise) but I don't recommend this method as 
such things tend to violate the Microsoft Windows development guidelines.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to