- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Text;
- using System.Windows.Forms;
- using System.Runtime.InteropServices;
- using System.Windows.Forms.Design;
- namespace GetCards
- {
- public partial class Form1 : Form
- {
- [DllImport("cards.dll")]
- public static extern bool cdtInit(ref int width, ref int height);
- [DllImport("cards.dll")]
- public static extern void cdtTerm();
- [DllImport("cards.dll")]
- public static extern bool cdtDraw(IntPtr hdc,int x,int y,int card,int mode,long color);
- //mode=0表正面,1表反面,Color我从0-0xFF000试了很多,好象没颜色改变
- //[DllImport("cards.dll")]
- //public static extern bool cdtDrawExt(IntPtr hdc,int x,int y,int dx,int dy,int card,int type,long color);
- &nb
C#调用Cards.dll实现图形化发牌程序
最新推荐文章于 2020-12-04 05:44:17 发布