|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
NX12.0 二次开发使用VS2012 报错解决方案
0 }1 w6 a1 h% G严格的讲NX12.0需要使用VS2015进行开发,这里说下如果你是低版本的解决方案,但是不推荐!
6 E0 R+ \4 T6 v0 ~(1)安装完后,点击Open Wizard 告诉你创建项目错误8 o/ ?" ]5 q3 ^0 U
5 N+ q. t% T& |0 q( L1 o t1 X% i2 b这种问题就是编译器版本不符合官方的匹配导致的,更改方法很简单 " h8 g, W3 t `9 q& G
打开 C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcprojects下的NX12_NXOpenCPP.vsz 将
5 u9 x& [. O3 T- e0 o2 O f0 G% CWizard=VsWizard.VsWizardEngine.14.0 中的14 改成11 也就是对应的VS20122 Y7 b9 M/ P) k; @8 B0 Q
7 V* D/ x- R8 K; M# h0 F. n5 E这样创建的对话框就可以出来了!) T+ e1 A. Q5 L; _) Q6 ^9 d8 d
(2)你可能还会遇到路径错误,path not found, 建议对这个文件进行修改,尤其是你有多个版本存在的话,一劳永逸
2 {1 y% W7 @" V- x0 B& AC:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\VCWizards\NX11_NXOpenCPP\scripts\1033 下的default.js 文件0 p+ t- G4 e5 O: {
修改里面的环境变量路径,注意路径是双反斜线 \\,参考如下!
4 e7 v. i# y( z I5 Y6 z! I% e {' F+ z
//@<DEL>@ TEXT ENCLOSED within delete markers will be REMOVED$ }. }0 S1 e6 ~) d% ]- H
// 09-Jun-2012 Frank Berger Initial Release for VS2010 based on "NX8 Open Wizard"
% U# y6 w3 N2 b6 q# Z, ^3 L// 31-Okt-2013 Frank Berger modified for VS2012
' @6 f2 t5 l0 c7 ]$ i$ m: f, g- N; v// 13-Feb-2015 Sudhir Pawar ARCH:11320: Added libufun_die.lib,libufun_vdac.lib & libufun_weld.lib
7 n4 C5 W' f7 y2 A2 {& v$ n// 21-Dec-2015 Purushottam Thakre Fixed PR#7567548: Call DeletePlatform function to delete 'Win32' platform.
" U$ l9 A/ V. X5 e ~! f. A# Y: q; h// 08-Jan-2016 Prabhakar Mandlik Fixed PR#7588129: Added /d1scalableinclude- swiTCh.
% {" |$ a0 k* U& F6 s// 10-Feb-2016 Purushottam Thakre Fixed PR#7630769: Reverted changes done to fix PR#7567548 which is causing regression
7 x% V7 [9 C+ ~# P2 v% L//TEXT ENCLOSED within delete markers will be REMOVED @<DEL>@+ F6 \( w9 N5 ~) T" ^7 p5 c+ |
' a$ E& \3 t( b n: \8 Yfunction OnFinish(selProj, selObj)& m2 N# U3 Z2 D9 |8 N
{
6 }6 W1 X6 {3 U% Z3 z$ I" ?' m/ O try
, I8 M8 O E/ Y2 U: x { p0 Z8 L2 {2 E; I
var bodyTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "body_template.txt";
) W9 M* l: a( r, o% y6 d' b! w var bodyTemplateText = wizard.RenderTemplateToString(bodyTemplateFile);6 K4 |+ I' {) ?( l$ r
wizard.AddSymbol("BODY_TEMPLATE", bodyTemplateText);
" w; T! y) @9 S+ d3 k% J1 N2 u7 S; f' a2 r" T7 R
var entryPointsTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "entry_points_template.txt";
$ @2 t$ I; J6 [ A0 ~+ }5 d$ U- t var entryPointsTemplateText = wizard.RenderTemplateToString(entryPointsTemplateFile);
( E: d& B( k$ Y. R, z2 l wizard.AddSymbol("ENTRY_POINTS_TEMPLATE", entryPointsTemplateText);, [' {- s- }; R; `0 X1 Q
; P" v+ j5 p9 `# x9 V9 p& m
var unloadOption = "UNLOAD_IMMEDIATELY";
% G; w+ b6 m- Q7 z$ |4 u if ( wizard.FindSymbol( "UF_UNLOAD_UG_TERMINATE" ) )
/ T+ K* [: x" q4 W2 f- m3 @/ c {
# K3 @7 s' r: j, J unloadOption = "UF_UNLOAD_UG_TERMINATE";$ i/ Z0 N: K% ~+ R% B8 p
}' R J9 _. M% x6 e
else if ( wizard.FindSymbol( "UNLOAD_SEL_DIALOG" ) )5 W" P- _, Z; E3 H1 E4 o
{; `3 m8 i) d- A# _7 K: X! f: z
unloadOption = "UF_UNLOAD_SEL_DIALOG";- @# A1 `$ b+ F! L
}
' B* E; P2 A" Q" R0 t wizard.AddSymbol("UF_UNLOAD_OPTION", unloadOption);
5 {5 n/ p1 x$ F p4 n' W# \0 j4 G' h) ?6 ^. w- R$ n
; |/ p1 W+ J; C+ A& U3 ?6 \& X
// Assign the project path and project name5 Z! j& _3 M! h. l
var strProjectPath = wizard.FindSymbol("PROJECT_PATH");9 D6 e- e* `; K
var strProjectName = wizard.FindSymbol("PROJECT_NAME");
1 l+ l! _1 V) G& q var strClassName = wizard.FindSymbol("MAIN_CLASS_NAME");- i) N$ K5 w" b% |9 U" i
if ( strClassName.length < 1 )
7 {) U7 Q+ |7 e+ e# T& x! u {
4 Y( k$ Q& C% k2 Z) r. v wizard.AddSymbol("MAIN_CLASS_NAME", "NONAME");1 T( J; i5 W3 H6 |/ a+ u8 A
}3 _4 z3 f2 Z: y; ]
1 N. x: s5 G) u" o% T+ b4 j // Create the Visual C++ project and call it "NXOpenProj"
- ^6 m* j! J; | [ selProj = CreateProject(strProjectName, strProjectPath);
5 N8 U5 d' v& r9 k$ u// selProj.Object.Keyword = "NXOpenProj"9 s8 x' e. K- j Q9 L7 K' R
3 H# }7 K' m0 s
// Add common and specific configurations to the project
2 X% d8 B% Y0 P+ N0 S* M* |' U AddCommonConfig(selProj, strProjectName);
! k* F* I8 |7 t' n* L( {7 u* a; e AddSpecificConfig(selProj, strProjectName);1 t0 z: C& F; H$ H
// selProj.Object.keyword = "MFCDLLProj";& O! L/ ?' T; V% F3 a: C% q5 |% U
7 c8 p+ G$ M$ o: ~
//Set the project filters / I$ J2 {, G2 G; \0 I8 ]: G, {. h
SetupFilters(selProj);
5 F6 w! G e, h# h2 y! G8 D8 R% x3 l! H8 y0 H; e
// Add files to the project from the project's Templates.inf file
$ \0 z7 L. A$ ?5 [" K r AddFilesToProjectWithInfFile(selProj, strProjectName);
2 W* @: ]# v1 L. G0 S. `) r % Q' g" m6 \6 F
selProj.Object.Save();
) L* Q* S0 P7 y" u/ S5 a0 I9 l }
! C# Q3 k- ^) e. ?8 U catch(e)8 n+ ]7 g$ u3 X* e" A+ q
{
/ ?5 o7 T/ B) A& h if (e.description.length != 0)9 L/ E X: n$ u( B$ @
SetErrorInfo(e);- p5 @0 t& n4 B
return e.number# ]" h& z3 L0 o2 r7 J2 [! M
}
% _/ A# z4 v' m+ X; X4 f6 o}; ]/ @, V; S9 B6 C r
) r J3 ~) _' q; n' D! v, K
function SetFileProperties(projfile, strName)5 L) T: x' w8 a7 o; j9 [& |& U; n
{! \: J0 i+ R P9 u I) r
return false;$ V( D5 L- q7 A- r# p# k; Z
}
0 V- T7 |, q4 r$ i; ?4 z- e+ }% j( P% W
function DoOpenFile(strTarget)
) q* x2 C8 b3 W1 y/ U% t( s7 a- B{
$ z4 K# h, U/ S' @* W# |+ X. C return false;9 Q7 U6 G; t/ R8 j5 w; ]: b0 x
}8 H3 S( A% b9 W' g2 c: I6 o9 h
L+ Y1 k3 r" c. G0 W$ x+ Y% P* V7 a
function GetTargetName(strName, strProjectName, strResPath, strHelpPath): Y9 P) n2 m8 O, i! v
{
5 m( T+ z. v- X1 o try. g3 m- v5 S1 X: F' X( \
{% f) F& a2 N9 \
var strTarget = strName;( Y& f7 k! _5 w+ T
if (strName.substr(0, 4) == "root")
% \# Y3 M3 |5 S0 P {
' R" p- D' S" W9 L3 R' N7 U$ Z1 Y var strlen = strName.length;9 d% {5 E4 u# C/ H7 I# y) c
if (strName == "root.ico" || strName == "root.rc2")! Q1 i; Q' c& y9 X; C# r2 [/ p
{
! o- I! v+ z0 D6 d5 [" Y/ m! ? var strSafeProjectName = wizard.FindSymbol("SAFE_PROJECT_NAME");5 E& r* @5 M; W, {+ Z' b/ ~
strSafeTarget = strSafeProjectName + strName.substr(4, strlen - 4);5 ~3 s! U" [2 l) z, e) Z
strTarget = strResPath + "\\" + strSafeTarget;9 g$ ~8 Z; }5 Z! {) d% ~! y
}2 V, T& ^3 J7 y( a
else if (strName == "root.txt" )/ C( J" x9 m/ W2 Z9 R% C7 W0 a
{
6 u& b: m7 Q! ?6 x$ U' g2 a7 r t strTarget = strProjectName + ".cpp";& }6 Y: g7 h& l. g4 Q1 `! x
}- B0 j8 f7 k4 y% G6 n H- l! d
else
8 O' T7 m- N6 X9 w; d+ ]8 o {+ k' }) h0 L/ I. Q0 X: W1 }) \
strTarget = strProjectName + strName.substr(4, strlen - 4);& _5 _4 f' w" F6 z3 ]3 _# I C
}
2 ~2 e' \+ f: @ return strTarget;" V( |0 W$ I* n- ?; u% d
}
" N0 q+ B& Q2 y" G9 y& @% K) V! A. q" m# y# X0 E
switch (strName)0 e; t8 v% c- s/ @; s
{
/ B1 \3 H5 g7 J; G case "readme.txt": m* z8 D, v% \
strTarget = "ReadMe.txt";
( T* F" b& Z; O6 }" F1 w+ y break;
6 ] ^4 H' @; Y7 I/ d- p case "all.rc":
' ~ Z& i$ f0 f" q0 p# | case "dlgall.rc":* x$ [5 J# ^# a9 B; N# a
strTarget = strProjectName + ".rc";3 q& t5 U3 S5 X! f0 y$ |) |2 m' T8 x
break;
6 p5 A3 U" c2 F case "dlgres.h":
0 y9 h8 t4 G e case "resource.h":
, A E7 h- V8 i strTarget = "Resource.h";
( d4 C: ]* J3 ~6 J9 K break;) `* M% y8 G2 o }6 B
default:
4 t/ I0 f0 ?8 {9 K4 @- ~* `! p9 ^ break;
7 [3 b, d; Y$ ?& K }
# c# }3 m! s" H8 U# x! W( I5 I return strTarget;
8 b# U( R8 J5 G- _8 z. d+ u+ u0 Z+ Q }
& F9 M# }" |( M3 _3 e7 J/ T catch(e)
2 s+ B5 z/ R) _ {8 f6 |; J1 u- V& V7 T" J7 I) T
throw e;4 W- x, U+ w2 \7 h# d
}5 h1 I8 W4 c$ g: b9 ?! j: ?& \, V
}
1 k! |' ~# I3 r- I& [* I8 s
) s) B# }4 \+ e+ L, b' \function AddSpecificConfig(proj, strProjectName)
7 a# M. {$ a$ Y _ T' R4 G{) o) Z& T3 k8 j
try& q) f: p1 P8 G: d
{1 T a& O! a: g# \7 T- j
var isDllApp = wizard.FindSymbol("DLL_APPLICATION");) l* z# Z" T9 u1 h7 c2 a5 o5 D
var isCxx = true;* N" s5 w4 s0 K+ t% m6 D
+ O" l i" i2 U! {3 q- i6 K var appType;* `0 t* x" U) R: s; d1 H
var appExtension;
. w. E- s: i0 z: H) P8 B6 b- f. Y1 e4 g' G# x
proj.ConfigurationManager.AddPlatform("x64", "Win32", true);6 W5 {* N3 ?% C! R3 L
# i8 ^" B& x+ s, p! a t ^
if ( isDllApp )
# z4 m# N% y& T$ T0 t {0 j0 w6 z" H! o
appType = typeDynamicLibrary;( u' m9 C$ @/ k
appExtension = ".dll";
9 e! k; S) y9 W& H) r }
3 j1 H' @8 J$ h4 i+ Y0 C, l else
2 I" _( N B9 _+ r' v7 h8 u* ?" } {
: f2 l, b- E; @ appType = typeApplication;4 x C* W; I$ p1 e- h x( J; }
appExtension = ".exe";
4 P# n1 A8 t- G7 @( g }6 B1 N1 y; Y! N- ~' L* R
9 h8 n& C4 X8 o. S# ?/ Z6 h
var linkLibs = "libufun.lib";
- W7 B8 T% v! C! E linkLibs += " libufun_cae.lib";. a% \( Y, |: N0 d8 ^1 P4 s
linkLibs += " libufun_cam.lib";/ n4 G% B v5 T: P; B+ s5 x, k
linkLibs += " libufun_die.lib";
/ t; ]+ o; z, D! d) V) L linkLibs += " libufun_vdac.lib";2 g8 Q# n8 ]' M( J2 V/ F& Z; R
linkLibs += " libufun_weld.lib";
$ t0 Q4 e4 P3 \) k" v& l7 ^. `6 N8 U) Y( _ O9 K
if ( isCxx)3 N3 R' n; s" Y5 ^. X" `3 p
{
& @" ^! \- N3 n3 O* s var wshell = new ActiveXObject("WScript.Shell")) Q& I8 O, W2 Q K9 c+ b: s
var libpath ="D:\\dsplm\\Siemens\\NX12\\ugopen";
! I$ @- h' S) O/ U$ q var Fo =new ActiveXObject("Scripting.FileSystemObject");
9 n0 _3 _4 D7 t4 W) U$ J# u5 T# O( Y/ s var FSo = new Enumerator(Fo.GetFolder(libpath).Files);
+ f D: v, X1 Y% O# Z var nxopencppName = "libnxopencpp";
, s; Q3 R4 W9 R+ S3 p) u3 ?% f for(; !FSo.atEnd(); FSo.moveNext())) U( R) Q/ P, G4 p6 y+ ^( D( |. M
{( Q& M, M5 D2 y' q
if(FSo.item().name.match("^"+nxopencppName)==nxopencppName) //check if file name start with libnxopencpp# f/ F* B( m, L! }7 N6 v) B, u. H \' }
if(FSo.item().name.slice(FSo.item().name.lastIndexOf(".")+1).toLowerCase() == "lib") //check if file has '.lib' as an extension/ U7 N2 u- k! \ ^2 A: i( s
{7 x! Q4 s& o1 y
linkLibs = linkLibs + " " + FSo.item().name;. V9 r; c6 b) W' s& l( M
}" } E" f+ K P
}
% B+ w! W$ k: d9 h' |* G0 X }3 N: U2 m; k& v# k: K# F
# A) O _) k; `' _/ _4 T2 ~
if ( isDllApp )
& V0 Q; e1 k8 k2 H# w' y. \" l9 v {1 P6 ?5 g8 `5 A9 B) `0 \
linkLibs += " libugopenint.lib";: o) C5 J2 i: _2 l/ ?; s
linkLibs += " libugopenint_cae.lib";5 g3 R' m% v m+ q3 Z
linkLibs += " libugopenint_cam.lib";
* X/ T( M/ x9 D- ?) Q1 r
9 [5 O9 r0 b$ J0 d6 \ if ( isCxx)
$ V- @: o: C% _9 r: B" D& Y linkLibs += " libnxopenuicpp.lib"; ]2 K% v8 }4 e! O7 G* n
}
; [0 _& v, u2 m
% _; E- F( ~$ L* j9 Y //=================================================================' b7 t! a3 i2 {/ B- [
// Debug Configuration, z: a- H2 D/ Q
//=================================================================
% `! q! Q6 Z6 i% ~$ }- Y" A2 r+ s//LRJ - add x64
6 B- `+ O! }# B var config = proj.Object.Configurations("Debug|x64");: X) B+ B1 X( O. c' [1 j9 ` I
config.ConfigurationType = appType;
- [0 [( M# h7 y' N2 a; g; q; r. z* Y config.CharacterSet = charSetUnicode;
! a+ I Y1 G. m: M8 [( [5 X config.useOfMfc = useMfcStdWin;/ D/ X% E$ }: U6 _
) @/ `" \2 C$ `% C; H# I) j
var CLTool = config.Tools("VCCLCompilerTool");& [9 M. |8 M% _; f& _
var strDefines = GetPlatformDefine(config);7 {6 I X4 J5 l Y4 v9 H* P$ r
strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";9 z7 m; {! {4 m3 B# t1 l# ^
if ( isDllApp )
2 \& k& M5 D# p* V' D {8 y" @9 b; }& N! a3 d
strDefines += ";_USRDLL";4 q6 L. i0 @$ {9 f/ ]$ z4 m- \
}7 p+ N' u7 w/ n$ o0 N
else1 m" w2 C# Z3 V& j/ d! v8 [( l
{, k+ ~9 i: a" [1 W# T4 m" B/ P* ^
strDefines += ";_CONSOLE";& U) N; s" X( U( X* ^
}3 l. F' ~! G$ x1 t
7 Y& I# x% y7 b ?9 k2 r CLTool.PreprocessorDefinitions = strDefines;
1 B! n, j/ m% X& T. L% D) e& }& I) m" J
config.UseOfMFC = useMfcDynamic;
6 { `( p( R6 y/ a3 m1 j/ l CLTool.RuntimeLibrary = rtMultiThreadedDLL;
- ?) B2 B5 B" }7 k3 Q1 |( r# c/ b" L- R0 |; j
CLTool.TreatWChar_tAsBuiltInType = true;
Q/ M s* Z9 a2 T" T* m0 L" ]' D CLTool.DebugInformationFormat = debugEnabled;
7 C- [% }4 N. F4 N, y" C/ U/ W5 v4 o CLTool.AdditionalIncludeDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";
6 B2 ^% e! x! V% \' E4 P3 g) M7 t% y* M; _4 V* R \3 j
CLTool.RuntimeTypeInfo = 1;& J7 S& o, s8 O, H& ^
CLTool.UsePrecompiledHeader = pchNone;: N# j$ f) f% s* F- a" F
CLTool.AdditionalOptions = "/d1scalableinclude-"; r ^9 D d0 U& k6 m t o9 y
8 ?, F. t3 z3 e2 Q# ?6 @//LRJ - change for X64 - add TargetMachine3 M2 l9 ]( i, F! J& R2 N9 A
var LinkTool = config.Tools("VCLinkerTool");% F- v: z% [1 ]) C- [9 ?8 @ l
LinkTool.TargetMachine = machineAMD64;
" t8 m z8 B5 U \, C LinkTool.LinkIncremental = linkIncrementalYes;! ^. J3 r+ ], k
LinkTool.GenerateDebugInformation = true;
- [ V& H4 F( X1 n LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;
$ N7 t; Q2 h& d3 y9 c if ( isDllApp )
) m. y) R/ Y$ k) M+ d6 m( F LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";! j. @+ o7 Z, o% V: L
LinkTool.AdditionalLibraryDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";
$ a0 H; J9 P! M1 v7 U LinkTool.AdditionalDependencies = linkLibs;( L" W2 u) b* _9 i& P" S' A5 Y" g
LinkTool.SubSystem = subSystemConsole;
5 R" J) q. H% X* ?( A3 s# U* e//LRJ - add following line for X64 definition7 K9 U3 s/ `% p0 I3 N' H
dte.ExecuteCommand("Build.SolutionPlatforms", "x64");
9 t) b4 T8 ?8 c. S* e( X$ d9 T7 b' C4 ?: u; ~8 }. l' i
//=================================================================
7 z, V `0 v# ~4 S" _3 z# `, s/ d: b // Release Configuration
9 K. A5 V+ t2 x //=================================================================
$ Y2 y7 G4 W8 J0 w4 L p/ o//LRJ - add X64 definition to configuration line* M0 R# C w9 k2 @4 o
config = proj.Object.Configurations("Release|x64");
6 i1 _9 @6 l- k/ a6 E config.ConfigurationType = appType;
1 G+ G! H/ @4 D [ config.CharacterSet = charSetUnicode;
8 D3 f" `) f1 ] config.useOfMfc = useMfcStdWin;2 j0 _# j4 H) h. k0 h2 q) V
6 b& b0 U; c" V) f/ R CLTool = config.Tools("VCCLCompilerTool");# S6 t m G5 o; n
strDefines = GetPlatformDefine(config);
( t$ r+ p! H$ A9 N I I# s8 p0 k strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";
7 T {3 |4 x! j if ( isDllApp )9 ?) r8 O3 c& j8 X) H7 G# `
{1 _; i6 ~& U7 [; j
strDefines += ";_USRDLL";. y$ L6 ]* v$ t* o, n
}4 m" J, v3 h' T4 P% A0 V% d7 C k
else' Q& R6 m# M* L6 [, U' Q! X8 o1 B
{5 z) N1 r. J# N- G: a) P g- q! Q
strDefines += ";_CONSOLE";. ]" f4 [, P- ~' ]" f( \7 D
}
7 F4 M/ y( v. H/ _! B% m
4 K. j1 h9 T" Y CLTool.PreprocessorDefinitions = strDefines; ~. ~% Q; S% S
* a9 z" Z8 L8 u6 Q' C; X config.UseOfMFC = useMfcDynamic;
+ N- D4 I) b0 E: K& m9 |9 | CLTool.RuntimeLibrary = rtMultiThreadedDLL;
3 a, k+ n. [8 V5 b3 x1 z, U! n2 I, p0 l+ L5 {& ?( C
CLTool.InlineFunctionExpansion = expandOnlyInline;+ i: T. K4 Z1 h, I% `& p2 p
CLTool.TreatWChar_tAsBuiltInType = true;) R. c( G' |$ M7 g. J- \
CLTool.DebugInformationFormat = debugEnabled;
# t# C9 S" i) J5 R! R8 K( @
# Q& e g) A) q9 R, \ CLTool.AdditionalIncludeDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";
5 Z; w8 E. n% ]- T
* W4 }! x% c& H2 w7 a+ }2 { CLTool.RuntimeTypeInfo = 1;( m% O9 Q! X9 ?9 T& P8 F: y
CLTool.UsePrecompiledHeader = pchNone;# x- y) M+ v. o* D& g+ ~
//CLTool.AdditionalOptions = "/d1scalableinclude-";
5 A: V8 s( h6 c/ w: O7 P& {, C8 m( e" W* L* y- k
LinkTool = config.Tools("VCLinkerTool");; P( H, X# g! w) Z1 @3 v4 X S
//LRJ - add following line for X64 definition. p* B I3 {5 J' Q, q X+ M: o, M
LinkTool.TargetMachine = machineAMD64;
) s, q/ O7 s6 V$ J3 u- r* b' J LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;0 J8 w! W1 `# a# X1 u6 |
if ( isDllApp )$ P; D) @+ W% @7 T) _0 c
LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";; R* q: U/ W1 W6 W) Y0 |
LinkTool.GenerateDebugInformation = true;& V4 I- z# p$ ^
LinkTool.LinkIncremental = linkIncrementalNo;* f- K- u. Z( p9 V$ K' g) z9 o. D
LinkTool.AdditionalLibraryDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";8 M; k, P, W9 v o" j% g
LinkTool.AdditionalDependencies = linkLibs;
% M4 e3 u# k( D$ @: ^: ?: h' A& E LinkTool.SubSystem = subSystemConsole;
0 q( ]1 P' ?' q- V//LRJ - add following line for X64 definition! O4 [0 E3 ^/ L- w, b
dte.ExecuteCommand("Build.SolutionPlatforms", "x64");
* |- @8 V/ ?3 A3 }2 g }
% w& V. s6 P0 V- c$ C( D catch(e)6 _. v1 E2 `7 m
{: F$ [4 i1 s& I! ] H0 o$ z
throw e;
' Y d" M1 Q6 J }
. c( ^; e7 w6 L L2 O- N' G& H9 A}
: e/ A. c5 }' v' A( p+ P+ H8 Y7 V9 l; s$ D- g
+ ]2 q% n" E; T
* b0 l4 `; d7 I+ v |
|