<html><head><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head><body><div data-externalstyle="false" dir="ltr" style="font-family:Calibri,'Segoe UI',Meiryo,'Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','Khmer UI','Nirmala UI',Tunga,'Lao UI',Ebrima,sans-serif;font-size:12pt;"><div>> It is true, but only when my project decides which version to run.<br>> In my case it doesn't, main project decides that since it is configured as<br>> "Any Cpu"<br>> so I have no control over it... :(<br>> Is it possible to add a reference dynamically?</div><div> </div><div>Perhaps, since this is not really a VTK question, you would have better luck getting a response on a site like stackoverflow, especially since it has MANY thousands more eyeballs on it:</div><div> </div><div><a title="http://stackoverflow.com/questions/7727876/any-cpu-dependent-on-c-cli-dependent-on-native-c-dll-any-cpu-for-c-cli" href="http://stackoverflow.com/questions/7727876/any-cpu-dependent-on-c-cli-dependent-on-native-c-dll-any-cpu-for-c-cli" target="_parent">http://stackoverflow.com/questions/7727876/any-cpu-dependent-on-c-cli-dependent-on-native-c-dll-any-cpu-for-c-cli</a></div><div> </div><div>I’ve already said here earlier, “you can’t.” Now, I hate people who say “you can’t,” so I’d love to proven wrong on this... but it’s certainly easiest to have 2 builds of your app, one explicitly targeting x86 and one explicitly targeting x64, each one referencing the appropriate build of ActiViz. Forget about blending “Any CPU” and ActiViz -- it’s too much work when there’s a ready-made simple solution of just having 2 builds.</div><div> </div><div> </div><div>HTH,</div><div>David</div><div><br> </div></div></body></html>