Specifying the Output File

You now need to specify the output file name. The output file path consists of three parts: the directory path, the filename and the extension. Starting with Visual Studio 2010, the file path specified in the Linker > General > Output Directory property needs to match the paths specified under Configuration > General. That means the directory portion of the output path must match the Configuration > General > Output Directory property. Also the filename portion of the output path must match the Configuration > General > Target Name property. And the file extension part of the output path must match the Configuration > General >Target Extension property. If the paths do not match, the compiler will emit a long verbose warning. Therefore the easiest and best way to specify the output path is to specify the three separate elements of the output path under Configuration > General. For example:

  1. Open the Project Property Pages dialog (e.g. from the menu under Project > Properties ...)
  2. Choose All Configurations from the Configuration: drop-down list at the top of the dialog.
  3. From the tree-control in the left pane choose the Configuration Properties > General folder.
  4. For the Output Directory property, specify the path to where you want the file to be built.
  5. For the Intermediate Directory property, It is usually best to specify obj\$(Platform)\$(Configuration). That way the intermediate files for different build configurations do not overwrite each other. This will also allow you to quickly and easily delete any intermdiate files after the build is cleaned up.
  6. For the Target Name property specify the name of the file.
  7. For the Target Extension property specify the file extension of the file.
  8. From the tree-control in the left pane chose the Linker > General folder.
  9. For the Output File property specify $(OutDir)$(TargetName)$(TargetExt). This will take the values you entered in earlier and combine them to form the output path.

When the project is compiled and linked successfully, the DLL is written to this location.

The example output file used (myplugin.dlo) uses the extension typically used by object plug-ins. For a list of the standard filename extensions for all plug-ins see the topic Plug-in File Extensions. 3ds Max will only load DLLs that use these standard extensions.