All-In-One Interop and Fusion Code Samples 

Introduction

The All-In-One Interop and Fusion code samples demonstrate the typical programming topics about .NET - native interop, COM interop, fusion, .NET Reflection, etc. These topics are either frequently asked in MSDN forums and Microsoft Support, or are requested by many developers via our code sample request function. We want to alleviate the frustration felt by developers when they are interoperating between .NET and native, or loading libraries.

 

Visual Studio 2008 Code Samples

Sample Description Download ReadMe
CppCallNETAssemblyWrapper C++ indirectly call .NET assembly via C++/CLI wrapper Download ReadMe.txt
CppCLINativeDllWrapper C++/CLI Wrapper for native DLL Download ReadMe.txt
CppCLINETAssemblyWrapper C++/CLI Wrapper for .NET assembly Download ReadMe.txt
CppDelayloadDll C++ delay-loads a DLL Download ReadMe.txt
CppDynamicLinkLibrary C++ Dynamic-link Library Download ReadMe.txt
CppHostCLR C++ host CLR and call .NET assembly Download ReadMe.txt
CppImplicitlyLinkDll C++ implicitly links a DLL Download ReadMe.txt
CppLoadLibrary C++ dynamically loads a DLL Download ReadMe.txt
CppStaticallyLinkLib C++ statically links a static library Download ReadMe.txt
CppStaticLibrary A C++ Static Library Download ReadMe.txt
CSCallNativeDllWrapper C# indirectly call native DLL via C++/CLI wrapper Download ReadMe.txt
CSClassLibrary A C# Class Library Download ReadMe.txt
CSEmitAssembly C# emits an assembly with types in runtime Download ReadMe.txt
CSLoadLibrary C# dynamically loads a native DLL Download ReadMe.txt
CSPInvokeDll C# P/Invokes a native DLL Download ReadMe.txt
CSReflection C# dynamically loads and uses the types of an assembly Download ReadMe.txt
VBCallNativeDllWrapper VB indirectly call native DLL via C++/CLI wrapper Download ReadMe.txt
VBClassLibrary A .NET Class Library (VB) Download ReadMe.txt
VBLoadLibrary Dynamically load native dll (VB) Download ReadMe.txt
VBPInvokeDll PInvoke native dll (VB) Download ReadMe.txt
VBReflection Dynamically loads and uses the types of an assembly (VB) Download ReadMe.txt

 

Visual Studio 2010 Code Samples

Sample Description Download ReadMe
CppHostCLR C++ host CLR 4 and call .NET assembly Download ReadMe.txt
CSClassLibrary A C# Class Library Download ReadMe.txt

 

Download all code samples: http://1code.codeplex.com/releases

 

Submit your request of Interop and Fusion code samples (Guidance)

Last edited Jan 23, 2011 at 11:36 AM by Jialiang, version 5

Comments

edis219 May 17, 2012 at 6:58 AM 
I can't download the code samples. Would the author check it?

Thanks in advanced:-)