2

I'm new to programming with DirectX and I want to know how should I create a DirectX game.

Will there be a way to package all the required files for people to run without the need for additional software? I'll add the exception that they'll need to install DirectX. What I mean is, when I try to run an executable version of a DirectX program on a computer that isn't setup to create DirectX projects, I get an error like "d3dx10_43.dll is missing" and I have directX version 11 installed on that machine. Now I know I can just place d3dx10_43.dll inside the folder people will download but are there any legal issues when I do this?

Basically I want to make games with the least amount of prerequisite software required, or at least be able to include it in their download without any legal issues. (The reason why I say legal issues, is because I know XNA requires its framework in order to run games with it... and I know you're not allowed packaging the XNA framework with your download.)

Thanks.

Jason

4

2 回答 2

1
  1. 如果使用原生 DirectX,可以分发运行时库,它是免费的,安装 DirectX SDK 时可以查看详细信息。
  2. 无论如何,最终用户需要安装 dll 才能运行您的程序,因此要么他们自己安装运行时库,要么您将其与您的程序一起提供。

这是 DirectX SDK 2010(六月)的 ELUA

湾。可分发代码。如果您遵守以下条款,该软件包含您被允许在您开发的程序中分发的代码。

一世。使用权和分发权。下面列出的代码和文本文件是“可分发代码”。

• DIRECTX REDIST.TXT 文件。您可以复制和分发 DIRECTX REDIST.TXT 文件中列出的代码的目标代码形式

以及 DIRECT REDIST.TXT 所说的

可再发行代码被标识为 DirectX SDK CD/Download 上以下“Redist”目录中的所有文件:

重发/

redist 文件夹包含运行程序所需的运行时 dll 文件。

于 2012-10-17T03:40:11.930 回答
0

通常,您只需捆绑(或在安装时下载)来自 Microsoft 的适当可再发行包。

您绝对不应该为绝大多数 Microsoft 库重新分发松散的 DLL 文件。

更正您的 XNA 示例:您不能合法地重新分发 XNA Game Studio(Visual Studio 组件)。但是您可以重新分发XNA 框架。我假设 DirectX SDK 和可再发行组件之间存在类似的区别。

您如何实际下载或捆绑,然后调用可再发行组件实际上取决于您使用的安装程序技术。

于 2012-10-17T03:38:59.053 回答