|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1. Open Microsoft Visual Studio.
7 @) Q* `* r G/ }9 t4 U8 z+ P- d 2. Create a new VC++ project using the NX Open AppWizard.- @8 g" y- k1 G' M+ N
Create new project as:
) Q [; G9 C! x. m2 p9 E 2.1 File->New->Project.. b: ]( c! Z4 B$ A5 u B
2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,% U* l) \ d: \$ |3 v p
Enter name as ExecuteCheckerAndGetResults. Click Next.
" t6 P. U- A. r1 O: w 2.3 Under Application Settings, select 'An Internal application that can be
0 k; Y5 V( H8 @ activated from an NX session (DLL)'.% _: ~$ [& q2 Y. l3 N
2.4 Select C++ for What language would you like to use in the generated
9 }6 q% U" f6 h2 L source files. Click Finish.# b. _9 L+ D/ l* Y
3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project8 S& m F9 P0 K2 j' }% G, z2 Q
pull down and select "Add Existing Item...". Select the file using the popup window.- f& |3 L7 I! O2 [3 s1 E
4. Right-click this project in the Solution Explorer and select Properties on the popup menu.! v6 @. X0 r$ s* W
On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog.3 o: k# M0 Z, P& W: R
Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.* ]4 |; D3 {/ ^# U% b
' u6 C: E7 S/ ~. k9 [$ {( W4 a6 i Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional% n, o* q" x, U2 r/ I" q
Include Directories.1 E: y+ W' z. M
x: k% g% F& \3 e Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional' u' M( `; |; g% l: ^( b s) `
Library Directories.9 ]) ]/ [$ F, O* j2 W3 J
+ c$ ]( y" ~" K, A2 X. J9 P" Z, a8 D" s
Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are
7 v2 r5 W! h3 ]8 t existing in Additional Dependencies.
4 C" H) W6 q& ~6 o Click OK button to close Configuration Manager dialog.+ I8 u! q" b' n6 T: N/ V+ F
8 B4 x! b( h2 V5 w- q8 D
: `: @9 t) w0 g& J! L
5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution".$ m) u3 d8 W, u+ N2 r5 y% d# i4 ^# u
This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory.
& g2 a5 F( Z* @9 I. e5 V. z' c/ u. S' u) p
|
|