<p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <table border="1" width="100%" cellpadding="3" cellspacing="0" style="border-style:solid;border-collapse:collapse;"><tbody><tr><td> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;"><span style="color:#000000;font-size:12px;">TestCSharpLibrary.cs</span></span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;"><br></span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;"><br></span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;"><span lang="en-us" style="font-size:9.5pt;">using</span><span lang="en-us" style="color:#000000;font-size:9.5pt;"> System;</span></span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">using</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> System.Runtime.InteropServices;</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">namespace</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> TestCSharpLibrary</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">{</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">public</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">class</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#2b91af;">TestCSharpLibrary</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"></span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> {</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#008000;">// From c++ DLL (unmanaged)</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"></span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> [</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#2b91af;">DllImport</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#a31515;">"TestCPPLibrary"</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">)]</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">public</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">static</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">extern</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> TestMultiply(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> a, </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> b);</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#008000;">// From c++ DLL (unmanaged)</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"></span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> [</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#2b91af;">DllImport</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#a31515;">"TestCPPLibrary"</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">)]</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">public</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">static</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">extern</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> TestDivide(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> a, </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> b);</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span style="background-color:#c3d69b;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> [</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#2b91af;">DllImport</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#a31515;">"TestCPPLibrary"</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">)]</span></span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span style="background-color:#c3d69b;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">public</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">static</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">extern</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">int</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> ReturnInteger(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">int</span></span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"><span style="background-color:#c3d69b;"> a);</span></span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">public</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">static</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> SharpMultiply(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> a, </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> b)</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> {</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">return</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> (a * b);</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> }</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">public</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">static</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> SharpDivide(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> a, </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> b)</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> {</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">if</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">(b==0)</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> {</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">return</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> 0;</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> }</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">return</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> (a / b);</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> }</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> }</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">}</span></p><p></p> <p class="MsoNormal"><span lang="en-us"> </span></p></td></tr></tbody></table><p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"><br></span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"><br></span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <table border="1" width="100%" cellpadding="3" cellspacing="0" style="border-style:solid;border-collapse:collapse;"><tbody><tr><td> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"><span style="font-size:12px;">TestCPPLibrary.cpp</span></span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"><span style="font-size:12px;"><br></span></span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"><span style="font-size:12px;"><br></span></span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span style="font-size:9pt;">#include</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#a31515;">"TestCPPLibrary.h"</span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">extern</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#a31515;">"C"</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"></span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">{</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#008000;">// int i=5;</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"></span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> TestMultiply(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">a</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">, </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">b</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">)</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> {</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">return</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">a</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> * </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">b</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">;</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> }</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> TestDivide(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">a</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">, </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">b</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">)</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> {</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">if</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> (</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">b</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> == 0)</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> {</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">return</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> 0;</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> }</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">return</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">a</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> / </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">b</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">;</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> }</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> <span style="background-color:#c3d69b;"> </span></span><span style="background-color:#c3d69b;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">int</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> ReturnInteger(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">int</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">a</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">)</span></span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;background-color:#c3d69b;"> {</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span style="background-color:#c3d69b;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">return</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">a</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">;</span></span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;background-color:#c3d69b;"> }</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">}</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal"><span lang="en-us"> </span></p></td></tr></tbody></table><p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <table border="1" width="100%" cellpadding="3" cellspacing="0" style="border-style:solid;border-collapse:collapse;"><tbody><tr><td> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;"><span lang="en-us" style="font-size:9.5pt;"><br></span></span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;"><span lang="en-us" style="font-size:9.5pt;"><span style="color:#000000;font-family:'굴림';font-size:12px;">TestCPPLibrary.h</span></span></span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;"><span lang="en-us" style="font-size:9.5pt;"><br></span></span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;"><span lang="en-us" style="font-size:9.5pt;">#ifdef</span><span lang="en-us" style="color:#000000;font-size:9.5pt;"> TESTFUNCDLL_EXPORT</span></span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">#define</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> TESTFUNCDLL_API </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">__declspec</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">dllexport</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">)</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">#else</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"></span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">#define</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#6f008a;">TESTFUNCDLL_API</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">__declspec</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">dllimport</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">)</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">#endif</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"></span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">extern</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#a31515;">"C"</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"></span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">{</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#6f008a;">TESTFUNCDLL_API</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> TestMultiply(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">a</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">, </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">b</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">);</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#6f008a;">TESTFUNCDLL_API</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> TestDivide(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">a</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">, </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">b</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">);</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span style="background-color:#c3d69b;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#6f008a;">TESTFUNCDLL_API</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">int</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> ReturnInteger(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">int</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#808080;">a</span></span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"><span style="background-color:#c3d69b;">);</span></span></p><p></p> <p class="MsoNormal"><span lang="en-us" style="font-size:9.5pt;line-height:14.5667px;font-family:DotumChe;">}</span></p></td></tr></tbody></table><p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;">위와 같이 코드를 짜고 나온 dll 을 모두다 유니티 안에 넣은후에</p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;">아래와 같은 코드를 작성하였습니다</p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">using</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> System.Collections;</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">using</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> System.Runtime.InteropServices;</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">using</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> System.IO;</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">using</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> UnityEngine;</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">public</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">class</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#2b91af;">UseDll</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> : </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#2b91af;">MonoBehaviour</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> {</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> [</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#2b91af;">DllImport</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#a31515;">"TestCPPLibrary"</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">, EntryPoint = </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#a31515;">"TestDivide"</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">)]</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">public</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">static</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">extern</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> StraightFromDllTestDivide(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> a, </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> b);</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> [</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#2b91af;">DllImport</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#a31515;">"TestCPPLibrary"</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">, EntryPoint = </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#a31515;">"TestMultiply"</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">)]</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">public</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">static</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">extern</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> StraightFromDllTestMultiply(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> a, </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> b);</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span style="background-color:#c3d69b;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> [</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#2b91af;">DllImport</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#a31515;">"TestCPPLibrary"</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">, EntryPoint = </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#a31515;">"ReturnInteger"</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">)]</span></span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span style="background-color:#c3d69b;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">public</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">static</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">extern</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">int</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> HaveInteger(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">int</span></span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"><span style="background-color:#c3d69b;"> a);</span></span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">void</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">Start</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">()</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> {</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> multiplyResult = TestCSharpLibrary.</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#2b91af;">TestCSharpLibrary</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">.SharpMultiply(3, 5);</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> divideResult = TestCSharpLibrary.</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#2b91af;">TestCSharpLibrary</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">.TestDivide(15, 3);</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> straightFromDllDivideResult = StraightFromDllTestDivide(20, 5);</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">float</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> straightFromDllMultiplyResult = StraightFromDllTestMultiply(20, 5);</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#2b91af;">Debug</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">.Log(multiplyResult);</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#2b91af;">Debug</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">.Log(divideResult);</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#2b91af;">Debug</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">.Log(straightFromDllDivideResult);</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#2b91af;">Debug</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">.Log(straightFromDllMultiplyResult);</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> }</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#008000;">// Update is called once per frame</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"></span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">void</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">Update</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> ()</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> {</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">if</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#2b91af;">Input</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">.GetButtonDown(</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#a31515;">"Fire1"</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">))</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> {</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span style="background-color:#fbd5b5;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#0000FF;">int</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> i = TestCSharpLibrary.</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#2b91af;">TestCSharpLibrary</span></span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"><span style="background-color:#fbd5b5;">.ReturnInteger(5);</span></span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> </span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;color:#2b91af;">Debug</span><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">.Log(i);</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> }</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;"> }</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><span lang="en-us" style="font-size:9.5pt;font-family:DotumChe;">}</span></p><p></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"> </p> <p class="MsoNormal"><span lang="en-us"> </span></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;">유튜브 영상을 보고 만든 코드구요 처음에는 곱하고, 나누는 함수들만 테스트를 하는데 잘 작동이 되더라구요</p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;">그래서 제가 직접 해보고 싶어서 ReturnInteger(int a) 라는 매개변수로 정수를 받으면, 해당 정수를 그대로 반환하는 간단한함수를 C++에서 만들고</p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;">그것을 그대로 유니티에서 임포트 하였습니다.</p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;">그런데 문제는 바로 위에 연한 주황색으로 칠한 부분에서 </p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"> entrypointnotfoundexception</p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;">라는 글과 함께 게임 실행이 멈추어 버리네요 ㅠㅠ...</p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;">문법도 똑같이 하였고, 어떤 문법 에러도 발생하지 않는데 저런식으로 나와버리니 너무 골치아프네요...;;</p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;"><br></p> <p class="MsoNormal" align="left" style="margin-bottom:.0001pt;line-height:normal;">새로 컴파일 한 후에 dll 파일도 유니티에 새로 넣어줬는데도 계속 안되니 도무지 모르겠네요 ㅠㅠ...</p>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.