From: William S F. <ws...@fu...> - 2009-06-20 11:24:17
|
Smith Jack (Ext. - UGIS - UniCredit Group) wrote: > > I have built and run the example csharp application found at > SWIG\swigwin-1.3.39\Examples\csharp\class > > I am completely baffled. The cpp code defined in example.cxx is never > executed when the example-cs application is executed. > > What exactly is this sample attempting to demonstrate ? > If you've followed the instructions at file:///c:/swig/swigwin-1.3.39/Doc/Manual/Windows.html#Windows_visual_studio this is what you should expect: C:\swig\swigwin-1.3.39\Examples\csharp\class>runme.exe Creating some objects: Created circle Circle Created square Square A total of 2 shapes were created Here is their current position: Circle = (20 30) Square = (-10 5) Here are some properties of the shapes: Circle area = 314.159265358979 perimeter = 62.8318530717959 Square area = 100 perimeter = 40 Guess I'll clean up now 0 shapes remain Goodbye C:\swig\swigwin-1.3.39\Examples\csharp\class> and it is demonstrating basic functionality of SWIG and C++, that is, calling C++ code from C#. William |