Imports System.Runtime.InteropServices
Public Class YYY
    Public Enum a As Integer
        bbb = 0
        ccc = 1
        ddd
    End Enum    Public Structure e
        Public fff As Int32
        Public ggg As Long
    End Structure    Public Declare Auto Function hhh Lib "UUSSBB.dll" _
            (ByVal fff As Int32, ByRef iii As Int32) As Integer
End Class其中命名都是我乱写的 拿到转换器上转来的不要给我拿出来丢人现眼
求高手指教
不懂的就看着高手是怎么解决的就是了
谢谢了(调子虽然高了点但是本人急于解决这个问题没办法了)

解决方案 »

  1.   

    using System.Runtime.InteropServices;
    public class YYY
    {
       [DllImport("UUSSBB.dll", CharSet = CharSet.Auto)]
       public static extern int hhh(uint fff, ref uint iii);   enum { bbb = 0, ccc = 1, ddd };   }public struct e
    {
        public int fff;
        public long ggg;
    }
      

  2.   


    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Runtime.InteropServices;namespace test
    {
        class YYY
        {
            public enum a { bbb = 0, ccc = 1, ddd }        public struct e
            {
                public Int32 fff;
                public long ggg;
                public string author;
            }        [DllImport("UUSSBB.dll")]
            public static extern int hhh(Int32 fff, ref Int32 iii);
        }
    }
      

  3.   

    VB long --> C# int
    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Runtime.InteropServices;namespace test
    {
        public class YYY
        {
            public enum a { bbb = 0, ccc = 1, ddd }        public struct e
            {
                public Int32 fff;
                public int ggg;
            }        [DllImport("UUSSBB.dll")]
            public static extern int hhh(Int32 fff, ref Int32 iii);
        }
    }
      

  4.   

    using System.Runtime.InteropServices;
    public Class YYY
    {
        public enum{bbb = 0,ccc = 1,ddd}    public Struct e
        {
            int fff;
            long ggg;
        }
        [DllImport("UUSSBB.dll")]
        public extern int hhh(int fff, ref int iii);
    }
      

  5.   

    using System.Runtime.InteropServices;
    public Class YYY
    {
        public enum{bbb = 0,ccc = 1,ddd}    public Struct e
        {
            int fff;
            long ggg;
        }
        [DllImport("UUSSBB.dll")]
        public extern int hhh(int fff, ref int iii);
    }