Hello!
I’m getting the following errors (in the screenshots) when trying to build the solution in VS 2026. I’m fairly confident I have all the necessary SDK components, and the Rhino VSIX seems to run with no issues. I can build and run C# for Rhino with no issues. Is this an issue with C++ in VS 2026 or is there a new step I’m missing? I’ve done everything the same as I had in VS 2022. Below is the precompiled header code.
Thank you.
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
#pragma once
#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#endif
// This plug-in is Rhino 6 ready
#define RHINO_V6_READY
// If you want to use Rhino's MFC UI classes, then
// uncomment the #define RHINO_SDK_MFC statement below.
// Note, doing so will require that your plug-in is
// built with the same version of Visual Studio as was
// used to build Rhino.
//#define RHINO_SDK_MFC
// Plug-ins must use the release version of MFC used by Rhino.
// Plug-ins that require debugging information need to be built with
// RHINO_DEBUG_PLUGIN defined.
#if defined(RHINO_DEBUG_PLUGIN) && defined(_DEBUG)
// Rhino 6 Debug plug-ins should define RHINO_DEBUG_PLUGIN,
// but not define _DEBUG in the .vcxproj file.
#error Do not define _DEBUG - use RHINO_DEBUG_PLUGIN instead
#endif
// Rhino SDK Preamble
#include "RhinoSdkStdafxPreamble.h"
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#ifndef _AFX_NO_OLE_SUPPORT
#include <afxole.h> // MFC OLE classes
#include <afxodlgs.h> // MFC OLE dialog classes
#include <afxdisp.h> // MFC Automation classes
#endif // _AFX_NO_OLE_SUPPORT
#ifndef _AFX_NO_DB_SUPPORT
#include <afxdb.h> // MFC ODBC database classes
#endif // _AFX_NO_DB_SUPPORT
#ifndef _AFX_NO_DAO_SUPPORT
#include <afxdao.h> // MFC DAO database classes
#endif // _AFX_NO_DAO_SUPPORT
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
#include <afxsock.h> // MFC socket extensions
// TODO: include additional commonly used header files here
#if defined(_M_X64) && defined(WIN32) && defined(WIN64)
// The afxwin.h includes afx.h, which includes afxver_.h,
// which unconditionally defines WIN32 This is a bug.
// Note, all Windows builds (32 and 64 bit) define _WIN32.
// Only 64-bit builds define _WIN64. Never define/undefine
// _WIN32 or _WIN64. Only define EXACTLY one of WIN32 or WIN64.
// See the MSDN "Predefined Macros" help file for details.
#undef WIN32
#endif
// Rhino SDK classes
#include "RhinoSdk.h"
// Rhino Render Development Kit (RDK) classes
#include "RhRdkHeaders.h"
// TODO: include additional Rhino-related header files here
#if defined(RHINO_DEBUG_PLUGIN)
// Now that all the system headers are read, we can
// safely define _DEBUG so the developers can test
// for _DEBUG in their code.
#define _DEBUG
#endif
// Rhino SDK linking pragmas
#include "rhinoSdkPlugInLinkingPragmas.h"

