如:
public const short CMD_CANCEL_CMD = -9;
public struct MULTI_COMMUNICATION 
{                                                                                                                                                              
int nComType;
string szPhoneNo;
...
}搜索下旧的贴子,再找个vb转为c#的工具,慢慢调试:)

解决方案 »

  1.   

    先将VB的程序升迁为VB.NET的程序,对于编译出错的部分,再仔细查帮助。
      

  2.   

    上面是VB的程序,如果转换成.net写的,该怎么做呀 。
    1,Private Type LPUFIND_DATA 这种类型在.net 里面如何定义 。
    2,Const MAX_PATH = 25
       Const GENERIC_READ = &H80000000
       Const GENERIC_WRITE = &H40000000
    在.net里面怎么写 ????---------------------------------------
    答案:
      public class Class1
      {
        private struct LPUFIND_DATA
        {
          public byte cNouse;      public string cFileName;    }
        private const int CP_ACP = 0;    private const int MAX_PATH = 25;    private const int GENERIC_READ = int.MinValue;    private const int GENERIC_WRITE = 1073741824;
      

  3.   

    如果是vb.net直接使用就是了,如果是C#,按照结构转换就可以,常数这东西就不用多说了吧,只是一个16进制而已
      

  4.   

    to  mazekui(悠悠春竹) 大哥
    private const int GENERIC_READ = int.MinValue;
    private const int GENERIC_WRITE = 1073741824;是不是已经转化好了 ???int.MinValue是&H80000000吗?
      

  5.   

    int num = 1840;
    int m = num / 100;  //整数结果
    int n = num % 100;  //余数