Referencing RhinoCommon cpp

Hi

I am writing a dll in which I eventually would like to call methods from the RhinoSDK.
What would be the settings in Visual Studio to be able to call the RhinoSDK??

This DLL is obviously called by Rhino itself once working.

At the moment I have a project for testing. The only code on it is #include "rhinoSDK"
And here the output:

1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------
2>------ Build started: Project: CRhinoDLLTest, Configuration: Debug x64 ------
2> dllTest.cpp
2> — rhinoSDK.h — Building Debug Rhino V5 plug-in
2> — rhinoSDK.h — Using Visual Studio 2010 compiler tools.
2>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\commctrl.h(26): error C2059: syntax error : 'return’
2>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\prsht.h(97): error C2065: ‘CALLBACK’ : undeclared identifier
2>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\prsht.h(97): error C2065: ‘LPFNPSPCALLBACKA’ : undeclared identifier
2>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\prsht.h(97): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\prsht.h(97): fatal error C1903: unable to recover from previous error(s); stopping compilation
3>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug x64 ------
3>Project not selected to build for this solution configuration
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========

Thanks
Manuel

If you want to call functions in the Rhino SDK, then you need to create a Rhino plug-in.

Here is how you get started: