Start by opening Visual Studio. Select File->New->Project… and create a Win32 Project in the same directory as the examples. Uncheck the Create directory for solution option.
In the Application Wizard, click Next to reach the Application Settings page and select DLL as the application type. Also, ensure that the Empty Project check box is checked. Then click Finish.
Your new empty project should now be open in Visual Studio.
Before we apply the settings, we need to add the 64-bit Unicode configurations. Open the Configuration Manager by clicking Build->Configuration Manager…
From the popup list under Active solution configurations, choose <New…>. Set the name to UDebug and Copy settings from: to Debug. Click OK and then repeat this process for URelease and Release.
From the popup list under Active solution platform, choose <New…>. Set the platform to x64 and Copy settings from to: Win32. Click OK, and then close the Configuration Manager.
Right click on the project in the Solution Explorer and select Properties from the menu.
The following properties need to be set in all configurations (Win32Release, Win32Debug, x64URelease, x64UDebug):
The purpose of this custom build step is to generate an XML file to accompany your plug-in. The XML file identifies the operators contained in your plug-in so that Spatial Modeler can learn their attributes (name, inputs and outputs) without needing to load your plug-in and its dependent libraries, which may be time consuming. This custom build step is optional but highly recommended.
Once all of the settings are correct, you are ready to begin coding your new plugin.
Previous article: Copying and Modifying an Example Project