'Start with full compile' 和 'Make Exe' 的区别?

Difference between 'Start with full compile' and 'Make Exe'?

在 VB6 中 IDE...

we can compile the project by pressing Ctrl+F5 or by choosing File->Make Exe. Is there any difference between these two procedures? The former one seems to be a bit faster relatively.

What I want to know is "What's difference between these two compilation procedures (if any...) and where should I use the first one and where should I use the second?"


基于 this external post 但作为问题添加到这里,因为我没有在 SO 上找到它。

VB6 默认编译 "on demand",当您执行 运行 > 开始(或仅按 F5) 时会发生这种情况。这意味着某些编译错误只有在运行时实际调用时才会显示出来——或者如果您碰巧没有执行包含错误的特定代码块,则可能根本不会显示出来。

但是使用 Ctrl-F5 或 "Start with full compile" 会导致编译每一行代码;任何潜在的错误都可以通过这种方式被发现和消除。

'Make Exe...' 导致完整编译,然后写入项目的 EXE。

使用'Make Exe...'也可以在编译前设置一些选项 (例如版本号)。


转述自here