Solved

Mixing .NET 1.1 and .NET 2.0 assemblies/function calls

Posted on 2006-11-29
3
155 Views
Last Modified: 2011-09-20
Hi experts,
I have a large Visual C++.NET 2003 managed code project, which is based on the .NET framework 1.1. Since I would like to use some features which are available just under the 2.0 framework (bulk insertion in the System::Data::SqlClient namespace), I am considering to write a separate assembly based on the 2.0 framework and call that function from within the 1.1 main project.

Is such a scenario
* feasible ?
* secure ?
* performance overhead ?

and last, but not least, how to do that? Just build a new 2.0 assembly and reference it within the Visual C++.NET 2003?
Thanks
0pl0
0
Comment
Question by:0pl0
  • 2
3 Comments
 
LVL 44

Expert Comment

by:AndyAinscow
Comment Utility
Possibly a silly question but why not have your large project use the .NET 2 framework.  (Anything built to use .net 2 would require it to be installed on the client PC anyway)
0
 

Author Comment

by:0pl0
Comment Utility
That's correct, but Visual Studio 2003.NET Standard does it support a build under the .NET 2.0 framework. In alternative, is it possible (without the syntactical modifications in the managed C++ language (e.g. ^ )) to take the whole project in Visual Studio 2005 Standard and compile it without code modifications under the .NET 2.0 framework?
Thanks
0pl0
0
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 250 total points
Comment Utility
AFAIK the new syntax is optional.
Simplest would be to make a copy of the project and see if it compiles with VS 2005 without (major) problems.  The compiler in VS2005 is stricter - that means some things that would compile under previous versions won't.  The reason for not compiling is not a change is required for changes sake but that the older compiler allowed you to compile potentially dangerous non-standard code.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now