C # for UI, C ++ for library

I have a digital library encoded in C ++.

I am going to create a user interface for the library. I know a little MFC. Thus, one of the solutions is to use MFC and create your own application.

An alternative is C #. I don't know anything about C #. But I think it should be easy to learn.

Some tutorial for mixed programming of C ++ and C # would be very useful for me.

Thanks!

Yin

+3
source share
6 answers

I would recommend using Windows Forms or WPF through C # for your GUI.

++/CLI, .NET-. # ( #).

Nishant Sivakumar ++/CLI CodeProject ++/CLI ++. .

MSDN - , Windows Forms #.

+8

# WinForms WPF .

P/Invoke ++/CLI, .NET- .

IMHO # , MFC, .

+3

# . -, dll, . msdn page

+1

#. MFC , , - - , MFC. WPF, , .

0

SWIG. ++ dll, # UI.

0

If you have a source for your C ++ numerical library, you can change it to compile as a C ++ / CLI, after which you can reference it the same way as any other .NET library. It should not require a lot of work to change the source of C # defines for conditional compilation of C ++ / CLI.

0
source

Source: https://habr.com/ru/post/1722806/


All Articles