This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
developer:zoorhinoplugin [2020/11/25] sandy [Requirements] |
developer:zoorhinoplugin [2020/11/25] sandy [Adding Licensing Support to your Plug-in Project] |
||
---|---|---|---|
Line 18: | Line 18: | ||
Note, the Express Editions of Microsoft Visual Studio will **not** work, as they do not include MFC. | Note, the Express Editions of Microsoft Visual Studio will **not** work, as they do not include MFC. | ||
- | Also, all Rhino plugins that use the Rhino license manager to access the Zoo must be signed with an Authenticode certificate issued by McNeel Plugin Security. These certificates are free but must be requested by each developer. Developers must agree to the //Terms of Use// before a certificate is issued. | + | Also, all Rhino plugins that use the Rhino license manager to access the Zoo must be signed with an Authenticode certificate issued by McNeel Plugin Security. These certificates are free but must be requested by each developer. Developers must agree to the //Terms of Use// before a certificate is issued. |
- | Digitally Signing Plugins | + | ===== Creating a Rhino C++ Plugin |
- | + | The following are the general steps required to create a Rhino plugin. | |
- | ===== Creating a Rhino C++ Plug-in | + | - Make sure you have Rhino 5.0 installed. |
- | The following are the general steps required to create a Rhino plug-in. | + | - Make sure you have the Rhino 5.0 C++ SDK installed. |
- | - Make sure you have the [[http:// | + | |
- | - Make sure you have the [[http:// | + | |
- Launch Microsoft Visual Studio 2010. | - Launch Microsoft Visual Studio 2010. | ||
- | - Create a new project, in C++, based on the **Rhino 5.0 Plug-in** project template. | + | - Create a new project, in C++, based on the **Rhino 5.0 Plugin** project template. |
- | - Build your plug-in. | + | - Build your plugin. |
- | - Launch Rhino and use **PlugInManager** to install your plug-in | + | - Launch Rhino and use **PlugInManager** to install your plugin |
- | ===== Adding Licensing Support to your Plug-in | + | ===== Adding Licensing Support to your Plugin |
- | After you have built and tested your basic plug-in, you can add licensing support as follows: | + | After you have built and tested your basic plugin, you can add licensing support as follows: |
- Add a new .CPP file to your project. | - Add a new .CPP file to your project. | ||
- In this .CPP file, declare a new class that is derived from **CRhinoLicenseValidator**. | - In this .CPP file, declare a new class that is derived from **CRhinoLicenseValidator**. | ||
- Override the **CRhinoLicenseValidator:: | - Override the **CRhinoLicenseValidator:: | ||
- | - Override and implement the **CRhinoLicenseValidator:: | + | - Override and implement the **CRhinoLicenseValidator:: |
- Create one (and only one) static instance of your object. | - Create one (and only one) static instance of your object. | ||
- | - In your plug-in' | + | - In your plugin' |
- | - Build your plug-in. | + | - Build your plugin. |
- | - [[developer: | + | - [[developer: |
- | - Launch Rhino and test your plug-in. When your plug-in is loaded | + | - Launch Rhino and test your plugin. When you load your plugin |
{{: | {{: | ||