|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1. Open Microsoft Visual Studio.* D1 R3 u5 E4 H9 a( O
2. Create a new VC++ project using the NX Open AppWizard.
; Y: N E( m7 _. A3 t2 f8 h- m Create new project as:! A+ [; y' D7 [' h
2.1 File->New->Project.& Y+ G O5 o* n& p% \
2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,
' l+ S: x- c$ A' S h Enter name as ExecuteCheckerAndGetResults. Click Next.
$ D- z1 p( b9 u) Y. _9 `+ e 2.3 Under Application Settings, select 'An Internal application that can be5 \6 U) N: ~3 ^$ y/ B& I8 h# K9 `+ K
activated from an NX session (DLL)'.
) C9 b$ s; e6 X# [. q 2.4 Select C++ for What language would you like to use in the generated
G! l1 p# i ?# a; t$ i source files. Click Finish.
) w" ?9 O7 N$ c; p% B u 3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project
& @6 D# T! E' r7 q6 I4 A7 n pull down and select "Add Existing Item...". Select the file using the popup window.+ I$ u& Y x: C+ p: i. T. S8 c
4. Right-click this project in the Solution Explorer and select Properties on the popup menu.& P, W5 ]: L# {6 W: C
On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog.
/ i6 Y. e9 w, S+ M2 j5 E' a Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.
4 k! ~; V. |* x" T $ P- A5 L6 l# C* ~
Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional
) P! _/ M) R3 R. x# U# } Include Directories.
; x. T( _9 @( \: o- O4 v/ L 4 L" ~5 ^, p+ K/ l8 Y& {: }& ?. |; a
Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional
& H$ v1 e: b( h E) O$ B& k# g Library Directories.; Q0 c& Z# c; o6 f
3 d% Q% F& Z. `6 p% Y' F5 b
Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are
: S" p7 w; h8 e1 } existing in Additional Dependencies.7 k v/ `, h3 m# z4 ^9 a8 p3 C
Click OK button to close Configuration Manager dialog.' l" G4 Y; L2 H$ O
7 b& k& c. e) j9 g9 ?- ?! c, B( J' |
, e- w+ Z" H4 f 5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution".
2 f5 |# [, u* T) V' Q' z This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory.
4 e0 r+ a) Z5 D' C. L
1 g8 Y5 S/ A, t( h0 ~+ { |
|