473,387 Members | 1,590 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,387 software developers and data experts.

Options to force the version of .Net Frameworks used by a dll

I would like to know all the means that are available to configure/specify
the version of the .Net Frameworks that are used by a particular dll deployed
on a particular machine.

The reason for this is that I have a Managed C++ app dll built using VS .Net
1.0 against v 1.0 of the Frameworks that in certain circumstances is
incorrectly using v 2.0 of the Frameworks.

The circumstances are that the dll is being linked dynamically to a legacy
native Win32 C app and called through an exported C decl entry point (I
believe that this is not the 'correct' way to call .Net dll's from native
Win32 apps but unfortunately for practical purposes I am stuck with it). This
mechanism usually manages to use the correct version of the .Net Frameworks
and 'works'.
However, when run under Softgrid and Windows 2003, the process is incorrecly
using v 2.0 of the .Net Frameworks. So, I would like to know what my options
are to try to encourage the dll to use version 1.0 of the .Net Frameworks in
this situation.

PS It is not practical to simply remove the 'wrong' versions of the
Frameworks.
PPS I believe that the 'correct' way to invoke a .Net dll from a native
Win32 app is via COM - any advice/assistance/links to help me create the COM
i/f for a C Win32 client exe to a Managed C++ server dll (using VS .Net 1.0)
would be appreciated.
Jun 27 '08 #1
1 1795
Tim wrote:
I would like to know all the means that are available to
configure/specify the version of the .Net Frameworks that are used by
a particular dll deployed on a particular machine.

The reason for this is that I have a Managed C++ app dll built using
VS .Net
1.0 against v 1.0 of the Frameworks that in certain circumstances is
incorrectly using v 2.0 of the Frameworks.

The circumstances are that the dll is being linked dynamically to a
legacy native Win32 C app and called through an exported C decl entry
point (I believe that this is not the 'correct' way to call .Net
dll's from native Win32 apps but unfortunately for practical purposes
I am stuck with it). This mechanism usually manages to use the
correct version of the .Net Frameworks and 'works'.
However, when run under Softgrid and Windows 2003, the process is
incorrecly using v 2.0 of the .Net Frameworks. So, I would like to
know what my options are to try to encourage the dll to use version
1.0 of the .Net Frameworks in this situation.
In thisd case, is it possible that the 2.0 CLR is already loaded into the
process before your DLL comes along? It's only possible to load a single
version of the CLR into a given process.

-cd
Jun 27 '08 #2

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

Similar topics

7
by: Steven Bethard | last post by:
So here's the state of the decorator debate as I see it: *** Location GvR pretty strongly wants decorators before the function: ...
14
by: mirnazim | last post by:
Hi, There are great Python Web Application Framework. But most of them are meant for content oriented web apps. Is there something that can ease the development of application that are not...
15
by: TJ Walls | last post by:
Hello All, Is it possible to create a <select> element with no selected options? I have tried setting the selectedIndex attribute to -1, but as far as I can tell this only works for <select...
0
by: Fermigier Stefane | last post by:
Nuxeo Calendar Server released in version 2 ------------------------------------------- Nuxeo releases version 2 of it's calendar products for Python and Zope, updating to the latest...
3
by: MarkusJNZ | last post by:
Hi, I have two different applications running on 2003 both in two different vitrual directories. One application runs on the .NET framework 1.1 whilst the other runs on 2.0. If I change the...
2
by: udupi_mail | last post by:
Hello, Was hoping to get some feeback on the following: Current arch. is a swing client with corba services deployed on AIX. Data tranferred over the wire is XML(string) instead of traditional...
4
by: Evan Klitzke | last post by:
Hi all, What frameworks are there available for doing pattern classification? I'm generally interested in the problem of mapping some sort of input to one or more categories. For example, I want...
3
by: LP | last post by:
Hello, We are about to start a big project replacing legacy application with an application that will be developed on .NET framework. Some people on our team have experience with application...
4
by: njwilson23 | last post by:
I'm having trouble with tkinter on a new installation of Python (2.6), built with the framework option from source that was downloaded from python.org. I'm running OS 10.4 on a PowerPC G4. The...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.