|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
NX12.0 二次开发使用VS2012 报错解决方案" r0 `% q. ~# G) }1 U$ e
严格的讲NX12.0需要使用VS2015进行开发,这里说下如果你是低版本的解决方案,但是不推荐!3 b, \( a& e' a4 Q# J8 N4 e+ j
(1)安装完后,点击Open Wizard 告诉你创建项目错误. p5 n6 y" O, L! T, V
5 R% T% ^' z3 t! v& |3 {9 a/ k% W
这种问题就是编译器版本不符合官方的匹配导致的,更改方法很简单
2 U- k4 s m2 |! P打开 C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcprojects下的NX12_NXOpenCPP.vsz 将0 f" l8 N' Y5 l2 M' t0 R, a
Wizard=VsWizard.VsWizardEngine.14.0 中的14 改成11 也就是对应的VS20129 K, z) W6 N* z3 F' s' b
0 O, \$ E6 o, b这样创建的对话框就可以出来了!5 T) p) R, I# h% L6 `8 X- P1 _
(2)你可能还会遇到路径错误,path not found, 建议对这个文件进行修改,尤其是你有多个版本存在的话,一劳永逸0 T4 q7 U$ U) X0 o
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\VCWizards\NX11_NXOpenCPP\scripts\1033 下的default.js 文件
0 O" F$ ]& `9 K# f修改里面的环境变量路径,注意路径是双反斜线 \\,参考如下!- a* o' X: I+ L7 v
% L! i$ y- n, \- m//@<DEL>@ TEXT ENCLOSED within delete markers will be REMOVED
/ o- U8 q* [$ p. g( T// 09-Jun-2012 Frank Berger Initial Release for VS2010 based on "NX8 Open Wizard"" O9 @6 j7 f7 N# m, c& L
// 31-Okt-2013 Frank Berger modified for VS2012# A1 n2 ?- v& _
// 13-Feb-2015 Sudhir Pawar ARCH:11320: Added libufun_die.lib,libufun_vdac.lib & libufun_weld.lib+ R5 Z& g9 U: x
// 21-Dec-2015 Purushottam Thakre Fixed PR#7567548: Call DeletePlatform function to delete 'Win32' platform.! v; l( i3 s2 U% k* S) ^0 Y
// 08-Jan-2016 Prabhakar Mandlik Fixed PR#7588129: Added /d1scalableinclude- swiTCh.# a& t9 N4 Y9 {6 ]
// 10-Feb-2016 Purushottam Thakre Fixed PR#7630769: Reverted changes done to fix PR#7567548 which is causing regression
# u& t- s% |2 H8 h, ?1 y//TEXT ENCLOSED within delete markers will be REMOVED @<DEL>@
& _! M# W3 x/ ^6 o, n6 r
7 g' [! z0 X& G. s! s0 ` X0 Z( Efunction OnFinish(selProj, selObj)# A8 ?8 E( T( O. y" g' g( m2 H" M0 E
{
) l2 G4 F1 y' C& h- J% ^% P! n, ? try
0 d7 D+ n5 C3 I# j3 b9 e2 ]/ Z {
5 w' `/ f9 B7 }+ v- b var bodyTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "body_template.txt";( {. m5 l, |0 R# n- r/ K( O
var bodyTemplateText = wizard.RenderTemplateToString(bodyTemplateFile);8 u8 r: j8 m D( y7 a( w
wizard.AddSymbol("BODY_TEMPLATE", bodyTemplateText);
+ I) [9 o0 A7 k% F. j8 k- a, p3 T1 R# m* ]0 m6 S: `% x; ]: g
var entryPointsTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "entry_points_template.txt";
" D/ ?1 G1 K3 c var entryPointsTemplateText = wizard.RenderTemplateToString(entryPointsTemplateFile);- w% R) A, S) Z
wizard.AddSymbol("ENTRY_POINTS_TEMPLATE", entryPointsTemplateText);/ f0 x! X3 ]# I- |0 g# F
4 U* y' [. \4 A5 j, a9 C var unloadOption = "UNLOAD_IMMEDIATELY";
9 ?1 J* }9 v6 z. b# d if ( wizard.FindSymbol( "UF_UNLOAD_UG_TERMINATE" ) )
. ^& M9 W/ j% c6 \+ {# n3 V {
% ~; O; _3 S9 Y; W1 Z' r3 S unloadOption = "UF_UNLOAD_UG_TERMINATE";) W! ~* `+ C: _! C" ?
} W' T7 z* Q! f" N+ x; i: |
else if ( wizard.FindSymbol( "UNLOAD_SEL_DIALOG" ) )
, b& r3 A# h' F; r% T8 T' L7 Z: H {2 t& T* W1 X$ s+ ^/ Q: o" F
unloadOption = "UF_UNLOAD_SEL_DIALOG";3 W- v9 J; \+ y* ~; W$ a! H
}4 X, c( Z0 r) p5 x
wizard.AddSymbol("UF_UNLOAD_OPTION", unloadOption);
& {; I! s4 C$ } g8 s: h' p! R. D! @
. Q4 [& C- f" k* \ // Assign the project path and project name
3 X$ w0 X9 e! S! X3 T var strProjectPath = wizard.FindSymbol("PROJECT_PATH");& F, b! l2 `! k% {/ L, K
var strProjectName = wizard.FindSymbol("PROJECT_NAME");" I5 X! T2 u" W" _* q' j! h1 D% Q
var strClassName = wizard.FindSymbol("MAIN_CLASS_NAME");
0 ]+ L1 @. s0 i" Y' O if ( strClassName.length < 1 )
2 a) |, |% W; X# Y6 _1 o {
# @5 O3 I# w% _* i' R wizard.AddSymbol("MAIN_CLASS_NAME", "NONAME");1 ]5 T* q7 Q: g5 ~4 q6 F
}2 y" W1 l8 n4 a8 h6 J; T3 K. o. y
' H* Q) [$ k8 {; O: Z8 Z& | // Create the Visual C++ project and call it "NXOpenProj", w! h3 W7 U1 |
selProj = CreateProject(strProjectName, strProjectPath);
% n2 l' {: g% U5 {4 [// selProj.Object.Keyword = "NXOpenProj"
8 q1 f# l3 d% x" c' Q6 v4 s) q' Q# B4 N
// Add common and specific configurations to the project
& M' [1 c4 O( d3 a AddCommonConfig(selProj, strProjectName);
7 i- z Q: s7 g6 k' ^7 b; c. e. v AddSpecificConfig(selProj, strProjectName);
7 c0 l% E9 k& p9 M! F// selProj.Object.keyword = "MFCDLLProj";$ b+ P- x* h& G9 A& {( M4 S$ n s
4 `# c$ {( b) a
//Set the project filters
, c9 j" f* W' o8 J SetupFilters(selProj);- B+ W: W2 u& {3 G& W) I
* l6 B+ ~6 M( g8 K4 z/ f // Add files to the project from the project's Templates.inf file
0 n. x u$ s3 V3 T/ ]/ { AddFilesToProjectWithInfFile(selProj, strProjectName);8 M+ w2 |% M) _: o. L5 q/ X9 @" i
4 x5 D1 Q7 ^) E, L: [5 Y: |- ~, ]7 v selProj.Object.Save();+ p: I) V' n* l* |+ ?% m, B
}
! \4 d s. T' V' K0 x8 ?$ T catch(e)
9 ~9 ~# r% _# b2 T8 B- M7 S1 C' M {
$ N( f F" I) _ { if (e.description.length != 0)( a/ Y. p8 K: V3 }" o9 p# e" |0 N
SetErrorInfo(e);7 ~& `( [1 X Y
return e.number
$ w9 y0 V' n' d! J Z1 T }
5 D) Z h) E5 O! L: u. L}
+ A! T: z4 c# j. {- e/ K% J3 n5 p2 \4 _6 Z& P! o5 m
function SetFileProperties(projfile, strName)4 h" M E. k! I, K! p
{
5 h6 j, @4 S4 u% R. u1 I6 H8 O return false;
+ k( c4 d7 ?* l9 |, o( K}$ h5 _; o5 w* w, y/ B
1 Z0 P2 [4 {( `5 Q; a I& b' Y6 r! g/ z
function DoOpenFile(strTarget)
8 z( v) _: n" Y3 s2 D5 o; E{
* h8 p' R: l: ~ return false;% }. Z# t% H: S- W. J
} p m8 U4 e0 |4 |
( J$ A5 u6 n/ `) a. k/ C, L5 b; o: Z9 Xfunction GetTargetName(strName, strProjectName, strResPath, strHelpPath)
+ }8 C+ h4 B* ]; N{
% K$ S: a" x! g$ S0 K5 d9 j( g7 [ try, i& ~/ W7 g$ I* u' n' W
{
* C1 ]& ]( b) i# J: r var strTarget = strName;
2 ?2 r$ \ c" n G6 S# i if (strName.substr(0, 4) == "root")
+ \# X; x$ G1 t5 F {/ i/ E2 r( H* A8 }% S% c. I' b/ G
var strlen = strName.length;" S$ A1 s" n5 N1 G6 w
if (strName == "root.ico" || strName == "root.rc2")
* }0 y4 X8 _) @# ] {# t1 ?7 ?2 \* H& b7 X- d3 c
var strSafeProjectName = wizard.FindSymbol("SAFE_PROJECT_NAME"); Q2 R8 W6 b3 F! b9 c, l
strSafeTarget = strSafeProjectName + strName.substr(4, strlen - 4);
, G* T ]3 M0 G- [! g strTarget = strResPath + "\\" + strSafeTarget;7 }5 `( i: V5 c+ E5 l
}
4 g2 b; N0 [" i' l0 { else if (strName == "root.txt" )
3 c) {+ o! `( Y3 W" F$ m9 m4 x# e {; s' r' i7 P' g& h5 r4 C
strTarget = strProjectName + ".cpp";
' v! |$ g; f- }2 R/ {% D }
# F R. c) a3 N/ f Z else& ~3 {( j* R o0 @
{
1 [7 \0 |7 j: N! p9 S( I strTarget = strProjectName + strName.substr(4, strlen - 4);
% w& ]& C. t' ~. m6 M/ a }
4 r# A+ s' r% u return strTarget;1 \: Z& u5 b6 M* X7 B
}/ K! [ N0 }/ Y0 A) c6 v7 K) P
" j d4 a0 K! W! M+ N
switch (strName)
4 J8 r9 M" Q5 t% D {
; z4 Q; U3 k+ \9 p+ T% K( i case "readme.txt": N; P& z5 {! W& d* g& R
strTarget = "ReadMe.txt";
; W+ N9 L' F8 h: N) M break;% {' G0 ~# D. X) z5 m* U! k, H
case "all.rc":
9 s" [1 G/ L3 h, o L7 q: l5 E case "dlgall.rc":
8 N: c, Y, o% [ O m8 m strTarget = strProjectName + ".rc";9 T. P- P% ^& R) @
break;: C/ ]; N A2 r& r4 L+ X- [* Z
case "dlgres.h":4 |! M; m, Q2 H O
case "resource.h":
, U8 k1 x A1 |2 t0 _ strTarget = "Resource.h";
, h0 D; n2 I% q3 x break;
& L9 r7 k) @& M' _$ ~( l# _ default:
( f( x# R& }5 ~$ v- N break;/ k, b5 d' `8 @0 L: V) q& G& D
}
0 X" G- Q- D3 x% @) b$ ]) ~ return strTarget;
! [) N( P* D/ G: o0 q; A" B }7 N; A; Q* @- M: X
catch(e)2 s; l3 @4 \' j1 U3 y
{
2 c" ~) v7 C9 V/ L throw e;( C* I: P2 U+ _ D
}0 l9 C% p' f/ R/ o9 w3 s2 R& t
}
, n9 y6 h- v* t) N
% L0 E3 z, D3 a) z8 Hfunction AddSpecificConfig(proj, strProjectName)
. {# k# J9 \$ C3 l. d{2 s9 d5 F9 U# D4 b" p
try
. ~, k+ j# |% O1 `6 F; R2 a/ d" k+ F; ] {) Y4 f Q/ m/ u
var isDllApp = wizard.FindSymbol("DLL_APPLICATION");4 W" V4 w2 _6 O& f7 S
var isCxx = true;4 w5 q) B8 X: n$ }9 y8 j
$ G) U9 u( k+ _: R7 W+ n
var appType;
! }# p( P# i" o' h3 ^) p/ I var appExtension;) A, T9 Q9 O* B: K D
- a& f) j2 X; Z& q2 y proj.ConfigurationManager.AddPlatform("x64", "Win32", true);
2 N7 J3 F, Y1 @/ h1 n$ q4 b8 b
) m; g8 b0 Y& w( J8 N if ( isDllApp )
}! D/ p0 r& Y4 ` {. t- g- n; p- R4 s
appType = typeDynamicLibrary;
1 b ~2 e. j) ]8 S0 m appExtension = ".dll";
9 X" U4 ?0 o$ _6 S% e, d; ` }2 P) t7 l& t( h5 n* r
else
7 e* B& |& h8 k; _; f- U7 r {
$ F5 W* u1 l5 F appType = typeApplication;
& Y4 W. e+ V T8 m/ I: p0 B& @8 s( d! c appExtension = ".exe";# R! F% O. ~( P1 V3 o6 T
}
( L7 i' m. H, a! i( F' I0 a7 I ], H& L; N- A
var linkLibs = "libufun.lib";
+ V& V% ?0 K0 ~9 b linkLibs += " libufun_cae.lib";
7 O) d0 N# Y& R: z+ i linkLibs += " libufun_cam.lib";- ? i$ f/ g- i# J0 m4 `. k1 D4 z4 d
linkLibs += " libufun_die.lib";
4 |9 d& T& k5 u+ F1 ~/ x ^ linkLibs += " libufun_vdac.lib";7 E! ]2 U( h3 a* p' m1 r9 }
linkLibs += " libufun_weld.lib";
" W# e' S x- a5 S: C5 B& N% e) i0 W5 B" }- X
if ( isCxx)
, B: j, @: R* ]7 [ {% k9 l: E' B, h6 E
var wshell = new ActiveXObject("WScript.Shell")+ n) R @" R. V) Q9 D V% }
var libpath ="D:\\dsplm\\Siemens\\NX12\\ugopen";
# ^# B* y- o" Q5 F% {' S9 e var Fo =new ActiveXObject("Scripting.FileSystemObject");
) i0 R7 m0 V& K$ s" ?* b var FSo = new Enumerator(Fo.GetFolder(libpath).Files);
% p$ P0 _: h- v, x; p var nxopencppName = "libnxopencpp";
& J0 E0 \4 y3 s( h, D4 B for(; !FSo.atEnd(); FSo.moveNext())
/ @6 a7 p- n1 y0 B: ^0 o$ } {0 P$ h$ J8 p t# v$ X4 F
if(FSo.item().name.match("^"+nxopencppName)==nxopencppName) //check if file name start with libnxopencpp
$ U8 d, ?+ a- f! D8 v if(FSo.item().name.slice(FSo.item().name.lastIndexOf(".")+1).toLowerCase() == "lib") //check if file has '.lib' as an extension7 `+ }& z) d y/ @
{
6 c4 g$ O) e Y$ T linkLibs = linkLibs + " " + FSo.item().name;! c; M* w9 `) e5 x
}" O" W# V6 q, U) }9 \6 }/ U; P
}8 f e$ [5 r9 ]( B3 c! V, O* h' ]( o
}! W0 B( C4 X; q' r7 U7 O
- y( r. O" I* L. s, i% F/ ` if ( isDllApp )9 Y- L- p- L2 h9 s- i
{. u& l( O/ z' D/ ]' D# s) e
linkLibs += " libugopenint.lib";
# n( m- p7 i/ Z4 V I& }5 K linkLibs += " libugopenint_cae.lib";, z+ W' G3 l \
linkLibs += " libugopenint_cam.lib";
f2 @! Q& C' Y. y2 E, { S- b I4 A( _. V8 j1 r+ e
if ( isCxx)
Z6 K& ]/ f4 w7 {! X/ R linkLibs += " libnxopenuicpp.lib";
" z( ^1 V* V7 @' N) Z }4 `6 L3 n5 `, ]
" F X. H6 d# t$ M. \9 x' V //=================================================================4 h9 ^- m, `5 T% N
// Debug Configuration7 V9 H: z7 ?( m3 ?' {
//=================================================================
' i/ a* B4 T0 h1 m! G0 _//LRJ - add x64
5 H9 z: k& O! N7 B! \ var config = proj.Object.Configurations("Debug|x64");* |# Z! o- c& ]8 @6 r
config.ConfigurationType = appType;
% S& v" Y S# j8 L9 X config.CharacterSet = charSetUnicode;
4 i7 r% d/ A& F7 _) u* Q" n config.useOfMfc = useMfcStdWin;6 w7 L6 C! p; `( z" x" E
- f/ H2 T8 g8 M$ ~: n var CLTool = config.Tools("VCCLCompilerTool");
. v1 s& s; k3 \, ?5 U7 D var strDefines = GetPlatformDefine(config); v R2 T/ Q S5 C
strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";/ h' C* S5 U4 ~4 \* z
if ( isDllApp )
1 h* U& O8 Q+ d) n( [$ p3 p {# e( F# S! k9 B. s' N: C6 n9 V
strDefines += ";_USRDLL";) M% n3 Z* x0 v9 C0 a
}
) t; X; Q9 E0 L$ r- H0 j else! n, l9 K( s8 t5 K3 O. o! o4 n8 b5 Y" W
{; v& g p; d! @4 a0 H# R; ^
strDefines += ";_CONSOLE";
% Q# D) k: J. R$ ` }
, y ^% D6 W7 z$ P: C7 @! ~6 f! z5 y: `6 b
CLTool.PreprocessorDefinitions = strDefines;# i8 V) K1 o' w% h
$ [' ]% t- E1 E* C config.UseOfMFC = useMfcDynamic;* }5 S6 L: d8 a, m1 z( {7 t
CLTool.RuntimeLibrary = rtMultiThreadedDLL;
- K/ p$ w* P, c. W/ g4 l% r/ L& u& W: O
CLTool.TreatWChar_tAsBuiltInType = true;
- l l" X4 u) m- E/ D; B CLTool.DebugInformationFormat = debugEnabled;
1 X& G3 x0 _! K3 q2 y# w4 M CLTool.AdditionalIncludeDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";
; A1 D2 j; U$ [7 ]$ h* X
; n" Y% k d; [' Y8 |+ O CLTool.RuntimeTypeInfo = 1;% M+ u' n" h5 b. W/ C8 `: _
CLTool.UsePrecompiledHeader = pchNone;
1 k1 |& J1 z" a4 p- H+ @ CLTool.AdditionalOptions = "/d1scalableinclude-";
+ T. I. [( j+ x0 l/ g7 m1 s7 d" v& h) H& [+ ^4 |" l- \: {
//LRJ - change for X64 - add TargetMachine
7 q( i1 M% H9 t' f1 N" A+ e7 u6 a var LinkTool = config.Tools("VCLinkerTool");
9 o! [# ?" J+ X' J |1 e" { LinkTool.TargetMachine = machineAMD64;
- I2 D1 J) w5 w0 Y LinkTool.LinkIncremental = linkIncrementalYes;
, t, f0 E, z! E# d LinkTool.GenerateDebugInformation = true;
' j1 u; q- e$ ? LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;
+ x9 b- s8 u/ c0 F( @7 H if ( isDllApp )
/ ^; p2 c6 z1 ^( W LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";& U) X- g" a/ j) |
LinkTool.AdditionalLibraryDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";/ g/ z: N8 ^' r* C$ b
LinkTool.AdditionalDependencies = linkLibs;
7 _; f: U, H; m8 i5 f9 N/ E LinkTool.SubSystem = subSystemConsole;
. u2 d: W7 s, C//LRJ - add following line for X64 definition5 n- n0 C. s2 j) n6 k/ ]1 m- j b
dte.ExecuteCommand("Build.SolutionPlatforms", "x64");
* d [& t7 r7 W% f0 Q0 D- F0 n
' O/ G7 j. `( J! S# ~" w //=================================================================
8 A+ K) M; ^% |1 I- @' Q' v( D // Release Configuration
# W* {! j0 J, a //=================================================================' T" O V$ f: t
//LRJ - add X64 definition to configuration line' }: j& S3 i, U
config = proj.Object.Configurations("Release|x64");
! v* b& t1 p, b9 z9 H& t" g config.ConfigurationType = appType;+ L$ q% P1 g- M: j4 o7 m% t
config.CharacterSet = charSetUnicode;
* n+ J3 U+ {- y: [ config.useOfMfc = useMfcStdWin;' |+ X; ~) o [
" `5 Q0 ]1 P1 ?$ R CLTool = config.Tools("VCCLCompilerTool");
$ C$ ], G0 u9 t# s strDefines = GetPlatformDefine(config);
6 w0 ]" ]2 T' E& n8 E& A strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";
' X% E6 F ^! y2 E9 z if ( isDllApp )
; r6 V7 {- \3 }6 W9 x# M {
" J4 N% s% L1 o$ |6 l strDefines += ";_USRDLL";
$ T. ]" @9 R6 U' ]: |; Z$ f! j }
0 F2 B) Y2 n1 B0 q3 [$ i0 H else
5 o9 k. H# |0 F {& X6 ~; X: x7 Q; k8 j
strDefines += ";_CONSOLE";3 N2 r. Y8 O" O; y3 `: A, _" h4 m# e( I+ ~
}
1 A' e- J4 ~4 i) A( n9 C3 Y; N7 h; v" a0 z& f: M
CLTool.PreprocessorDefinitions = strDefines;" t3 L* b( @+ ^: K
, e$ w/ u7 t$ K. U1 k% Z2 H" W2 h! A ? config.UseOfMFC = useMfcDynamic;1 f3 M4 y3 ]/ M4 K) l1 X" ]
CLTool.RuntimeLibrary = rtMultiThreadedDLL;! l$ V; H2 i( R# e5 d/ i7 C
1 H6 b2 [8 `* `2 ]* \3 Y7 X/ r9 | CLTool.InlineFunctionExpansion = expandOnlyInline;( _; k! N5 H3 H: O' A9 B
CLTool.TreatWChar_tAsBuiltInType = true;
8 N D5 T2 r% ~+ m/ p. e* E CLTool.DebugInformationFormat = debugEnabled;
, O# F) y* t! b! [4 k& H- D6 l2 Q* R- c; y$ P& [& C' T5 n
CLTool.AdditionalIncludeDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";' z1 X6 X% E# F' q) U
! O: x& u* W% Z% h* }' J3 e8 k) M
CLTool.RuntimeTypeInfo = 1;4 T5 R( l1 M# L
CLTool.UsePrecompiledHeader = pchNone;- G3 o* y8 `1 J. \/ @# \
//CLTool.AdditionalOptions = "/d1scalableinclude-";" ^: B0 D" e6 i/ @3 F% [' p: f- b
\; T" O t* ~6 A$ F# a# ~4 h5 h( k
LinkTool = config.Tools("VCLinkerTool");* }& c' g4 d! i
//LRJ - add following line for X64 definition2 i4 {6 q/ }7 L# B; b' v
LinkTool.TargetMachine = machineAMD64;
$ H1 v& x1 c/ j# g8 v( y F6 D LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;6 K8 Q. P6 k; c. y0 l0 {
if ( isDllApp )
! }( e: u" k5 F LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";/ e2 g8 T0 a: o! f% E b
LinkTool.GenerateDebugInformation = true;
! [0 p9 Q$ l2 q4 T LinkTool.LinkIncremental = linkIncrementalNo;
0 v/ v, G* ]: v; c# R7 j LinkTool.AdditionalLibraryDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";9 _$ L/ n! U3 L8 a
LinkTool.AdditionalDependencies = linkLibs;$ c+ z$ o5 c% I
LinkTool.SubSystem = subSystemConsole;
1 J$ ?) b. A9 N3 K2 q5 E* B//LRJ - add following line for X64 definition
0 ~( M2 M( a1 a) ]5 l1 [ i dte.ExecuteCommand("Build.SolutionPlatforms", "x64");* ^! D+ L3 b5 b/ l4 L: S+ E) a
}
# `2 F o r8 T2 t catch(e)
% u: ^5 e' E) c" r/ m {' Z. d% |0 D2 u$ I- L ^0 q$ ^
throw e;- ~3 P5 e3 b0 g9 ?, s
}
$ b6 b; q9 I/ Q1 n% m5 F7 i}6 _& ]$ @% {3 M3 p# W" w
# m% u6 S4 k* {7 d7 c! `$ R7 n# M( ]! M) S
( A( n! O+ W$ \: {# l$ z
|
|