[System.Runtime.InteropServices.DllImport("kernel32", EntryPoint="GetPrivateProfileStringA")] 
public long GetPrivateProfileString(string lpApplicationName, Any lpkeyName, string lpDefault, string lpReturnedString, long nSize, string lpFileName);

解决方案 »

  1.   

    pubic string[] str = new string[];
      

  2.   

    1.(VB)
    Public Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpkeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long
    ---[System.Runtime.InteropServices.DllImport("kernel32", EntryPoint="GetPrivateProfileStringA")] 
    public long GetPrivateProfileString(string lpApplicationName, Any lpkeyName, string lpDefault, string lpReturnedString, long nSize, string lpFileName);2.  Public grrr()   As String (VB)
    C#中可以定义维数不定的数组吗?
    ------public string[] grrr;
        但是这是未实例化的,public string[] grrr=new string[];是不行的;可以使用动态数组ArrayList
      

  3.   

    3.    在VB项目中有Modules和Class Modules,什么区别?
     分别对应C#中什么?
    ---------???4.    Public Conditions      As New Collection
    vb中的类型collection 到了C#里变什么?
    ------ 一样
      

  4.   

    4.    Public Conditions      As New Collection
    vb中的类型collection 到了C#里变什么?
    ------ 一样???不一样吧?
      

  5.   

    支持孟老大!
    孟老大帮我看个贴:
    http://community.csdn.net/Expert/topic/3314/3314371.xml?temp=.4660761
      

  6.   

    Any 类型是哪个命名空间的???