Sign in to follow this  

Tried to run/compile 3dsmaxappwizard, but no good

Recommended Posts

lucky6969b    1330

I am using Visual Studio 2010 Ultimate, when I change the AppPath then copying everything to VCProjects directory, the final step crashes my IDE. So I decided to recompile the app wizard, but there are lots of errors associating with it.


I found a path [! output SDKPATH_LIB64] specified in this option (Additional Library Directories).
And some source code related to this

// Copyright (c) 1998-2007 Autodesk, Inc.
// All rights reserved.
// These coded instructions, statements, and computer programs contain
// unpublished proprietary information written by Autodesk, Inc., and are
// protected by Federal copyright law. They may not be disclosed to third
// parties or copied or duplicated in any form, in whole or in part, without
// the prior written consent of Autodesk, Inc.
// DESCRIPTION: Appwizard generated plugin

#include "[!output PROJECT_NAME].h"

#define [!output CLASS_NAME]_CLASS_ID    Class_ID([!output CLASSID1], [!output CLASSID2])

#define PBLOCK_REF    0

class [!output CLASS_NAME] : public [!output SUPER_CLASS_NAME]
    [!output CLASS_NAME]();
    virtual ~[!output CLASS_NAME]();

And these

... HTML code
        <SCRIPT language="JSCRIPT">

var tab_array = new Array();
tab_array[0] = Default;
tab_array[1] = Page_2;
tab_array[2] = Page_3;

function PopulateFields()
    // Populate base class list
    var baseArray = new Array();
    baseArray[0] = window.external.FindSymbol("BASECLASS_1");
    baseArray[1] = window.external.FindSymbol("BASECLASS_2");
    for (var i =0; i < baseArray.length; i++)
        if (baseArray[i] != '')
            var oOption        = document.createElement("OPTION");
            oOption.text    = baseArray[i];
            oOption.value    = baseArray[i];
    // Also adding project name as default class name
    var projectName    = new String();
    var className    = new String();
    projectName = window.external.FindSymbol("PROJECT_NAME");
    className    = projectName.replace(/ /g, "_");
    CLASSNAME_TEXTBOX.value = className;

However, I can't get it compiled after setting a variable called SDKPATH_LIB64 for my system environment. Any one knows how they actually work together?

Edited by lucky6969b

Share this post

Link to post
Share on other sites
Vortez    2714

Don't mess with the app wizard then, just use the x64 lib folder instead, add it to the project settings, additional libraries setting.


This way you can compile your code in 32 and 64 bits just by changing a project settings. I don't remember how i did it, but when i load my Exporter/Importer project, i can compile in 32 bits or 64 bits by changing a combobox in my tool bar, and the lib directory get changed automatically.


Took me a while to get it to work though.

Edited by Vortez

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this