|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1. Open Microsoft Visual Studio.3 q8 d( V" P; L0 r
2. Create a new VC++ project using the NX Open AppWizard.- D, l* v4 P8 K
Create new project as:9 ^+ F. B7 h) y+ ~
2.1 File->New->Project.3 e v. F: i @1 C a
2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,
6 V* D% e4 @! x, \9 h Enter name as ExecuteCheckerAndGetResults. Click Next.
. I/ h# q4 D" l; o2 r! E 2.3 Under Application Settings, select 'An Internal application that can be
( h$ Z/ Y- g$ {4 z. C! [7 | activated from an NX session (DLL)'.
+ v, j& X) F( G0 `) \% E 2.4 Select C++ for What language would you like to use in the generated* g8 R. L4 I& P' p* `' |( \
source files. Click Finish.
2 c6 G" K0 C- F. d$ {+ f 3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project- I+ m5 _" O0 s
pull down and select "Add Existing Item...". Select the file using the popup window.& R9 M; x/ O- Q6 ^
4. Right-click this project in the Solution Explorer and select Properties on the popup menu.' D x' M$ c: ]) { d! ]
On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog.
5 i$ q5 ^. `3 L( \) ]6 w0 a Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.
& X Z6 S+ [6 J4 O7 n1 c
- A/ Q3 P0 v$ C: [- ^2 Q8 P9 X Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional1 O7 ~1 i1 m" {: ]/ i1 @) v
Include Directories.- S. n# l# J' A' F) F
3 V: a" J8 k9 A; K0 H5 Y# } Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional
& R' c+ X/ ]0 f1 ~% l Library Directories.
# P0 d6 w4 l. @- F- c $ b% l0 A6 W" C1 S6 y+ V8 c
Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are
5 ?+ q$ k, L1 L; h) E$ E9 i existing in Additional Dependencies.
2 ~3 W3 \$ v. I' _4 O. D' I! e Click OK button to close Configuration Manager dialog.
( _6 |1 j1 e X- F l2 E7 Q, T- J8 U6 `' t( p) W% x- K
) k s# f" @; z, e2 n- @8 G
5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution".# r- U1 `; {/ C6 [' o1 W1 s
This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory.' D# `( R& ^0 `
2 B; I8 s) P( m |
|