[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2006-11-29
3
Medium Priority
?
164 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 45

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 45

Accepted Solution

by:
AndyAinscow earned 750 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

656 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