473,399 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

how to get the framework directory from native c++

Hello,

what is the best way to get the path to the most recent installed
version of the framework?

In a managed app I could use RuntimeEnvironment.GetRuntimeDirectory()
(however - I believe - this does not return the most recent installed
version but the currently used).

Is there an API function that I can use from an unmanaged app or do I
have to read the registry myself?

Thanks
--
Ben
http://bschwehn.de
Nov 17 '05 #1
1 1232
Hi Ben,

Take a look at:
http://msdn.microsoft.com/library/de...mdirectory.asp

The following comment is from that topic:

"A buffer in which the runtime returns a string that contains the fully
qualified name of the installation directory for the runtime that is loaded
in the process. If the runtime has not yet been loaded in the process, the
function returns the appropriate directory information for the latest
version of the runtime installed on the computer. "

Ronald Laeremans
Visual C++ team

"Ben Schwehn" <b.*******@gmx.net> wrote in message
news:OX**************@TK2MSFTNGP12.phx.gbl...
Hello,

what is the best way to get the path to the most recent installed version
of the framework?

In a managed app I could use RuntimeEnvironment.GetRuntimeDirectory()
(however - I believe - this does not return the most recent installed
version but the currently used).

Is there an API function that I can use from an unmanaged app or do I have
to read the registry myself?

Thanks
--
Ben
http://bschwehn.de

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jason Garland \(Secure Access Pty Ltd\) | last post by:
Is there a way to preload the MS compondents of the Dot Net Framework V1.1 Before user login ? We have a few programs that are created under VB Dot Net that run at user login. On the older...
4
by: baylandpark | last post by:
I've written Windows shareware applications using MFC for several years. Now I'm standing at the point to choose a language and platform for a new small application much less than 1MB of footprint....
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Group, After a long week end I am back again. Its nice and refreshing after a short vacation so lets get started with .NET once again. Today we will discuss about Isolated Storage. This is...
0
by: Ganesh Ramamurthy | last post by:
Hi Experts, I am using System.DirectoryServices to authenticate my users who are in the LDAP. I am using the Active Directory Users in my web application. I am creating the native object to...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
7
by: sam | last post by:
It can compile .net code to native code which can run without an installed .net framework. This would remove one of the greatest disadvantages from C#. Sounds quite interesting....
13
by: dancer | last post by:
I have made a new post because when I try to respond to another, I get the error, "Article Rejected -- Ill-formed message id" This is in response to the advice of Juan Libre to install Net...
4
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, Regarding Visual Studio .Net 2005 can you still build applications that don't require the .Net Framework (I guess this would be called Unmanaged Code?). I'm asking because I'd like to...
7
by: Computer Guru | last post by:
Hello All, I'm at my wit's end on this one, and would appreciate any help or insight that could be given. Environment: Windows Vista x64 ONLY Code: //START BUG
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.