Transferred from:
Http://www.cppblog.com/mzty/archive/2007/04/16/22064.html
C # interface, C ++Algorithm
C # interface, C ++ core algorithm (. NET interaction with C ++)
Background:
C ++ uses her popularity, complexity, and efficiency for everyone. C # serves. net stands for language. Compared with C ++, it is a fully object-oriented language. net Framework provides a powerful library to enable C # to achieve rapid development. The combined use of C ++ and C # allows us to develop products with better user satisfaction at a more reasonable cost.
Advantages:
1) fast and efficient: Effectively combines the high performance of C ++ with the high efficiency of. net
2) Security: prevents the core of. Net Writing Code Decompiled to enhance the protection of software intellectual property rights
Basics:
1) C ++/managed C ++/CLI/C # concepts, relationships, and syntax
2) VS 2005 ide
Chapter:
Basic chapters:
1) C ++ DLL
2) C ++ com
3) C # DLL com
4) C ++/CLI
5) Correspondence and conversion between C ++ and basic types in. net
Interaction skills:
1) use. NET Framework in C ++
2) C ++ calls C #'s com (reprinted)
3) c ++ calls the DLL compiled by. NET through C ++/CLI
1) C # Call Win32 API through P/iovoke
3) C # Call C ++'s com
2) C # Call C ++ DLL through C ++/CLI
Advanced:
1) Conversion of struct in P/invoke
2) C ++ and C # are mixed into an assembly (reproduced)
3) platform call mail data http://msdn2.microsoft.com/zh-cn/library/fzhhdwae (vs.80). aspx
4) How to: Map hresult and exception http://msdn2.microsoft.com/zh-cn/library/9ztbc5s1 (vs.80). aspx
Instance Section:
1) a cli/C ++ DLL is simultaneously called by C # EXE and nativec ++ exe
2) use of mixed classes in CLI/C ++
3) nativec ++ calls the form of C # Through CLI
4) C # form calls C ++ DLL through CLI
Others Article :
1) Native string and system: String Conversion in CLI
References:
1) standard documents: http://www.ecma-international.org/publications/standards/Ecma-372.htm
2) A design rationale for C ++/CLI: http://www.gotw.ca/publications/C++CLIRationale.pdf
(3) STAN Lippman's blog: http://blogs.msdn.com/slippman/
4) C ++/CLI in Action (rjl 11,200 7) (who knows where to download it? Let's talk about it! Thank you !~)
5) expert visual c ++/CLI:. Net for Visual C ++ programmers (rjl 9, 2007)
6) Pro visual c ++/CLI and the. NET 2.0 platform (December 21,200 5)
Summary: The above articles may have many problems. Thank you very much for making progress together!