编译前先用全编译执行走一遍,快捷键:Ctrl + F5

解决方案 »

  1.   

    嘻嘻。如果你知道你的ini的文件结构。那么直接用input 模式打开你的文件然后读取相应的行就好了。要是你的ini文件结构比较复杂那就调用api吧。也很方便的。
      

  2.   

    1.Of course.
    2.Use GetPrivateProfileString function
      

  3.   

    Private Declare Function GetPrivateProfileString Lib "kernel32" 
    C:\test.ini的内容
    [Section1]
    Key1=hello程序
    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
    Private Sub Form_Load()
        dim NC as long
        dim Ret as String
        Ret=space(255)
        NC = GetPrivateProfileString("Section1", "Key1", "Default", Ret, 255, "C:\test.ini")
        If NC <> 0 Then Ret = Left$(Ret, NC)
        MsgBox Ret
    End Sub
      

  4.   

    vb中的编译器最大只能编译64K,所以你的每一个过程代码最好不要超过2000行,
    至于总共多长,没有限制的。
    第二个问题,他们解决的很好的。