PC Review


Reply
Thread Tools Rate Thread

how can get my evc++ code ported into to .net using visaul c#

 
 
=?Utf-8?B?TmF2ZWVuIGtvdWw=?=
Guest
Posts: n/a
 
      30th May 2005
i need to port my EVC++ code into .net2003 using Visaul c#. how can that be
done as lot many bugs come up if iam trying to do it.

regards

naveen
 
Reply With Quote
 
 
 
 
Daniel Moth
Guest
Posts: n/a
 
      30th May 2005
It is a manual process

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


"Naveen koul" <(E-Mail Removed)> wrote in message
news:A39555D2-5963-4124-88C5-(E-Mail Removed)...
> i need to port my EVC++ code into .net2003 using Visaul c#. how can that
> be
> done as lot many bugs come up if iam trying to do it.
>
> regards
>
> naveen


 
Reply With Quote
 
Guest
Posts: n/a
 
      30th May 2005
There is no magic C++ to C# converter. You have to port it by hand.

-Chris


"Naveen koul" <(E-Mail Removed)> wrote in message
news:A39555D2-5963-4124-88C5-(E-Mail Removed)...
> i need to port my EVC++ code into .net2003 using Visaul c#. how can that
> be
> done as lot many bugs come up if iam trying to do it.
>
> regards
>
> naveen



 
Reply With Quote
 
Steve Maillet \(eMVP\)
Guest
Posts: n/a
 
      30th May 2005
Well, maybe - maybe not. For the Wi32 code that is NOT specific to Windows
CE you can get a long way in the process by using the desktop managed C++
compiler to generate MSIL and reflector from Lutz Roedr
(http://www.aisto.com/roeder/dotnet/) to "reverse" that to C# code. However,
I'd be recommend you ask yourself the following questions before embarking
on a port from C++ to C#

1) Why do you want to do this?
2) What is the expected benefit of the translation?
3) Can you get those benefits by only converting some specific portion and
using P/Invoke for the rest? (E.g New UI in C# but core code in C++) [ CF
2.0 has COM interop support so you could do it that way as well ]

Conversion from C++ to C# is more of a re-write than a conversion so unless
your application is trivial it's usually not worth it to try to convert.
It's usually better to start over and occasionally steal code snippets from
the C++ (Since C# syntax is based on that of C++ at the basic expression and
statement level it's reasonable to re-use some of the code with the copy -
paste - tweak technique)

--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com


 
Reply With Quote
 
Guest
Posts: n/a
 
      30th May 2005
Agreed. Even if there were a converter, there would still be a huge "should
I?" question looming. I'd advocate migrating if you intend to do further
work and enhancements, and even then I'd likely only convert UI. If you
have working C++, there's got to be a huge business advantage to doing the
port for the effort to pay off in any way. Doing it just for the sake of
doing it is probably not a good idea.

-Chris

"Steve Maillet (eMVP)" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Well, maybe - maybe not. For the Wi32 code that is NOT specific to Windows
> CE you can get a long way in the process by using the desktop managed C++
> compiler to generate MSIL and reflector from Lutz Roedr
> (http://www.aisto.com/roeder/dotnet/) to "reverse" that to C# code.
> However, I'd be recommend you ask yourself the following questions before
> embarking on a port from C++ to C#
>
> 1) Why do you want to do this?
> 2) What is the expected benefit of the translation?
> 3) Can you get those benefits by only converting some specific portion and
> using P/Invoke for the rest? (E.g New UI in C# but core code in C++) [ CF
> 2.0 has COM interop support so you could do it that way as well ]
>
> Conversion from C++ to C# is more of a re-write than a conversion so
> unless your application is trivial it's usually not worth it to try to
> convert. It's usually better to start over and occasionally steal code
> snippets from the C++ (Since C# syntax is based on that of C++ at the
> basic expression and statement level it's reasonable to re-use some of the
> code with the copy - paste - tweak technique)
>
> --
> Steve Maillet
> EmbeddedFusion
> www.EmbeddedFusion.com
> smaillet at EmbeddedFusion dot com
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visaul Web Developer 2010 Express deployment Alan T Microsoft ASP .NET 1 6th Jul 2010 08:20 AM
Using ATL COM DLL in Web-Based application (Visaul C# and ASP.NET) =?Utf-8?B?Sm9obg==?= Microsoft ASP .NET 1 4th Apr 2007 04:04 PM
read value from website using Visaul basic Net zoneal@yahoo.com Microsoft VB .NET 2 1st May 2006 04:25 PM
Can Visaul basic 6 be installed after installing VS .NET? EC Microsoft ASP .NET 1 17th May 2005 12:32 PM
.NET CF or Embedded Visaul C++ ?? Lionel Reyero via .NET 247 Microsoft Dot NET 0 30th Mar 2005 08:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:31 PM.