|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1. Open Microsoft Visual Studio.& d% d5 V4 o6 f" v# k
2. Create a new VC++ project using the NX Open AppWizard.4 b; {% \: G! Q& j
Create new project as:7 p# I* I7 C/ y" c; Z; c1 `: Q
2.1 File->New->Project.7 z6 D$ v; G+ P6 X+ G% g
2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,. ?( h( z2 D$ N* K5 a( P4 u
Enter name as ExecuteCheckerAndGetResults. Click Next.
4 p2 s/ \' K" a9 I+ O* a* k 2.3 Under Application Settings, select 'An Internal application that can be
/ }4 h3 H8 {& @/ K- |5 D& [) A activated from an NX session (DLL)'.
# M2 w. |& b5 K5 J& u& Y5 B: T 2.4 Select C++ for What language would you like to use in the generated+ K/ o! R( q" H: @
source files. Click Finish.
$ z* L; `$ @) w1 h, g% Q 3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project
1 K/ R# k0 p1 z; m+ G pull down and select "Add Existing Item...". Select the file using the popup window.
1 q' l0 E* m& G6 O0 \ 4. Right-click this project in the Solution Explorer and select Properties on the popup menu. Z& V, Y7 ^6 P0 B! |% @/ Z0 Y
On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog.
# f2 X0 z6 ~+ J* C3 Q. w Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.
I' w B( _: ^: D+ {8 K6 ?) a$ P
0 ~- O' R% ?# [ Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional0 p" i7 c9 b! P. l8 ^, \; o
Include Directories.
o5 ]8 Q# z; _# ^
( \+ ?5 h* T2 V' {5 M% Z" K m/ @ Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional! k" ~ Q2 P; f, Y
Library Directories.
7 q6 `% ]- W" z F! H* q- S 1 s% F) }3 m- M( U9 ?+ j" q
Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are
* U+ }7 S, O: M1 d3 ^# j existing in Additional Dependencies./ d# a: W* r0 X
Click OK button to close Configuration Manager dialog.
* ?: i$ u+ Z' B- Z+ X9 {2 B! ?9 t# _
6 R6 q* u. Z, c: c2 w/ L" J 5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution".
3 j, b: t( z; h) G3 m This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory.
" M8 D' G# r. b) E" m
9 @& B- G' J% z( |: E |
|