I expect to be missing something obvious, but when I add a method to my API that accepts an argument of type System.Windows.Forms.Form (or other types from that namespace, and I've also tried System.Drawing.Graphics, which works well in the ShapeAddAdvancedCSharp sample without luck), I get a runtime error in proxy.cs, where a KeyNotFoundException is being thrown.
Passing other types (my own from the API, or System.String and so forth) works fine, which is why I'm thinking that I've messed things up.
Example of proxy code that causes the exception to be thrown:
this.@__vstaCacheTest33 = this.remoteType.GetMethod("Test3", (((global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.InvokeMethod)
| global::System.Reflection.BindingFlags.Instance)
| global::System.Reflection.BindingFlags.Default), null, new global::System.Type[] {
typeof(global::System.Drawing.Graphics)}, null);
Thanks in advance,
Bjorn Karlsson