如何知道我有什么.net框架版本 [英] how to know what .net frame version i have

查看:81
本文介绍了如何知道我有什么.net框架版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生...我不知道如何编写代码来检查我拥有的.net框架工作.代码应为c ++

respected sir...i dont know how to write code for checking what .net frame work i have ..the code should be c++

推荐答案



来自MSDN的这篇文章:确定要安装哪个版本的.NET Framework %WINDIR%\ Microsoft.NET \ Framework中的目录.

另一篇文章(如何检查已安装的.Net Framework版本在注册表中查找HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ NET Framework Setup \ NDP

这两种方法是使用Google搜索找到的.

要实现第一种方法,可以使用MFC的CFileFind对象扫描目录(或FindFirstFile和FindNextFile函数).

对于第二种方法,可以使用注册表功能:RegOpenKey和RegEnumKeyEx
Hi,

This article from the MSDN :Determining Which Version of the .NET Framework Is Installed seems to look for the directories in %WINDIR%\Microsoft.NET\Framework.

An other article (How To Check .Net Framework Version Installed looks in the registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP

These 2 approaches was found using Google search.

To implements the first approach, you may use the CFileFind object of the MFC to scan the directory (or the FindFirstFile and the FindNextFile functions).

For the second approach, you can use the Registry functions : RegOpenKey and RegEnumKeyEx


这篇关于如何知道我有什么.net框架版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆