|
Listing 8-11 extracted from chapter Interoperability between .NET and native code/COM/ COM+
Listing 8-10< > Listing 8-12
This listing can be compiled with the command line: csc.exe /out:DotNETClient.exe /target:exe Example_8_11_to_rename_DotNETClient.cs /r:AsmCOMComponant.dll Errors: 1 Warnings: 0
Example_8_11_to_rename_DotNETClient.cs
using TestInterop;
class Program {
static void Main() {
ICOMClass foo = new CCOMClassClass();
int result = foo.CalcSum(2, 3);
System.Console.WriteLine("Result :{0}", result);
}
}
Copyright Patrick Smacchia 2006 2007
|