|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1. Open Microsoft Visual Studio.) z' M' j6 h: G7 t% c
2. Create a new VC++ project using the NX Open AppWizard.* d0 M1 [5 V# E( y: p u
Create new project as:
8 o" m* o; j8 n' F& K7 f 2.1 File->New->Project.
. W+ Q, _1 K! A0 R: m* _ 2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,0 V+ ?* D, I, o' a2 Y B
Enter name as ExecuteCheckerAndGetResults. Click Next.. I1 _8 |. x, {3 G% b$ Y0 n' Q
2.3 Under Application Settings, select 'An Internal application that can be
P/ _# a8 s l ~( l b activated from an NX session (DLL)'.
! `- f( ?8 T$ p5 [7 z$ I' `( j7 B 2.4 Select C++ for What language would you like to use in the generated9 H& L0 v+ Y* C# t; l/ e) v8 F, D
source files. Click Finish.; D; p) D) O- `2 N
3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project( F6 d _& B5 x) D3 T
pull down and select "Add Existing Item...". Select the file using the popup window.
' c: B+ e" h- V7 P* m 4. Right-click this project in the Solution Explorer and select Properties on the popup menu.
) J1 x. i* s' w On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog.) M2 i7 a& m9 Y9 Q
Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.
# P0 o* T$ K# B$ \1 P" Q* |) N
9 d. g6 D) L+ u0 f& j# \ Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional
# Z) C7 H9 k' T+ v Include Directories.
) ^- J' E7 A. ?( `
8 j0 O& x9 r* k. h$ e; K Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional
2 A! B* m, K: }- S( L& { Library Directories.
1 A/ L+ Z- W7 c- \ 1 y" ~* T% a4 y& T6 m- L3 v0 F
Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are
3 H6 R- C* X$ d2 M ^& ^7 | existing in Additional Dependencies.; I0 q1 p( \/ f. L3 F. n2 m6 f+ @* r: y
Click OK button to close Configuration Manager dialog.) Q$ w7 t7 v6 z {& }
2 f: @# I! G/ P6 } {1 F# f5 y
) [3 N0 }0 g% `7 H( P 5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution".
' Z8 h( j& t' w, x) u; i6 N This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory.
' [ m8 \6 W6 {! s7 q7 k$ a5 k' ]* y. v, `
|
|