Creating a Rhino-dependent C++ DLL
Windows only
        
        
    
Overview
A Rhino-dependent C++ DLL is one that links with Rhino C++ SDK libraries, and that can be used to add functionality that can be shared between multiple C++ plug-ins, or that can be used to add Platform Invoke (PInvoke), interop functionality to RhinoCommon or Grasshopper plug-ins.
Create the DLL
To create a Rhino-dependent C++ DLL:
- Download and install the Rhino C++ SDK.
 - Launch Visual Studio.
 - Create a new Rhino C/C++ plug-in project.
 - Using Solution Explorer, delete the 
<Project>PlugIn.cpp and .h files, and delete the<Project>Command.cpp file. - Using Property Manager, remove the 
Rhino.Cpp.PlugInproperty page from both theDebug|x64and theRelease|x64build configurations. - Again using Property Manager, add the 
Rhino.Cpp.PlugInComponent.propsproperty page to both theDebug|x64and theRelease|x64build configurations. The property page file is found in the `PropertySheets`` folder in the Rhino C++ SDK installation folder. - Build the project.
 
Done! You now have a Rhino-dependent DLL project. Now you are ready to add your functionality; either by adding or linking in other libraries, or by exporting custom C++ functions.
