Solved

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

Posted on 2006-11-29
3
160 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
ID: 18115913
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
ID: 18129083
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
ID: 18129117
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

830 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