VB中CLS文件和DLL文件的用途是什么?

Bri*_*ian 8 vb6

有没有人能够很好地解释VB项目中CLS,DLL和VBP文件的不同含义?

Mar*_*rkJ 14

  • CLS file is a class file containing the source code for one class.
  • VBP file is a project file. You open a VBP in the VB6 IDE to browse or edit the code for that project.
  • Projects can also be included in groups (VBG files), roughly equivalent to what .Net calls solutions.
  • DLL file is a compiled executable library built from your VB6 source code. See Wikipedia

The VB6 manual explains many of the file extensions, including CLS and VBP.


N0A*_*ias 5

在.Net之前的日子里.cls文件是您的类模块所在的位置.Dll代表动态链接库,是一个已编译的程序集.VBP代表Visual Basic项目,是整个项目的主文件.