如果没有 SDL.NET SDK,SDL.Net 应用程序无法运行

发布于 2024-09-11 18:33:31 字数 395 浏览 5 评论 0原文

我有一个用 C# 制作的游戏,它在 Windows XP 下按预期安装和运行。但是,当我在 Windows 7 计算机上安装它时,它要么根本不起作用(没有任何错误消息),要么给出一般错误消息。为了能够在 Windows 7 计算机上使用 SDL.Net,我需要做什么特殊的事情吗?

更新:我刚刚被告知它甚至不能在 XP 上运行。我尝试的两台 XP 机器都安装了 SDL.NET(当我使用它进行测试时,我不知道其中一台机器已经安装了它)。因此,如果计算机上未安装 SDL.NET SDK,我的程序几乎无法运行。有谁知道我的 SDL 程序到底需要什么才能使其正常运行?现在我拥有所有基础SDL_*.dll、SdlDotNet.dll 和Tao.Sdl.dll。还需要更多吗?或者是否有某种 SDL 运行时我必须与我的程序一起安装才能使用它?我真的被这个问题困住了。

I have a game that I have made in C# and it installs and runs as expected under Windows XP. However when I install it on a Windows 7 machine, then it either simply doesn't work (without any error message) or it gives a generic error message. Is there anything special that I have to do in order to be able to use SDL.Net with a Windows 7 computer?

UPDATE: I have just been informed that it doesn't even work on XP. Both XP machines I tried it on had SDL.NET installed (I didn't know that one of them already had it when I used it for testing). So pretty much if SDL.NET SDK is not installed on a computer my program doesn't work. Does anyone have some insight into what exactly needs to accompany my program from SDL in order to make it work properly? right now I have all the base SDL_*.dll and SdlDotNet.dll and Tao.Sdl.dll. More needed? Or is there some kind of SDL runtime that I have to install with my program in order to use it? I am really stuck with this one.

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

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

发布评论

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

评论(2

伤痕我心 2024-09-18 18:33:31

您是否尝试过以管理员身份运行它?我的意思不是说以管理员帐户身份登录,而是右键单击 exe 并以管理员身份运行?如果您这样做并且没有收到错误,那么您的问题将很容易解决,而不需要它始终以管理员身份运行。

Have you tried running it as admin? I don't mean happening to be logged in as an admin account, I mean right click the exe and Run As Administrator? If you do that and don't get the error, then your problem will be quite easily solved, without requiring it to always Run As Admin.

夏雨凉 2024-09-18 18:33:31

添加了每个 Dll,包括那些没有明确需要的 Dll,现在它可以工作了。显然,dll 之间存在一些我不知道的隐藏链接。

Added every Dll including those that weren't explicitly needed and it now works. Apparently there are some hidden links between dll's that I didn't know about.

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