question

VishalK91-2622 avatar image
0 Votes"
VishalK91-2622 asked VishalK91-2622 commented

Invoking values from MFC dialog based application into WPF app.

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-wpfc++dotnet-wpf-xaml
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@VishalK91-2622
To get special fonts in WPF, you need to convert the font to RFT format, and get the formatted font from the special character. As far as I know, you can't get it unless with the original data. By the way, you can get the content from the dialog using getwindowtext.


0 Votes 0 ·

, My apologies, for query to highlight the font, since, example above depicts in Italic font is just , to distinguish between Labels/Text Box values, my task has nothing to do with Fonts, need to fetch values from these Textbox controls(MFC Dll) into WPF application and render the same in xaml Grid/table.

Need examples to illustrate this aspect, (The property sheet has around 10 controls, I only need to render these values,from MFC(.dll) into and populate into WPF(.exe) datagrid.

Sincerely,
VishalK

0 Votes 0 ·

0 Answers