Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Write Max plugins with VC++ 2010 Express...

1 REPLY 1
Reply
Message 1 of 2
PhilHook
770 Views, 1 Reply

Write Max plugins with VC++ 2010 Express...

Hi all...  (Apologies for the lengthy post!)

 

I'm trying to get setup with VC++ 2010 Express to develop plugins for Max - or at least start learning the process...  I've got extensive Maxscript experience, along with a number of other scripting languages, but no C++ experience, so I'm a total Noob when it comes to plugins!

 

After 2 days spent tinkering I've hit a roadblock I can't Google my way out of!... I'm sure there are others out there in the same bind - hopefully someone has some answers!

 

-------------------------------------------------

My setup is as follows...  (following the specs outlined here)

 

Windows 7 Home Premium 64bit

 

3ds Max 2013 64-bit

 

3ds Max SDK 2013

 

Direct X SDK (June 2010)

(http://www.microsoft.com/en-au/download/details.aspx?id=6812)

-- Needs to be installed before V C++ 2010 because of conflicts explained here

 

Visual C++ 2010 Express

(http://www.visualstudio.com/en-us/downloads#d-2010-express)

 

VS 2010 Service Pack 1

(http://www.microsoft.com/en-au/download/details.aspx?id=23691)

 

VS 2010 Compiler Update (KB2519277)

(http://www.microsoft.com/en-au/download/details.aspx?id=4422)

-- Needs to be installed to fix errors caused by the SP1 installation

 

Windows SDK for Windows 7 and .NET Framework 4

(http://www.microsoft.com/en-au/download/details.aspx?id=8279)

 

Once all were installed successfully, I followed the Plugin Wizard setup instructions...

 

-------------------------------------------------

 

The Wizard seems to work fine - it generates all the files outlined in the help doc (for a Utility plugin at least)...

 

In the Project Properties, I then do the following...

- Set Configuration as 'HybridUnicode'

- Set the Platform as 'x64'

 

In user32.lib VC++ Directories > Include Directories I add : $(ADSK_3DSMAX_SDK_2013)include

 

In Configuration Properties > VC++ Directories > Library Directories I add : $(ADSK_3DSMAX_SDK_2013)x64\lib
 
In testProj.rc I comment out #include "afxres.h" (as it causes fatal error RC1015) and add #include "WinResrc.h" and #define IDC_STATIC -1

 

 

-------------------------------------------------

 

When I build, I get this error...

C:\Program Files\Microsoft SDKs\Windows\v7.1\lib\x64\user32.lib : fatal error LNK1107: invalid or corrupt file: cannot read at 0x22C38

 

I notice that user32.lib appears in list of Inherited values under Configuration Properties > Linker > Input > Additional Dependencies...  I tried building with inherit disabled, but I just get a different error...

 

Any help - any at all - would be very much appreciated...

 

Cheers

1 REPLY 1
Message 2 of 2
akira.kudo
in reply to: PhilHook

Hi

 

I am sorry for delay.

I had been trying to build same environment from scratch. (installing windows, VS and etc...) Unfortunately I am hitting another problem below now. Bulding plugin with x86 works fine, but not for x64 due to missing the "ConfigurationGeneral" rule as below.

-----------------------------------------------------------------------------
 
1>Error: The "ConfigurationGeneral" rule is missing from the project.
 
-----------------------------------------------------------------------------

From the matrix below, it seems that the Express does not support 64-bit x64 compiler.
http://msdn.microsoft.com/en-us/library/hs24szh9.aspx

So can you try to install another VisualStudio, not Express?





Akira Kudo

Developer Technical Services

Autodesk Developer Network


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report