Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6112405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:44:29+00:00 2026-05-23T14:44:29+00:00

I have a chance to start porting a legacy application written in C++/Powerbuilder to

  • 0

I have a chance to start porting a legacy application written in C++/Powerbuilder to c#. We have a feature this sprint that launches an independent dialog and I just went through the exercise of creating a CCW dll for my managed implementation of this feature, to be called from C++. I decided to use WPF for the views in my managed DLL. So far so good, as I am able to inter operate with my managed DLl, including launching the WPF window from a sample MFC app.

There are several reasons motivating this strategy:

  1. I have a bunch of re-usable manage DLLs that came to being from a recent redesign of a 10 year old legacy app.
  2. I am fairly experienced in C# as compared to C++ where i find myself constantly battling with language syntax and intellisense. FWIW, our company could do better in investing in some tooling although it will not really change my dislike for the C++ syntax, header files and inconsistencies……of approach.
  3. For desktop apps atleast for the kind of applications we develop, I think C# is the way to go.
    4.There are future plans to re-write the app, and I do not want to repeat myself, hence the temptation to start designing things right, where I can, at this stage.
  4. I do not have alot of C++ help.

However, I have some concerns and questions:

  1. Is this piecemeal approach the way to go?

  2. From a performance perspective is, should I be interoperating with Winforms instead of WPF? Application will be hosting a GIS so performance is key, although we have just developed another WPF application that host ThinkGeo’s MapSuite and it performs quite well. Main difference is the legacy app is alot more GIS intensive that its WPF cousin.

  3. WIth the latest rumours about the fate of WPF/Silverlight, should I even be considering WPF? What are the alternatives anyway for desktop apps, if WPF/Silverlight was to die?

3.What are the gotchas waiting for me?

Any thoughts and/or advice on this will be great. I will be consulting with my manager on this but wanted to get some of your thoughts and experiences first. TiA.

Klaus

EDIT:

Sorry but application is 10 year old and not 25 year old as originally stated. Little mix up there.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:44:30+00:00Added an answer on May 23, 2026 at 2:44 pm

    I don’t see a better approach than the piecemeal one. And you can always use C++/CLI (aka managed C++) to bridge any difficult gaps.

    I’m a big fan of WPF/Silverlight so I would definitely suggest it above Winforms, which is good but a much older looking technology. Custom controls and data binding have made things a lot easier for long term development in the WPF world.

    The rumors of WPF dying off are just plain nonsense. Yes, Microsoft reduced the size of the WPF team — mainly because WPF has become mature and stable. They want to put more resources into the browser areas for strategic reasons; not sure why anyone would equate that to them killing WPF.

    I’ve had great success in using WPF to wrapper or interface with legacy code written in C++. The main “gotcha” I’ve run into is when you have layers of managed and unmanaged code, it can get a bit tricky and hard to debug. You may want to consider writing a custom assembly loader callback so you can see more about what fails to load and why, especially if you have a legacy app loading a C++ DLL that ends up running managed code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need change background of all text that have two spaces from the start
I have a chance to upgrade a legacy suite of applications currently using .net
I have implicitly made this a community wiki seeing that the answers can be
I have several records in a database that have Start and End Dates 09/15/2011
I have never written unit tests before, for various reasons. I have a chance
I'm about to start a new ASP.NET MVC application. In it we have a
I'm using VS2008, and I have a project that will not start when I
I have a change tracking framework that tracks changed made to domain objects on
I have capture change event on drop down select. This drop down field is
I need to create a porting software that will convert Java code to C#

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.