BCB怎样编译VC写的程序

来源:百度知道 编辑:UC知道 时间:2024/05/11 03:20:56
手头有一个VC写的程序,只有.h和.lib文件,没有.dll,我的程序是BCB写的,想把这块VC程序嵌入到我的程序中来,静态调用试过了不可以
coff2omf已经试过了,生成的文件只有1KB,不能使用,

vc生成的库文件在bcb下用需要转换成bcb的库文件,转换程序在bcb的bin目录下的coff2omf(dos程序)命令行下直接运行该程序提供有关帮助:

C:\Program Files\Borland\CBuilder6\Bin>coff2omf
COFF to OMF Converter Version 1.0.0.74 Copyright (c) 1999, 2000 Inprise Corporat
ion
Syntax: COFF2OMF [options] InputFile OutputFile
-h, -? Display help
-q Quiet mode
-v Verbose mode
-r Remove (delete) output file if empty
-lib:xx Specify options for OMF import library generation:
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)

COFF2OMF will convert a COFF import library file (InputFile)
to the corresponding OMF type import library file (OutputFile).