Skip navigation
Cedric Cicada xyzabcdef
Currently Being Moderated

What version of Visual Studio should I use to build the samples in the CS5 plug-in SDK?

Jul 25, 2013 5:35 PM

I just downloaded the plug-in SDK for CS5.  I tried to build two of them in Visual Studio 2012.  VS2012 had to convert them for me.  The first one, 3DHeightField, failed abysmally, as it tried to redefine standard library keywords for no reason I'll ever understand.  It told me to enable warning CS4005 to find the illegal #define statement, but I don't know how to enable warnings, only how to disable them.

 

The second I tried, Dissolve, failed because the compiler could not find afxres.h.

 

What is the recommended way to build these projects?  And, if possible, could someone please point me to a sample filter plug-in project that will build in Visual Studio 2012 without having to be converted from some older version of Visual Studio?

 

Thank you very much.

 

RobR

 
Replies
  • Currently Being Moderated
    Jul 30, 2013 1:43 PM   in reply to Cedric Cicada xyzabcdef

    You can build these with Visual Studio 2012.  You just need to add the following preprocessor definition to your project.

     

    _ALLOW_KEYWORD_MACROS

     

    If adding it to your project doesn't work, you can also #define it in a source or header file that gets read early in the chain.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points