admin 发表于 2014-1-19 17:53:39

Using Visual Studio - create a new project using the NX Open AppWizard

1. Using Visual Studio - create a new project using the NX Open AppWizard.
      This is described in the NX Open for C/C++ -> Open C Reference Guide ->
      Overview -> setting up your system.The image being created is an external
      User Function program using C++ and Open C++ calls.
   2. Make sure configuration type of the project is Dynamic Library (.dll) . Go to
      Project->Properties (Alt + F7), select/expand Configuration Properties->General and set
      the "Configuration type" to Dynamic Library (.dll).
   3. Make sure the output file is generated with extension .dll. Go to
      Project->Properties (Alt + F7), select/expand Configuration Properties->Linker and set the
      "Output File" with the .dll extension.
   4. Add the OntSelectionBoilerPlate.cpp file by selecting the Project
      pulldown and select "Add Existing Item...".Select the file using the popup
      window.
   5. Add $(UGII_BASE_DIR)\ugopenpp as one of the include directories. Go to Tools->Options,
      select/expand Projects and Solution->VC++ Directories. On right side window select
      "Include files" option available under "Show Directories for:" pulldown. Add $(UGII_BASE_DIR)\ugopenpp
      to the existing list.
   6. Add libopenpp.lib and libvmathpp.lib libraries to the project. Go to Project->Properties (Alt + F7),
      select/expand Configuration Properties->Linker->Input. Provide libopenpp.lib and libvmathpp.lib
      in the "Additional Dependencies" row.
   7. Build the external image by going to the Build menu and selecting either
      "Build Solution" or "Rebuild Solution".
      This will create an Dynamic Library called OntSelectionBoilerPlate.dll in the Debug directory.

sl2651668521 发表于 2014-3-5 15:58:14

这是什么啊

Mr_yuan 发表于 2014-4-18 21:29:55

sl2651668521 发表于 2014-3-5 15:58
这是什么啊

项目属性
和环境变量设置
页: [1]
查看完整版本: Using Visual Studio - create a new project using the NX Open AppWizard