|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1. Open Microsoft Visual Studio.% Y7 Y! q" U4 _; R) O# s% ?. N
2. Create a new VC++ project using the NX Open AppWizard.( `* C0 s# g7 r1 r
Create new project as:7 J q" ~1 d! o6 y$ a, i- b
2.1 File->New->Project.
- N0 m2 V0 ?6 L1 K 2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,
6 c/ l5 P) c- Y) M" K- i1 Q- q7 @. ^ Enter name as ExecuteCheckerAndGetResults. Click Next.
; m( l; A7 v! r% V& j. q! t 2.3 Under Application Settings, select 'An Internal application that can be' b* W" l& f' w4 J* s/ G
activated from an NX session (DLL)'.# c& l# V+ k, w: |. Z
2.4 Select C++ for What language would you like to use in the generated
) Y: G& Z$ F; p: D source files. Click Finish.
) O4 j( G/ I: W8 h( P 3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project% ~( J6 ~' i( ]# q5 |
pull down and select "Add Existing Item...". Select the file using the popup window.. l3 J+ D6 d! G: [4 Q9 A' d: D
4. Right-click this project in the Solution Explorer and select Properties on the popup menu.0 h% Y5 X( [. g d8 I; Y0 g
On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog.
% y" E! w8 V/ ?" H" V Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.0 }) `4 _" f% @; P8 p
; s. ]% i- m5 d* y4 m Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional6 |+ i# O3 Q, @1 d2 O
Include Directories.
: H; T8 L4 q" U' s9 @ 4 O1 \8 g, H: x4 H
Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional/ [& F8 ~' I" D
Library Directories.$ C4 M0 M4 y+ a3 ]. }! n) e8 }
7 K; q& y7 ?' Y
Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are
/ k. U( b7 B$ C6 t T' W# N existing in Additional Dependencies.7 Z$ w! x& q/ D) T. s
Click OK button to close Configuration Manager dialog., v6 d; D" V R0 f) L, D
/ H6 E- o2 d& `/ g4 y% o7 p9 R7 v
/ |* r1 U r. t7 P0 f8 C: O3 L6 R* u
5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution".
/ u7 g0 c; |) _+ n2 Z This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory.1 c5 j2 h, ?3 d# ?* |
4 Q) I* Z5 X) X: o& ?. V/ q
|
|