Is it possible to include sections of code written in Visual C ++ in my C # application, or vice versa? I know that you can do this in Objective-C, so I wanted to know if this is possible in C # (.NET 4.0).
Grade. You cannot include them directly in C #, but you can use C # and C ++ / CLI together, and most C ++ can also be compiled as C ++ / CLI.
Do you have a C ++ DLL? If so, you can call the C ++ DLL from C #. There are several questions in StackOverflow that discuss similar topics:
How to use C ++ library from C # and .NET?
DllImport , .
http://msdn.microsoft.com/en-us/library/aa288468%28VS.71%29.aspx
Not directly. You can create a DLL from C ++ code and call the specified code from C #.
See: Forum topic on the relevant topic and introduction for managed C ++ . Here is also an example of mixing C ++ / C # here , although it uses the command line to generate code.
Source: https://habr.com/ru/post/1762018/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1762013/cannot-get-social-media-share-buttons-to-line-up-in-inline-list&usg=ALkJrhgis6r4K_NTqCAErP3Wwc1qTGAFXArails: create a parent, if it does not exist, when creating a child entry - ruby-on-railsinvalid multibyte output after upgrading to rails 3 and ruby 1.9.2 - dtext = '[^ \\ x80]' - regexWindows Phone 7 Application Performance Profiling (SL / XNA) - performanceСтороннее приложение в iFrame должно поддерживать сессию заголовка/верхнего кадра - .netWarden vs Rack :: Auth :: Basic. Running HTTP-Basic-Auth in Ruby-Framework - authenticationInsertion into serialized array in PHP - phpC ++ to prevent class instance creation outside of a specific scope? - c ++regular expression space or start of input, space or end of input - javascriptHow to detect empty space in PHP? - phpAll Articles