문제

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.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top