4.8.1.1. Step to create DLL

4.8.1.1.1. Run Microsoft® Visual Studio

  1. Select New in the File menu. (Displayed as Figure 4.97.)

    ../_images/image3043.png

    Figure 4.97 Opening New Project

    1. Select the Project.

  2. The New Project Window is displayed as Figure 4.98.

    ../_images/image3052.png

    Figure 4.98 New Project Window

    1. Select RecurDyn in Visual C++ Project. (In the case of creating the FORTRAN project, you should select Visual C++.)

    2. Select RecurDyn User SubRoutine Wizard in Templates.

    3. Define Name, Location, and Solution Name.

    4. Click OK.

  3. RecurDyn User SubRoutine Wizard Window is displayed as Figure 4.99.

    ../_images/image3062.png
    ../_images/image3072.png

    Figure 4.99 RecurDyn User SubRoutine wizard Window

    1. Select a Compiler as C/C+ or Intel FORTRAN.

    2. Click Next.

    3. Select a desired User Subroutines.

    4. Click Finish.

  4. In the case of the C++ project, follow the next steps. (Displayed as Figure 4.100.)

    ../_images/image3081.png

    Figure 4.100 C++ Project

    1. Open the DllFunc.cpp file.

    2. Implement user’s codes in the DllFunc.cpp file.

    3. Select the Debug option or the Release option.

    4. Create the user DLL file by using the Rebuild Solution option or the Build Solution option of Visual Studio 2015.

  5. In the case of the FORTRAN project, follow the next steps. (Displayed as Figure 4.101.)

    ../_images/image3092.png

    Figure 4.101 Fortran Project

    1. Open the DllFunc.for file.

    2. Implement user’s codes in the DllFunc.for file.

    3. Select Extract Compaq Visual Fortran Project Items after clicking the right of the mouse on the project name in Solution Explorer.

    4. Select the Configuration Manager option.

    5. Select the <New…> option of Active Solution platform in the Configuration Manager dialog box as shown in Figure 4.102.

      ../_images/image3102.png

      Figure 4.102 Configuration Manager dialog Box

    6. Click OK in the New Solution Platform dialog box as shown in Figure 4.103.

      ../_images/image3111.png

      Figure 4.103 New Solution Platform dialog Box

    7. Select the Debug option or the Release option as shown in Figure 4.104.

      ../_images/image3123.png

      Figure 4.104 Selecting the Debug or the Release Option

    8. Create the user DLL file by using the Rebuild Solution option or the Build Solution option of Visual Studio 2015.