Writing a DLL for C # and C ++ Applications

I need to write a couple of DLLs that will be available from a C # application and a C ++ application. Initially, I thought that I could save time / effort by writing DLLs in C # and contacting them from C # and C ++ applications. Is this approach reasonable or should DLLs be written using C ++?

+3
source share
3 answers

My advice will be to implement code in which you are most comfortable, but don't forget about requiring interop as you go. Know in advance what your interface is and what glue is required in the final product. Record the interface and test the interaction before you fill it.

, ++ , P/Invoke.

++/CLI ++. ++/CLI # .

+3

DLL ++, COM, ATL , tlbimp # COM.

+1

DLL .Net, # ++, , .

DLL , ++.

0
source

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


All Articles