Game Development Reference
In-Depth Information
Note
The source code for the constructor is available on the Companion Web site.
The following method is used to find out where the .NET framework base instal-
lation path is. This is done by checking the Win32 registry for the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\InstallRoot
This method caches the installation path as well, so that multiple version checks
do not need to reexecute the code to search the registry.
BOOL CLRVersionCheck::GetInstallationBasePath(TCHAR* basePath, DWORD bufferSize)
{
Note
The source code for this method is available on the Companion Web site.
}
The following method returns a list of CLR versions after querying the .NET
framework base installation path.
size_t CLRVersionCheck::EnumerateVersions(std::vector<std::string>& versionList)
{
Note
The source code for this method is available on the Companion Web site.
}
The following method enumerates the directories located in the .NET framework
base installation path. It is important to note that not all of these entries will be
valid CLR versions, because EnumerateVersions() will handle the filtering and vali-
dation.
size_t CLRVersionCheck::EnumerateVersionDirectories(std::vector<std::string>&
versionList)
{
Note
The source code for this method is available on the Companion Web site.
}
 
Search Nedrilad ::




Custom Search