|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1. Open Microsoft Visual Studio.% T% Z1 B) S! o/ m. U+ F8 E6 u. f
2. Create a new VC++ project using the NX Open AppWizard.5 M$ P' b7 d& B2 i0 p
Create new project as:" o; _: |9 i! M" n( H4 k- J1 k( {
2.1 File->New->Project.
- p( ]( s( Y8 C: ?- f) _ 2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,
1 f( E: q5 s: b( A% ` Enter name as ExecuteCheckerAndGetResults. Click Next.9 s2 i! k$ P$ e/ T6 o- I
2.3 Under Application Settings, select 'An Internal application that can be
4 j* _! D( c5 M" t! A activated from an NX session (DLL)'.; D* H; Q d M; E
2.4 Select C++ for What language would you like to use in the generated
$ c0 l% g" `0 c1 e source files. Click Finish.
4 N: d3 O: Q! T& ?5 `& B 3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project% J# [7 S) Q5 r1 q; H' G- C
pull down and select "Add Existing Item...". Select the file using the popup window.& ?4 U8 x' A' g# {6 G/ E
4. Right-click this project in the Solution Explorer and select Properties on the popup menu.6 @/ m1 \) ~8 w- d
On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog.( N# W+ p }/ [( R
Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.
" O# D& o e: r , g* \# x# V6 y8 Z" N+ a H! ^
Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional
$ [/ U/ Q& {* G4 P9 M. @ Include Directories.
4 N& v7 H( ~4 L ]4 _, W : L+ W/ |: R, H2 i) l1 r. k O
Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional+ G2 X$ ~) {+ N/ i" W4 j) Q
Library Directories.
2 w' Z8 b: w* ?4 `# M1 H% B# K) X
- B5 T% T) ? L Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are
* M0 Y) W3 ~1 Q existing in Additional Dependencies.
( h7 r' r7 U1 p% h% ~6 X Click OK button to close Configuration Manager dialog. l! `; t2 k) a
" l2 _$ z$ e& P; [; @
& n* r0 |$ Z6 |, |% ~. S 5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution".
$ a0 e+ n7 D7 B3 b) O This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory.
$ C9 Z$ R; [% |* \* S# Y* Q* ^: D' z7 Z2 W, M- k
|
|