写了一个不使用 COM, 而是通过 WIN32 API 实现的示例, 它把写字板程序嵌在了自己的一个面板中. 这么做可能没有实际意义, 因为两个程序之前没有进行有价值的交互, 这里仅仅是为了演示这么做到, 以下是详细注释过的主要源代码. 我把它封装到一个类中: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; using S
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows.Forms; namespace War3Screen { /// <summary> /// 以嵌入到窗体的方式打开外部exe--kongfl888 2013 /// </summary