Borland 5.0 项目文件的格式是什么?
我有一个旧的 Borland 项目,我想将其移植到 Visual Studio 2008 。 有没有办法以人类可读的格式转储 .ide 文件中的源文件、编译选项和依赖项信息?
我想要比“生成 Makefile”选项更全面的东西。
I have an old Borland project which I would like to port to Visual Studio 2008. Is there a way to dump, in a human-readable format, the source file, compile options and dependency information from a .ide file?
I'd like something a bit more comprehensive than the 'Generate Makefile' option.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为在 Visual Studio 中创建一个新项目然后将所有源文件和库添加到其中会更容易。
我认为 Visual Studio 不支持 OWL (或任何 Borland 库)。
I think it will be easier just to create a new project in Visual Studio and then add all your source files and libraries into it.
I don't think Visual Studio supports OWL (or any Borland libraries).
如果这是一个 VCL 应用程序,则选项和设置是您最不用担心的,因为 VCL API与MFC完全不同。
Borland的很多编译器选项实际上都是为了提供与MFC的兼容性。 除此之外,编译器选项实际上没有太多重叠。
我偶尔会向同事提供 Borland 项目的 Visual Studio“解决方案”版本,通常只需选择解决方案中的 .cpp 文件并设置任何全局定义(请注意,这些是控制台模式程序,没有 GUI)。
更大的问题是流类中的微小不一致,
value.h 和 Microsoft 已删除的已弃用函数。
也就是说,_stricmp()、_chdir()、_mkdir() _getcwd() 而不是 stricmp() chdir() mkdir() getcwd() 等...
我通常没有发现各种 Borland 生成的 makefile 与任何 makefile 非常兼容。其他编译器(或者甚至使用 Borland 编译器)。
If this is a VCL application, options and settings are the least of your concerns, since the VCL API is completely different from MFC.
A lot of the Borland compiler options are actually to provide compatibility with MFC. Other than that there isn't actually much overlap in the compiler options.
I occasionally provide Visual Studio 'solution' versions of my Borland projects to colleagues, and normally is simply a matter of selection the .cpp files in the solution and setting any global defines (these is console mode programs mind you, no GUI).
The greater issue is minor inconsistencies in stream classes,
values.h and deprecated functions that Microsoft has dropped.
That is, _stricmp(), _chdir(), _mkdir() _getcwd() instead of stricmp() chdir() mkdir() getcwd(), etc...
I have generally not found the various Borland generated makefiles very compatible with any other compiler (or even with the Borland compiler for that matter).
我不知道 Borland 5、6 或最新的编译器(我使用的最新版本是 1994/95 年的 Borland C++ 3.1 ...),但是如果您有机会生成 Makefile,也许最好的解决方案是使用 Borland makefile 手动编写 NMAKE 兼容的 makefile(如果它不是太大)。
另一种选择是手动导入标头、源文件并编辑项目(兼容源和编译设置),直到构建成功。 我认为这可以在短时间内实现。
您的项目与哪些依赖项相关? VCL? MFC? 只是标准库?
I don't know about Borland 5, 6 or latest compilers (latest version I've used is Borland C++ 3.1 back in 1994/95 ...), but if you have the chance to generate a Makefile maybe the best solution is to use that Borland makefile to write a NMAKE compatible makefile by hand, if it's not too large.
Another option is to manually import the header, source files and edit the project (compatibilize source and compilation settings) until the build is successful. I think this can be achieved in a short time.
To what dependencies is your project tied to? VCL? MFC? Just standard libs?