[DllImport("gdi32.dll", ExactSpelling = true)]
private static extern int GetDeviceCaps(IntPtr hDC, int nIndex); [DllImport("gdi32.dll", CharSet = CharSet.Auto)]
private static extern IntPtr CreateDC(string szdriver, string szdevice, string szoutput, IntPtr devmode); [DllImport("gdi32.dll", ExactSpelling = true)]
private static extern bool DeleteDC(IntPtr hdc);
http://www.cppblog.com/mzty/archive/2007/06/04/25522.html
这种可能对你工作量最小了
回复内容太短了!
还可以,把你c++源文件 按照com的标准去写,导出接口,让c#去调用这个接口成员,这样不就又组织了嘛