command-line - 从命令行进行VB6编译

标签 command-line vb6 compilation

有人知道如何从命令行编译vb6 webclass dll吗?我正在尝试构建一个用于自动进行版本构建的工具,但是它失败,并显示“文件'[文件名]'中的编译错误”,第xxxx行: undefined variable '警报。

最佳答案

Known bug:

SYMPTOMS

When you use command line arguments to compile a Microsoft Visual Basic project that contains WebClass designers, you may encounter errors.

CAUSE

When you use the command line argument /MAKE to compile the application, if the associated .DCA files for the Designers (.DSR) are not in the same directory as the .DSR files, you may encounter errors during the compiling. The .DCA files contain type library information that is necessary to compile the project.

RESOLUTION

Use one of the following workarounds to compile the project without errors:

  • Open the project in Visual Basic, and make a change in the project. Any change, such as entering a space and then deleting the space in the project, will suffice. Close Visual Basic, and save the changes. This rebuilds the .DCA files for the application in the same directory where the .DSR files are located.
  • Compile the application inside of the Visual Basic Integrated Development Environment (IDE). This also rebuilds the .DCA files for the application.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article...

关于command-line - 从命令行进行VB6编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/478241/

相关文章:

python - vscode找不到python的requests库

linux - 通过 ssh 连接时使用远程服务器的别名

.net - VB6控件数组最简单的.NET等效项是什么?

vb6 - FFProbe 不会将结果输出到文件

java - 通过命令行编译但不是在 ant 中

heroku - Heroku Remote 不会删除

java - 修改Javadoc

visual-studio-2015 - 使用 Visual Studio 2015 创建 VB6 dll?

go - 无法编译 Go 文件 - "initialization failure...xxxx redeclared in this block"

xcode - Xgrid 与 Xcode 配合进行并行编译的效果如何?