Visual studio cannot find dllentry.cpp

Visual studio cannot find dllentry.cpp

Anonymous
Not applicable
1,623 Views
9 Replies
Message 1 of 10

Visual studio cannot find dllentry.cpp

Anonymous
Not applicable

Hi:

 

I am a new 3ds max sdk developer.

 

Visual studio cannot find dllentry.cpp when I am using the wizard.

Problem 3ds max sdk.JPG

 

Thanks very much!

0 Likes
Accepted solutions (2)
1,624 Views
9 Replies
Replies (9)
Message 2 of 10

omidt_gh
Enthusiast
Enthusiast
Accepted solution

First you need to add wizard to your visual studio.


Installing
----------

1. Open the 3dsmaxPluginWizard.vsz file (which is located in the 3dsmaxPluginWizard root directory) in a text editor and
edit the ABSOLUTE PATH parameter to reflect the new location of the 3dsmaxPluginWizard root directory. Do not add a backslash after the directory name.

Param="ABSOLUTE_PATH = [Absolute Path Location of 3dsmaxPluginWizard Root Directory]"

2. The version of Visual Studio you are using will determine what value to use for the 'Wizard' variable in the file 3dsmaxPluginWizard.vsz.

For Visual Studio 2010 use: Wizard=VsWizard.VsWizardEngine.10.0
For Visual Studio 2012 use: Wizard=VsWizard.VsWizardEngine.11.0
For Visual Studio 2015 use: Wizard=VsWizard.VsWizardEngine.14.0
For Visual Studio 2017 use: Wizard=VsWizard.VsWizardEngine.15.0

3. Copy the following files from the 3dsmaxPluginWizard root directory to the 'VC\VCProjects' directory under your Visual Studio installation (e.g. for
Visual Studio 2015 copy them to C:\Program Files(x86)\Microsoft Visual Studio 14.0\VC\VCProjects and for
Visual Studio 2017 copy them to C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\vcprojects):

3dsmaxPluginWizard.ico
3dsmaxPluginWizard.vsdir
3dsmaxPluginWizard.vsz

If you are using Visual Studio Express Edition, you need to copy the files listed above to the 'VC\Express\VCProjects' folder.

4. Make all the files in the 3dsmaxPluginWizard root directory writable instead of read-only. If this is not done, then Visual Studio may generate an
error after creating the plugin project.

5. At this point the 3ds Max Plugin Wizard project should appear under File:New:Projects:Visual C++ Projects in Visual Studio.


Usage
-----
The wizard will guide you through the steps involved in setting up your 3ds Max plugin project.

As of 3ds Max 2020, the preferred UI framework for 3ds Max plugins is Qt. Qt UI support has been implemented for the following plugin types, and is the default UI option:

* Utility (UtilityObj)
* Procedural Objects (GeomObj and SimpleObj2)
* Modifiers (Modifier and SimpleMod2)


Note
----
1. The name of the project you specify should not start with a number. This is because the wizard takes that name, and creates variables based on it.
If an identifier starts with a number, then your project won't compile.

 

Then

You need to copy all DLL files in the root of 3dsmax or side by side of your plugin.
you can see what dll has been used in your plugin by check your file in command-line tools.

run -> cmd

Then use this command

dumpbin /imports MaxToLux.dlr

it will show you what dll you used inside your plugin you need to add dll's if they are not already inside 3dsmax or system32 folder.

0 Likes
Message 3 of 10

omidt_gh
Enthusiast
Enthusiast

If you want to do it manually you need to add Additional include

$(ADSK_3DSMAX_SDK_2019)\include;%(AdditionalIncludeDirectories)

in C/C++ section inside project manager
and

$(ADSK_3DSMAX_SDK_2019)\lib\x64\Release;%(AdditionalLibraryDirectories)

inside linker additional library
Then add

bmm.lib; core.lib; geom.lib; gfx.lib; mesh.lib; maxutil.lib; maxscrpt.lib; manipsys.lib; paramblk2.lib;;%(AdditionalDependencies)


inside Linker -> input -> additional dependencies
And you are good to go.

0 Likes
Message 4 of 10

Anonymous
Not applicable
Accepted solution

Thanks, it is fixed.

 

Here I get another problem.

I am installing qt now.

 

I am using visual studio 2017 and 3ds max 2020.

 

under

https://help.autodesk.com/view/3DSMAX/2020/ENU/?guid=__developer_writing_plug_ins_using_qt_with_3ds_...

It says I need install Qt 5.11.2, but there is only 5.12.2

qt install.PNG

I installed 5.12.2 and I do not know how to using the $(QTVER) and $(QTDIR) macros

 

Thanks very much!

0 Likes
Message 5 of 10

omidt_gh
Enthusiast
Enthusiast

First, you need to mark my answer as the correct answer.
About the QT you can use QT 5.12 with no problem at all.
Qt 5.11 and 5.12 are more or less the same. just address it correctly in your project.

0 Likes
Message 6 of 10

Anonymous
Not applicable

I accepted your solution.

How to mark your answer as correct answer?

0 Likes
Message 7 of 10

omidt_gh
Enthusiast
Enthusiast

you already did.
If you have any problem with QT post it here.

0 Likes
Message 8 of 10

Anonymous
Not applicable
0 Likes
Message 9 of 10

Anonymous
Not applicable

Sorry, I reinstall the system, the "cannot find dllentry" problem happened again.

I already set the 3 files under 3dsmaxPluginWizard writable, and the 3dsmaxPluginWizard folder itself writable, and the 3 files under vbprojects writable.

 

Is the problem "cannot find dllentry"  the problem when the filed are not writable?

 

Thx

0 Likes
Message 10 of 10

omidt_gh
Enthusiast
Enthusiast

NO, it shouldn't happen.
what visual studio version you use?

can you explain all steps you take?

0 Likes