Invoking values from MFC dialog based application into WPF app.

VishalK_87 1 Reputation point
2021-01-13T14:28:46.767+00:00

Hi All,

I am newbie in wpf, need to fetch values from MFC Dialog based application as abc.dll, and populate in Datagrid of WPF application(Myapp.exe), but I could not render the values through C++/CLI layer, could you let me know references/examples for fetching values from unmanaged code(MFC) through C++/CLI Interop into WPF Datagrid.

Eg., assuming from MFC dialog need to fetch the values in italics below,

FirstName : First_Name Dept: IT Loc: Bld 5, Floor 10

for populating it in Datagrid(through C++/CLI).

Details: Windows10(64bit) , Visual Studio 2015 , .NET 4.5 Framework

VishalKP

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,681 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,545 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
768 questions
{count} votes