473,327 Members | 2,081 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,327 software developers and data experts.

C++ managed...force runtime version?

ep
I have a managed C++ dll that exports functions for use in MSI custom
actions.
The functions break in the 2.0 framework and right now I just need to force
it to use the 1.1 framework only. How can this be done?
Nov 17 '05 #1
2 2157


"ep" wrote:
I have a managed C++ dll that exports functions for use in MSI custom
actions.
The functions break in the 2.0 framework and right now I just need to force
it to use the 1.1 framework only. How can this be done?


There are a couple of things you can do.
1. Set your command prompt to the path/environment you want.
For runtime, set COMPLUS_VERSION=v1.1.4322 and set the path on the
command prompt.

This will start your VS instance with the environments you set on the
command prompt devenv /useenv.

2. I believe you could also set the same using
Tools -> Options --> Projects and Solutions --> VC++ Directories -->
Reference files

and if you need include directories, executable directories etc. You should
set them here.

Thanks, Let me know if this fixes your issue.
Kapil
Nov 17 '05 #2
ep
the development machine doesn't have .Net 2.0 installed or VS2005, or any of
the .Net 2.0 libraries. When Windows Installer calls the exported function,
the mixed-mode dlls appears to load the latest version installed on the
machine.

Anyways, I've actually found the breaking change and was able to work around
it, so now it runs properly under either version.

Thanks,
-EP

"Kapil Khosla [MSFT]" <kk*****@online.microsoft.com> wrote in message
news:0D**********************************@microsof t.com...


"ep" wrote:
I have a managed C++ dll that exports functions for use in MSI custom
actions.
The functions break in the 2.0 framework and right now I just need to force it to use the 1.1 framework only. How can this be done?

There are a couple of things you can do.
1. Set your command prompt to the path/environment you want.
For runtime, set COMPLUS_VERSION=v1.1.4322 and set the path on the
command prompt.

This will start your VS instance with the environments you set on the
command prompt devenv /useenv.

2. I believe you could also set the same using
Tools -> Options --> Projects and Solutions --> VC++ Directories -->
Reference files

and if you need include directories, executable directories etc. You

should set them here.

Thanks, Let me know if this fixes your issue.
Kapil

Nov 17 '05 #3

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

Similar topics

6
by: Ganesh | last post by:
Is there a utility by microsoft (or anyone) to force garbage collection in a process without have access to the process code. regards Ganesh
6
by: Shai Levi | last post by:
Hi, I'm trying to migrate native c++ class to managed c++ class. The native class header definition looks as: class NativeClass { public: typedef void (CbFunc1)(int n,void* p);
1
by: Whitney Kew | last post by:
Hello everyone, I'm developing a mixed-mode Managed C++ DLL using .NET 2003, and to avoid the potential mixed-DLL-loading-deadlock issue discussed in MS KB article 814472...
7
by: wmkew | last post by:
Hello everyone I'm encountering a R6002 Runtime error and several bugs when trying to generate a simple Managed C++ application with .NET 2003. The main problem seems to arise from linking with...
4
by: | last post by:
I am stuck in a situation and I do believe that this should work, but it doesn't. I have a unmanaged dll, that uses MFC. This works great. Now I recompile the unmanaged dll so it contains...
5
by: Gerhard Menzl | last post by:
When creating a Managed C++ DLL using the Visual Studio 7.1 Solution Explorer (by selecting Add New Project and then either choosing Class Library (.NET) or Windows Control Library (.NET)), the IDE...
2
by: chuck rudolph | last post by:
The project that I am on is going to require me to mix managed and unmanaged code. I created a vc++ class library (.net) project bane TestLib. I inserted the following test code in testLib.h. The...
87
by: Robert Seacord | last post by:
The SEI has published CMU/SEI-2006-TR-006 "Specifications for Managed Strings" and released a "proof-of-concept" implementation of the managed string library. The specification, source code for...
10
by: Daniel | last post by:
how to force a .net application to use .net 2.0 ? this windows service is about 4 years old and im pretty sure is using .net 1.x runtime. Is there soem setting in the installer that says to use...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.