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

What framework is running in this scenario?

I have a VB6 application that references a few .Net 1.1 components, and
one 2.0 component. Does that mean that all will be running under 2.0?
Is there any way to force the 1.1 pieces to run under 1.1, and the 2.0
to run under 2.0? I know about setting a config file to force a certain
framework, but I think that is only good for the entire application.

Thanks

Oct 16 '06 #1
4 1245
If the components are compiled in 1.1 and are separate assemblies (and you
created the COM wrappers using the proper framework for each component), you
are most likely stoking up both 1.1 and 2.0 in your scenario. The VB app is
having to marshall from COM to .NET anyway.

I could be wrong about this, as VB6 might force only one framework, but I
would seriously doubt it would override the wrapper class.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
"holysmokes99" <ho**********@hotmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
>I have a VB6 application that references a few .Net 1.1 components, and
one 2.0 component. Does that mean that all will be running under 2.0?
Is there any way to force the 1.1 pieces to run under 1.1, and the 2.0
to run under 2.0? I know about setting a config file to force a certain
framework, but I think that is only good for the entire application.

Thanks

Oct 17 '06 #2
Cowboy (Gregory A. Beamer) wrote:
If the components are compiled in 1.1 and are separate assemblies
(and you created the COM wrappers using the proper framework for each
component), you are most likely stoking up both 1.1 and 2.0 in your
scenario. The VB app is having to marshall from COM to .NET anyway.

I could be wrong about this, as VB6 might force only one framework,
but I would seriously doubt it would override the wrapper class.
IIUC, it's not possible to host more than 1 version of the framework in a
single process. Unless those components are running in sepoarate processes,
they're all running under the 2.0 framework.

-cd
Oct 17 '06 #3
Good to know. Then a SOA option is the only way to go.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
"Carl Daniel [VC++ MVP]" <cp*****************************@mvps.org.nospam >
wrote in message news:%2****************@TK2MSFTNGP02.phx.gbl...
Cowboy (Gregory A. Beamer) wrote:
>If the components are compiled in 1.1 and are separate assemblies
(and you created the COM wrappers using the proper framework for each
component), you are most likely stoking up both 1.1 and 2.0 in your
scenario. The VB app is having to marshall from COM to .NET anyway.

I could be wrong about this, as VB6 might force only one framework,
but I would seriously doubt it would override the wrapper class.

IIUC, it's not possible to host more than 1 version of the framework in a
single process. Unless those components are running in sepoarate
processes, they're all running under the 2.0 framework.

-cd


Oct 17 '06 #4
OK, thanks for your feedback. Here are some more of my particulars. I
am developing a component in .Net 1.1, and want to debug it using the
"start external program" of the debugger in the IDE. The program I want
to start is the app that I mentioned above that references both 1.1 and
2.0 components. The problem is that when I launch this from VS2003, the
external program starts only for a moment and then bails out of memory
with no error, and the ide returns to a stopped state awaiting my
input. If I remove the 2.0 framework, at least the external app will
start up and stay in memory, but I will get the error (as expected)
that some pieces could not be found (i.e. pieces of the 2.0 framework).
Should not VS2003 (which is based on framework 1.1) be able to run
under 2.0 as they are backward compatible???

Thanks for your help,
Marcus
Cowboy (Gregory A. Beamer) wrote:
Good to know. Then a SOA option is the only way to go.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
"Carl Daniel [VC++ MVP]" <cp*****************************@mvps.org.nospam >
wrote in message news:%2****************@TK2MSFTNGP02.phx.gbl...
Cowboy (Gregory A. Beamer) wrote:
If the components are compiled in 1.1 and are separate assemblies
(and you created the COM wrappers using the proper framework for each
component), you are most likely stoking up both 1.1 and 2.0 in your
scenario. The VB app is having to marshall from COM to .NET anyway.

I could be wrong about this, as VB6 might force only one framework,
but I would seriously doubt it would override the wrapper class.
IIUC, it's not possible to host more than 1 version of the framework in a
single process. Unless those components are running in sepoarate
processes, they're all running under the 2.0 framework.

-cd
Oct 17 '06 #5

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

Similar topics

9
by: rick cameron | last post by:
TimeZone - the only instance you can get is one representing the local time zone DateTime - cannot represent a time before 00:00:00 1 Jan 1 CE What were they thinking? This is a serious question...
2
by: Sylvain Larin | last post by:
My business object (BO) need to pass a table to the GUI. The BO and the GUI will reside on the same computer and will not use .NET remoting or web service for now, but will need to support .NET...
41
by: Mountain Bikn' Guy | last post by:
What is the current preferred way to save user preferences in dotnet? Is the registry the right place to do this? Can anyone recommend a good article (or book) for this topic? Thanks.
19
by: Charles Law | last post by:
Take a solution with a project hierarchy along the lines of an n-tier system, so that we have a data layer, business layer and presentation layer. The presentation layer is coupled to the business...
8
by: Jay Balapa | last post by:
This am I posted the following message thinking there was a problem with Dot Net Framework 2.0. But problem occurs only with Dot Net 2.0 and IIS 6.0 installed machines. I tested this on my laptop...
2
by: Ing. Davide Piras | last post by:
Hi there, we have a big web application wrote in Visual Studio .NET 2003 (Framework 1.1) which we still use to modify, evolve and compile all the assemblies... on IIS we are trying to set the...
1
by: eva100801 | last post by:
Hi All, I have few questions about deploying windows apps developed in .Net framework. These days it is all about internet apps and services, and I need to develop small windows app and deployed...
167
by: darren | last post by:
Hi I have to write a multi-threaded program. I decided to take an OO approach to it. I had the idea to wrap up all of the thread functions in a mix-in class called Threadable. Then when an...
1
by: Newcomsas | last post by:
Hello. I have got a little dilemma to solve about AJAX and VS2008. At the moment I'm working on a C# ASP.NET web site in VS2008 environment. The machine that is going to host the site runs with...
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: 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...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.