|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1. Open Microsoft Visual Studio.
; @5 a& V* R$ ^% s2 m" P3 Y, O k 2. Create a new VC++ project using the NX Open AppWizard.; G. p5 X u/ P1 {1 N
Create new project as:
- w0 A F0 Y, y5 }: `. P7 _ 2.1 File->New->Project.
3 l- b' ^9 I% u1 W+ V" g' R8 O 2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,' b" K4 `( b) Q" G
Enter name as ExecuteCheckerAndGetResults. Click Next.
* O* w6 c, K6 Q& ^3 P2 A& z4 F 2.3 Under Application Settings, select 'An Internal application that can be
& ~- [$ q1 [" q! R9 M( r, u activated from an NX session (DLL)'.: _9 [2 E% x. y2 K! d. i& M* }% c
2.4 Select C++ for What language would you like to use in the generated$ R+ D% Q | o
source files. Click Finish.
5 i* B3 L( g3 i3 B, v! N 3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project) t/ Q+ a# w" ]: U' x- n1 t3 w
pull down and select "Add Existing Item...". Select the file using the popup window.
' d: u! a( g& Z* J+ c 4. Right-click this project in the Solution Explorer and select Properties on the popup menu.. k- R1 `+ f9 w |
On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog.
, h' {! ]% i( ^- u Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.
" v, A6 b5 h$ A, H
) M5 j, v( Y& K' t( ` Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional
/ r) V0 Z& y/ B/ R+ A. Z Include Directories.
, ?( e. C, e* I2 N, h/ V* q
- M1 a$ e3 r; m Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional
T& \, Z( f: W8 P( v) l Library Directories.
' X* \( {2 h3 N. L) P5 ^ * y; k, E5 t5 }5 K6 {+ K
Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are
' k% b( J/ D% S6 a. m! L5 o+ L existing in Additional Dependencies.6 I- `* N7 H/ q, ?
Click OK button to close Configuration Manager dialog.
: R" D8 D9 Z# I) ~. P3 v6 P4 ^$ {- e1 \! {( r: S
# l+ ?3 q2 g e3 S
5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution".
& R) W! n8 G h9 R! T) | This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory.
' q/ ?, V# @8 z/ T" Y( [* z7 ~/ r
/ q: J9 g2 p& Y( M& Q4 C |
|