110,566
社区成员
发帖
与我相关
我的任务
分享
[DllImport("GMEnc.dll")]
public static extern void gm_enc(ref byte in_dat, int dat_len, int ecl, int xdim, int img_res, int fore_color, int back_color, string out_img_fn);
private void Excute_Encoder(string Enstr, string ImgPath)
{
System.Text.Encoding edg = System.Text.Encoding.GetEncoding("GB2312");
byte[] enbyte = edg.GetBytes(Enstr);
int ecl = 3;
int xdim = 4;
int img_res = 200;
gm_enc(ref enbyte[0], enbyte.Length, ecl, xdim, img_res, 0, 0x00ffffff, ImgPath);
以上C#语句如何转换成VB语句。