C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[18275] Re:C++ Builder5.0에서 Visual C++을 위해 만들어놓은 LIB.DLL을 사용하고 싶습니다.
박세용 [sypark] 2809 읽음    2002-05-08 15:08
Coff2Omf 사용하세요.

아래는 빌더 헬프 가져온 겁니다.

-----------------------------------------------------------------------------------------

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)



choi 님이 쓰신 글 :
: 안녕하세요.
:
: 외부 하드웨어 제어를 하는데 제공되는 라이브러리가
: Visual C++을 위한 *.H *.Lib *.DLL 이 있는데 이 라이브러리를 Builder에서
: 사용하고 싶은데 잘 안되네요.
:
: 1. 제 코드에 해당 "*.H"를 include 하였고,
: 2. Project에 Add로 "*.LIB"를 A추가 하였고
: 3. Implib.exe 를 사용하여 LIB,DLL을 Import하였으나 (도스창에서 -c -a Option을 사용함)
:
: => Link시에 "[Link Error] Unresolved External 함수명 referenced from .. OBJ " 이란 에러가 나옴니다.
:
: 제 생각에는 Visual C++과 Builder의 cdcel이 서로 다르다는 어설픈 정보는 보았는데
: .. 뒤쪽의 몇몇 메세지들을 보았지만 무슨 내용인지 이해를 할수가 없고...
:
: 그리고 VC쪽의 코드는 건들수가 없습니다.
:
: 혹시 Visual C++용 LIB나 DLL을 Builder용으로 바꾸어주는 유틸리티나 방법을 알고 계신분
: 제발 도움좀 부탁 드립니다.
:
:
: 고수님들께....
:
:

+ -

관련 글 리스트
18270 C++ Builder5.0에서 Visual C++을 위해 만들어놓은 LIB.DLL을 사용하고 싶습니다. choi 2521 2002/05/08
30028     Re:C++ Builder5.0에서 Visual C++을 위해 만들어놓은 LIB.DLL을 사용하고 싶습니다. 하느리 2566 2002/05/08
30027     Re:C++ Builder5.0에서 Visual C++을 위해 만들어놓은 LIB.DLL을 사용하고 싶습니다. 하느리 2469 2002/05/08
30026     Re:C++ Builder5.0에서 Visual C++을 위해 만들어놓은 LIB.DLL을 사용하고 싶습니다. 하느리 2510 2002/05/08
18342     Re:청년백서...제 1장...visual c++ dll 때려잡기!!!! 임양규 6692 2002/05/10
18275     Re:C++ Builder5.0에서 Visual C++을 위해 만들어놓은 LIB.DLL을 사용하고 싶습니다. 박세용 2809 2002/05/08
18279         Re:Re:C++ Builder5.0에서 Visual C++을 위해 만들어놓은 LIB.DLL을 사용하고 싶습니다. 2853 2002/05/08
18283             Re:Re:Re:C++ Builder5.0에서 Visual C++을 위해 만들어놓은 LIB.DLL을 사용하고 싶습니다. swapper 3459 2002/05/08
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.