VC7.0中设计所需的库帮助 [英] Help on library required designed in VC7.0
问题描述
我有一个库(.lib)文件,该文件是在Visual Studio 2002(7.0)中使用MFC7.0设计的.现在,我需要使用MFC 7.1从Visual Studio 2003(7.1)链接该库,并从该库中调用函数.尝试链接库时,出现以下错误:无法打开文件:mfc70d.lib".可以理解该库引用的是7.0版文件.我的问题是:如何从VS 7.1链接库并调用函数.如果有人可以告诉我该怎么做,那将是一个很大的帮助?
在此先感谢.
Hi,
I have a library(.lib) file which is designed in Visual Studio 2002(7.0) using MFC7.0. Now I need to link that library From Visual Studio 2003 (7.1) using MFC 7.1 and call functions from that library. While trying to link the library, I am getting this error: "Unable to open file : mfc70d.lib".This is understandable that the library refers the files of version 7.0. My question is: How can I link the library from VS 7.1 and call the functions. It would be a great help if anybody could tell me how can I do that?
Thanks in advance.
推荐答案
这取决于-我只能假定您没有该库的源代码.如果您真的很绝望,可以尝试以下方法:
从lib文件导出目标文件.
尝试从 Fee Disassemblers [
It depends - I can only assume that you don''t have the source code for the library. You can try, if you are really desparate, the following:
Export object files from the lib file.
disassemble trying one of the tools from Fee Disassemblers[^] that seems to fit the requirements.
alter embedded library references, and assemble and rebuid your library.
Will it work? I haven''t the faintest idea ...
Another approach would be to export the functionality from your VS2002 library as a dll with a flat c - not c++ api.
Best of luck
Espen Harlinn
这篇关于VC7.0中设计所需的库帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!