C++/CLI wrapper for native DLL (CppCLINativeDllWrapper)

The code sample demonstrates using C++/CLI to wrap a native DLL. Your .NET project can reference the C++/CLI wrapper to indirectly call the native DLL

C++ (58.5 KB)
3.3 Star
15,677 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook
using namespace System;
using namespace System::Reflection;
using namespace System::Runtime::CompilerServices;
using namespace System::Runtime::InteropServices;
using namespace System::Security::Permissions;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly:AssemblyCompanyAttribute("Microsoft Corporation")];
[assembly:AssemblyCopyrightAttribute("Copyright (c) Microsoft 2010")];

// Version information for an assembly consists of the following four values:
//      Major Version
//      Minor Version
//      Build Number
//      Revision
// You can specify all the value or you can default the Revision and Build Numbers
// by using the '*' as shown below:




[assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)];