Solved

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

Posted on 2006-11-29
3
158 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

785 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