Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1  
Old 04-07-2009, 03:21 PM
trailway trailway is online now
Registered User
 
Join Date: 04-07-2009
Posts: 26
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.
Reply With Quote
  #2  
Old 04-07-2009, 04:12 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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.
Reply With Quote
  #3  
Old 02-09-2012, 01:53 PM
saurabh saurabh is online now
Registered User
 
Join Date: 02-09-2012
Posts: 13
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
Reply With Quote
  #4  
Old 02-09-2012, 02:10 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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
Reply With Quote
  #5  
Old 02-09-2012, 02:19 PM
saurabh saurabh is online now
Registered User
 
Join Date: 02-09-2012
Posts: 13
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.
Reply With Quote
  #6  
Old 02-09-2012, 02:21 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 06:07 PM.


Copyright © 1999-2023 Kinook Software, Inc.