|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1. Open Microsoft Visual Studio.
! g6 T( c. H$ a7 f; H" t! q2 R' J, A/ G 2. Create a new VC++ project using the NX Open AppWizard.
5 |% F7 W* }: o1 U$ q; e$ G x- H* Z+ a Create new project as:1 @& t! {1 u H. t6 Y/ K
2.1 File->New->Project.
9 F& i( c' J ?$ o/ c 2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,0 d: o+ B6 @ i$ W5 B
Enter name as ExecuteCheckerAndGetResults. Click Next." O( B' K- W2 e
2.3 Under Application Settings, select 'An Internal application that can be
' N) K. C1 I/ h activated from an NX session (DLL)'.* C& W- Q: t9 _( F2 D
2.4 Select C++ for What language would you like to use in the generated
$ W# g) h7 ^2 e$ { source files. Click Finish.
, S' |5 Y* Z/ L+ Y) u 3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project- w6 d0 a2 ?- w4 R
pull down and select "Add Existing Item...". Select the file using the popup window.
) y9 W0 O5 \7 p6 s 4. Right-click this project in the Solution Explorer and select Properties on the popup menu.* z# j( {% N/ B% y. U" J* c
On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog.! d5 A# G, m( S7 } M+ K- W
Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.
# w: @* g( X, _% r0 e
# D0 |" E, a3 Q2 u* M& f Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional( \$ F d5 R$ Z$ d
Include Directories.0 S7 |% r4 L8 S% t' L6 i
; G- [- s8 I, r Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional
: L1 e! @4 p5 Z9 {$ o Library Directories.+ ]4 c$ X7 Z- Q9 @
3 \& G4 g+ v0 ?& Q
Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are
3 T- v) `1 Q3 N# b existing in Additional Dependencies.; I! X9 m+ O! `/ Q. O' t, |
Click OK button to close Configuration Manager dialog.
K: V9 J/ u' T0 d
8 b' }( d- w" \* E$ m3 |9 ]1 s/ i4 u; q
/ H. e- {8 m+ {# P! Q 5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution"." t+ V1 Z' l- T& ]% i" B
This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory., e" R( v: R2 k' ~8 s; m8 w% B2 r1 H
6 ^6 r5 M5 v: a- J
|
|