|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1. Open Microsoft Visual Studio.
% H/ D! u5 d' d' {# [ 2. Create a new VC++ project using the NX Open AppWizard.
8 O& ~3 U" F) e! j, ? L Create new project as:
) c; r8 e+ J8 h- P) L+ D 2.1 File->New->Project.6 T6 c( J ]. }- m& P) V; N' M$ e6 `* l
2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,
0 O5 k. e1 g* u) ~1 S Enter name as ExecuteCheckerAndGetResults. Click Next.
- t2 n5 o& \* x R* i* ^& S" @ 2.3 Under Application Settings, select 'An Internal application that can be: S7 l1 h, v+ T9 r' A
activated from an NX session (DLL)'.
# J3 P9 V, [6 r8 Y4 j8 v 2.4 Select C++ for What language would you like to use in the generated
) @( ]9 d. {. c9 v$ O source files. Click Finish.
) Q% `1 T# J5 S- q 3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project
) {& l" {6 I% F4 o. p& B1 Y. W pull down and select "Add Existing Item...". Select the file using the popup window.4 X! b% I0 R/ ^4 D, @/ J& C
4. Right-click this project in the Solution Explorer and select Properties on the popup menu.
" i5 }' O- e) z. B7 c$ f" q On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog.2 p1 j/ {; ^6 i {# H H+ {' w
Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.1 l0 q0 t( T) a1 B
. h/ \+ e( X! N; E Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional
/ p6 ~2 B/ F( t# N, H) R Include Directories.
% u' ^' d7 H' r8 K3 ?+ @- |
- Z8 T/ ^, t$ b# @' |! _ Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional" ?6 Z4 A8 W8 L* d" Q6 U3 |
Library Directories.
7 e f5 n# P6 Q; Q; A. m
. |6 u) ]9 J' M3 N- ] Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are
; N+ X4 j! e3 z0 X& P existing in Additional Dependencies.
2 Y0 ?3 q# O0 P Click OK button to close Configuration Manager dialog.. @* O' l) J5 p& e) {* X1 Z
. q/ `* f w5 Z! N
& t/ H5 O9 r$ h) Z$ e7 v2 ~& O* ` 5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution".
5 x2 m) F* p1 s This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory.& W f, v0 j' M: q( W
( w" _6 x9 u0 K |
|