Здравствуйте, shdave, Вы писали:
S>Можно переписать используя динамическую загрузку, LoadLibrary и конкретно указывать путь к dll, но хотелось бы не делать лишную работу, возможно решение на поверхности, буду рад любым коментариям!
Нужно переписать, т.к. если не указан путь к библиотеке (что имеет место быть при статической линковке) винда ищет в следующих местах (MSDN рулит):
1. The directory from which the application loaded.
2. The current directory.
3. Windows 95/98/Me: The Windows system directory. Use the GetSystemDirectory function to get the path of this directory.
Windows NT/2000 or later: The 32-bit Windows system directory. Use the GetSystemDirectory function to get the path of this directory. The name of this directory is SYSTEM32.
4. Windows NT/2000 or later: The 16-bit Windows system directory. There is no function that obtains the path of this directory, but it is searched. The name of this directory is SYSTEM.
5. The Windows directory. Use the GetWindowsDirectory function to get the path of this directory.
6. The directories that are listed in the PATH environment variable.