Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / May 2005

Tip: Looking for answers? Try searching our database.

C++ managed...force runtime version?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ep - 11 May 2005 17:09 GMT
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?
Kapil Khosla [MSFT] - 13 May 2005 00:10 GMT
> 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
ep - 19 May 2005 21:21 GMT
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

> > I have a managed C++ dll that exports functions for use in MSI custom
> > actions.
[quoted text clipped - 18 lines]
> Thanks, Let me know if this fixes your issue.
> Kapil

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.