Проблема следующая, есть DLL и header, чтобы вызвать ф-ции из DLL используется explicit linking (LoadLibrary, GetProcAddress и тд) хотелось бы использовать implicit linking
Читаю MSDN:
To implicitly link to a DLL, executables must obtain the following from the provider of the DLL:
A header file (.H file) containing the declarations of the exported functions and/or C++ classes.
An import library (.LIB files) to link with. (The linker creates the import library when the DLL is built.)
The actual DLL (.DLL file).
А теперь вопрос, как можно создать import library (.LIB files) или иным образом решить проблему что-бы использовать implicit linking
Спасибо
Здравствуйте, PnP, Вы писали:
PnP>А теперь вопрос, как можно создать import library (.LIB files) или иным образом решить проблему что-бы использовать implicit linking здесь
Здравствуйте, PnP, Вы писали:
PnP>Проблема следующая, есть DLL и header, чтобы вызвать ф-ции из DLL используется explicit linking (LoadLibrary, GetProcAddress и тд) хотелось бы использовать implicit linking
PnP>Читаю MSDN: PnP>To implicitly link to a DLL, executables must obtain the following from the provider of the DLL:
PnP>A header file (.H file) containing the declarations of the exported functions and/or C++ classes. PnP>An import library (.LIB files) to link with. (The linker creates the import library when the DLL is built.) PnP>The actual DLL (.DLL file).
PnP>А теперь вопрос, как можно создать import library (.LIB files) или иным образом решить проблему что-бы использовать implicit linking PnP>Спасибо
В настройках проекта можно разрешить/запретить авотмотичекое создание LIB.
В VS2003: Project settings -> Linker -> Advanced -> Import Library.
Здравствуйте, PnP, Вы писали:
PnP>Проблема следующая, есть DLL и header, чтобы вызвать ф-ции из DLL используется explicit linking (LoadLibrary, GetProcAddress и тд) хотелось бы использовать implicit linking
PnP>Читаю MSDN: PnP>To implicitly link to a DLL, executables must obtain the following from the provider of the DLL:
PnP>A header file (.H file) containing the declarations of the exported functions and/or C++ classes. PnP>An import library (.LIB files) to link with. (The linker creates the import library when the DLL is built.) PnP>The actual DLL (.DLL file).
PnP>А теперь вопрос, как можно создать import library (.LIB files) или иным образом решить проблему что-бы использовать implicit linking PnP>Спасибо
есть утилита, называется implib.exe. С ее помощью можно сделать библиотеку импорта