© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
7 replies
Gipper

How can I use wpf with c++?

Someone got some harebrained idea to develop a c++ application with a GUI, so I thought of how WPF allows you to develop in C++ (which it then translates into C#, if memory serves me right). I found this documentation page: https://learn.microsoft.com/en-us/dotnet/desktop/wpf/advanced/wpf-and-win32-interoperation?view=netframeworkdesktop-4.8

Which presents several ways to connect a C++ application to WPF in the section called "WPF Interoperation Projects", I would like a recommendation on which is the simplest, considering that this will be a simple app and I don't have experience coding C++ for a WPF application. And also some help on how to implement it (later, not now).
WPF and Win32 interop
Learn how to interoperate Windows Presentation Foundation's environment for creating applications and Win32 code.
WPF and Win32 interop
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Can you use winAPI gdi and wpf with each other in c#?
C#CC# / help
2y ago
c# wpf style
C#CC# / help
11mo ago
✅ How can I read and edit .XLSX files in C# (WPF)
C#CC# / help
3y ago
How can I use a precompiled C/C++ dll in a C# project?
C#CC# / help
2y ago