Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > C/C++: Общие вопросы > Подключить библиотеку VC в CBuilder


Автор: Гость_Kaser 5.11.2003, 15:40
Имеется библиотека с исходниками на VC, так же прилагается lib-файл. Может, кому приходилось подключать эти файлы в Builder. Или знает какой конвертор, чтобы конвертнуть lib-файл. (и ну этот source).
На сколько я могу судить, визуальные компоненты не используются.
Заранее спасибо, Kaser inbo@yandex.ru

Автор: Ars 5.11.2003, 16:12
В билдере есть такая утилита:
Цитата
Coff2Omf is a command line tool that converts a COFF import library file (InputFile) to a corresponding OMF import library file (OutputFile). Coff2Omf.exe is located in the C++Builder BIN directory.  The syntax is:

Coff2Omf [options] InputFile OutputFile

Coff2Omf converts the publicly exported symbols in the COFF import library to a corresponding set of symbols in the OMF import library.  Coff2Omf  enables C++Builder users to link to Microsoft and other third-party DLLs that use the COFF format. Coff2Omf does not convert .OBJ files.

Run the Coff2Omf tool on a COFF import library created for a specific DLL, and use the resulting import library to link OMF format EXEs and DLLs to the COFF DLL. The switches for Coff2Omf are:

-q - Quiet mode (converts without writing tool and copyright information to standard output)
-v - Dump of selected symbols (dumps the symbols that have been converted to standard output which can be redirected to an output file)
-d - Delete output file if empty (deletes the output file there is an error and the conversion results in an empty file)
-h, -?  Display help
-r - Remove (delete) output file if empty

-lib:xx Specify options for OMF import library generation:
xx can be:

·  ms - Allow entries that have MS C++ name mangling (default: no)
·  st - Normalize names instead of aliasing MS stdcall mangling
·  ca - Don't perform MS cdecl aliasing (default is to alias)

Как-то давно я пытался ее заюзать, но ни к чему хорошему это не привело sad.gif
Да и lib'а - вещь не вечная: изменился код - изменилась lib'а.
Поэтому рекомендую использовать LoadLibrary

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)