.NET Framework可以在Win98上使用吗?
我需要为客户编写一个在 Windows 98 上运行的小工具。由于这是一个非常小的项目,我希望我可以避免使用本机 C++ 并使用 C#。
.net Framework 2.0 下载声明支持 Windows 98。安装或编码时是否有任何警告或问题需要注意?
I need to write a little tool for a customer to be run on Windows 98. Since this is a very small project I'd hope that I could avoid having to go native C++ and use C#.
The .net Framework 2.0 download claims to support Windows 98. Are there any caveats or hitches to be aware of when installing or coding?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
Win98 不支持一些功能,例如表单不透明度和气球工具提示。 如果您使用任何 P/Invoke,则必须确保支持 ANSI 版本的函数(使用
CharSet.Auto
),并且必须检查 MSDN 以确保您使用的 API 函数Win98 上支持正在使用的。 它会工作,但如果可能的话,您应该在交付给客户之前在Win98上进行测试。There are a few features that Win98 won't support such as form opacity and balloon tooltips. If you use any P/Invoke, you'll have to make sure to support ANSI versions of functions (use
CharSet.Auto
) and you'll have to check MSDN to make sure that the API functions you're using are supported on Win98. It will work, but if possible, you should test on Win98 before delivering to the customer.它是可用的,但请务必阅读您最终使用的类的文档。 其中一些在 Win98 上不受支持,例如 Nick Baldwin 提到的 EventLog。
此外,它可能不是一个简单的安装(至少根据我的经验)。 如果我是你,我会在开始项目之前检查客户端是否能够安装 .NET 2.0。
It is usable, but be sure to read the documentation for the classes that you end up using. Some of them are not supported on Win98, like the EventLog mentioned by Nick Baldwin.
Also, it may not be a trivial installation (at least in my experience). If I were you I would have checked to see if the client is able to install .NET 2.0 before starting the project.
.NET 2.0 支持Windows 98,但您无法访问某些基本库类,例如EventLog。
.NET 2.0 supports Windows 98, but you won't have access to some of the base library classes such as EventLog.
我写了几个“小工具”,并亲自在Win98上运行过。 我建议您创建一个虚拟机并在每次重要构建后测试您的应用程序。
我看到的问题几乎完全与 UI 相关(东西确实尺寸不正确)。
I've written several "small tools" that I have personally run on Win98. What I would suggest is that you create a VM and test out your app after every significant build.
The issues I saw was almost completely UI related (things really didn't size correctly).
您也可以使用 Express 版本以 .NET 2.0 为目标。 在 C# Express 中,您可以在项目属性中更改框架。 您必须先保存项目。
You can target .NET 2.0 with the express editions too. In C# express you can change the framework in the project properties. You must save the project first.