简体   繁体   中英

Converting existing C project to WPF

I want to redesign the UI for a pre-existing, working C project. It's not Visual Studio, it's plain .c and .h files. The changes I intend on making will require WPF (Windows Presentation Foundation).

I'm wondering if this is possible, and if so, how difficult it would be. Any links to tutorials, etc. would be fantastic. I can read and write C at a novice-intermediate level, but I'm very new to Visual Studio stuff.

Typically, the best approach for this type of work is to:

  1. Decouple the logic from the UI in the existing code base.
  2. Make a P/Invoke (C API) or C++/CLI wrapper for the logic
  3. Use C# to build the WPF front end for this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM