|
#1
|
|||
|
|||
VB6 binary compatibility
I am using Visual Build 6.7 and am building VB6 projects which are built using binary compatibility.
Sometimes binary compatibility is unavoidable. When I build such a project using VB6 itself, I am warned that compatibility will be broken and am able to proceed with the build. In this case, VB6 modifies the major version of the embedded type library which is correct. This is important to me because if I use tlbimp to generate an interop DLL for consumption by .NET, the version of the resulting DLL is the version of the embedded type library. The version of the interop is critical for me because I am doing a patch build (msp) and if the version is not incremented then it will not be recognized as a change by the Windows Installer. So… is there any way that I can tell Visual Build to build the VB6 DLL even if binary compatibility is broken? In essence, I want the same behavior (sans the dialog) that occurs when using VB6 interactively. |
#2
|
|||
|
|||
If binary compatibility has been broken, you could build explicitly change to project/no compatibility before (Compatibility tab) and then set back to binary compatibility after building, but the VB6 command-line compiler (vb6.exe, what the Make VB6 action ultimately invokes to compile a VB6 project) doesn't provide a way to break and build with binary compatibility.
|
#3
|
|||
|
|||
I have the same issue with compiling in binray compatibility. And I'm handling that the same way as mentioned above.
But now I have another a different issue. I need to compile few VB6 projects using command line (from visual build pro). Can you tell me what is the option to sepcify the compatibility mode in which I need to compile the VB project (binary or no compatibility) Thanks in advance! -Saurabh |
#4
|
|||
|
|||
VB6.exe doesn't have a command-line option for that. You can specify the compatibility settings on the Compatibility tab of the Make VB6 action.
http://www.kinook.com/VisBuildPro/Ma...ibilitytab.htm |
#5
|
|||
|
|||
yes I can do that using Make VB6 action in VBP. But I have a compulsion here to compile few projects using command line. And using command line compilation, the default settings in the project .vbp will be picked. We do not have the flexibility of specifying the compat mode if we dont know how to do that. And you just confirmed that there is no option for that using command line. God help me please.
|
#6
|
|||
|
|||
Why not just use the Make VB6 action to build the project file, since it will modify the .vbp file as needed and then call vb6.exe to actually compile the project?
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|