implicit linking
От: PnP Германия  
Дата: 27.03.08 14:09
Оценка:
Проблема следующая, есть 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
Спасибо
Re: implicit linking
От: Vain Россия google.ru
Дата: 27.03.08 15:31
Оценка:
Здравствуйте, PnP, Вы писали:

PnP>А теперь вопрос, как можно создать import library (.LIB files) или иным образом решить проблему что-бы использовать implicit linking

здесь
Автор: Pumba
Дата: 20.05.03

PnP>Спасибо
А вообще, на всё есть поиск.
[In theory there is no difference between theory and practice. In
practice there is.]
[Даю очевидные ответы на риторические вопросы]
Re: implicit linking
От: Bell Россия  
Дата: 27.03.08 16:08
Оценка:
Здравствуйте, 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.
Любите книгу — источник знаний (с) М.Горький
Re: implicit linking
От: serij123 Россия  
Дата: 23.07.08 07:24
Оценка:
Здравствуйте, 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. С ее помощью можно сделать библиотеку импорта
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.