将 WinSCP 源文件导入 Microsoft Visual Studio 2008?

发布于 2024-08-06 06:54:54 字数 318 浏览 9 评论 0原文

我对编程还很陌生。我想下载一个开源项目并在我的 Microsoft Visual Studio 2008 中构建它。事实上,我尝试导入并构建应用程序 WinSCP:
https://sourceforge.net/projects/winscp/

但我没有工作。请有人帮助我并告诉我必须下载哪些文件(从 sourceforge)以及如何将这些文件导入到 Microsoft Visual Studio 中才能构建应用程序。非常感谢。大卫

I am pretty new to programming. I would like to download an open source project and build it in my Microsoft Visual Studio 2008. In fact, I tried to import and build the application WinSCP:
https://sourceforge.net/projects/winscp/

But I didn’t work. Please can somebody help me and tell me which files do I have to download (from sourceforge) and how to import these into Microsoft Visual Studio in order to build the application. Thank you a lot. David

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

情魔剑神 2024-08-13 06:54:54

WinSCP 似乎是用 Borland C++ Builder 或无论它今天的名称编写的。它不是标准的 C++ 程序,也不能在任何其他编译器中编译,因为它使用仅在 BCB 中存在的特殊功能。 (它使用 Delphi 风格的组件、VCL 以及 __property 关键字。)

不幸的是,许多开源项目对 Microsoft 开发工具的支持非常差。我想到的一个项目不太大并且具有可用的 MSVC 项目文件是 FreeType2,但那是一个库而不是应用程序,这可能使得它变得不太有趣。

WinSCP seems to be written in Borland C++ Builder or whatever it's called today. It's not a standard C++ program and wouldn't compile in any other compiler because it uses special features only present in BCB. (It uses Delphi-style components, VCL and thus the __property keyword.)

Unfortunately, a lot of Open Source projects have very poor support for Microsoft's development tools. One project that comes to mind as being not too big and having workable MSVC project files is FreeType2, but that's a library and not an application, which probably makes it not very interesting for toying around with.

会傲 2024-08-13 06:54:54

winscp 支持论坛中,他们说,你不能编译这个Visual Studio 中的项目。

In support forum of winscp, they say, that you can't compile this project in Visual Studio.

撩人痒 2024-08-13 06:54:54

Winscp 似乎是一个使用 makefile 而不是 sln 文件的 CPP 项目。 VS 使用 SLN 和 *proj 文件来控制构建等。一个好的开始方法是打开 VS,创建一个新的控制台项目(和解决方案)并在线学习一些教程。

如果您确实想了解大型项目在 VS 中的工作原理,请使用 IronRubyIronPython 甚至类似 诙谐 Twitter 客户端。

Winscp appears to be a CPP project using a makefile instead of a sln file. VS uses SLN and *proj files to control builds and such. A good way to start would be to open VS, create a new console project (and solution) and go through some tutorials online.

If you really want to just see how a large project works in VS, grab something like IronRuby or IronPython or even something like the Witty twitter client.

半﹌身腐败 2024-08-13 06:54:54

在一般情况下,不可能将程序的 C++ 源代码倒入 Visual Studio 中并期望它能够工作。操作系统之间的 C++ 编程环境差异太大。例如,如果您有一个可以在 Linux 上构建并正常运行的开源程序,则可能需要几周(或几个月)或编程工作才能使其在 Windows 上运行。

In the general case, it is not possible to pour the C++ sources of a program into Visual Studio and expect it to work. C++ programming environments are far too different between operating systems for that. If you have a open-source program which builds and runs fine on Linux (for example), it may need several weeks (or months) or programming effort to make it run on Windows.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文