|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1. Open Microsoft Visual Studio.
1 H* m2 ~1 i6 x( r6 Y# B( G 2. Create a new VC++ project using the NX Open AppWizard.
' ^0 n$ J% u* Z% U, E5 V- ?, k2 ? Create new project as:/ Q# J5 C9 F+ s& R
2.1 File->New->Project.
6 L, \! R, R4 d* L2 f 2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,4 w3 ^8 _! `: P2 Q
Enter name as ExecuteCheckerAndGetResults. Click Next.$ S5 o; T4 A& \$ X
2.3 Under Application Settings, select 'An Internal application that can be
( d4 N0 A) f$ ?- w+ c1 i activated from an NX session (DLL)'.( v: I" V. k/ K# s
2.4 Select C++ for What language would you like to use in the generated' O$ Z' n. ]2 ?6 U4 l& v/ O
source files. Click Finish.
( d0 K/ l i1 F" c& Q$ C; V: S 3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project
* a6 x2 u* F7 V8 S; s) `$ r2 w pull down and select "Add Existing Item...". Select the file using the popup window.7 J$ S m7 Z2 _7 k1 T+ c! {2 P
4. Right-click this project in the Solution Explorer and select Properties on the popup menu.0 X; G) {, B Y, _5 w2 Y5 S
On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog.$ R y; K$ E8 B: `$ _
Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.& ?5 Q1 N( j3 Q, J/ s" ^! X
3 T% V& J6 [5 g0 g/ `
Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional. O/ P* |; B, q8 f
Include Directories.5 f+ T3 N) A! P
9 L# C2 L% S- q9 R- |2 e- w Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional# n( h6 B4 L7 W4 d2 h( j
Library Directories.
2 B! r( V3 R$ x6 y' D
. D9 O+ v, r8 a6 @5 o: H- o( F# D8 o Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are# U4 I" n# @2 f3 u5 O7 @" k! j( n
existing in Additional Dependencies.3 N/ J+ @4 e$ ~4 e* v0 Z
Click OK button to close Configuration Manager dialog.* \: ? P$ b3 i; h: x
* X8 R+ t8 x% O2 ~) s; a3 N) e$ m* x
5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution".: _. L8 v s4 a; ~9 C! T9 @4 p
This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory.0 {& I: L' c- `! a
' Z, X! ]* X; v% M- ?5 p) P |
|