|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1. Open Microsoft Visual Studio.
; ?: }, A- C5 L0 C3 I 2. Create a new VC++ project using the NX Open AppWizard.& X% G; E; L9 O0 y: a4 ?
Create new project as:
! c) w1 U) C8 _) r& D* H" _: y. f 2.1 File->New->Project./ G K" o3 p5 k
2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,. h' w, l. g- D M. R
Enter name as ExecuteCheckerAndGetResults. Click Next.
& L$ l+ N: h4 W( Y- j2 \' F0 a 2.3 Under Application Settings, select 'An Internal application that can be* r. F% R+ T+ A# |6 {0 g8 L
activated from an NX session (DLL)'.
% b5 _5 U* X5 ` 2.4 Select C++ for What language would you like to use in the generated
# x8 ?# O A" a4 ^6 t" m source files. Click Finish.* G6 \2 }, m2 M% ?& k r
3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project
% S) ~9 I" A# j" d% m pull down and select "Add Existing Item...". Select the file using the popup window.
# `" j2 i8 V5 V7 {0 g2 E# j. Y 4. Right-click this project in the Solution Explorer and select Properties on the popup menu.$ ?/ ^7 Q& F. g) M1 |: M
On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog.
6 m1 i$ i' g" j+ O: w8 S Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.* v) W( g m1 J6 T) x5 L% _' v
9 |6 n0 z& z6 O1 J- S9 x5 Q Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional* l& {% Q. _0 Z, x3 D' }( h& a
Include Directories.
' D7 x& t# @+ a% a2 @" X # y7 T7 \8 b. N; N5 p# ]4 h
Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional
" v' _: x9 H2 x4 S9 c+ q+ q u& E Library Directories.
9 Q$ t6 }0 F; b7 g6 M 1 L% g3 c Y1 h! z5 {# q
Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are
% n d1 e! x9 }9 X( L2 ]% `9 m/ ]4 X6 j A existing in Additional Dependencies.
7 K9 |, M8 J! z$ c Click OK button to close Configuration Manager dialog.
# u; l; i( h9 p2 M$ v1 Q/ e9 p2 H, ^. Y8 V a6 @
: W5 G# ?% `+ A! {# L 5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution"./ M& a: b* |, t1 h$ n7 ^
This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory.; d; }4 ~3 n) E
3 E6 a6 n, n. Z2 q1 f0 e1 B/ \ |
|