-
Jan 5th, 2007, 09:11 AM
#1
Thread Starter
Addicted Member
[RESOLVED] VB6 Binary Compatibility
Hi,
I have a problem compiling my VB6 project using the command line compiler.
When the project is compiled in the IDE the compiler asks if I want to Break Compatibility or Preserve Compatibility. I always select Preserve and click the checkbox to treat other incompatibilities the same.
However on the command line I just get an error saying there was a compatibility error and compilation fails. Is there a way to get around this using the command line compiler?
Cheers
-
Jan 5th, 2007, 07:44 PM
#2
Re: VB6 Binary Compatibility
Do you have activex dll included in your main project? What options are set in your dll project? Make sure it is set to "Binary Compatibility". And don't use command line compiler - use VB IDE.
-
Jan 5th, 2007, 09:53 PM
#3
Re: VB6 Binary Compatibility
If you look in my sig, there's a posting on the use of Compatibility and why it's important.
-tg
-
Jan 6th, 2007, 06:33 AM
#4
Thread Starter
Addicted Member
Re: VB6 Binary Compatibility
Hi,
My project is set to binary compatibility with a much older version. Some of the public interfaces have been modified with extra parameters, although existing parameters have not been removed. I presume that this is what allows me to preserve compatibility. My project is a dll snapin used by MMC (Microsoft Management Console).
I suppose if I created new functions instead of modifying the existing ones VB wouldn't complain.
I can compile fine in the IDE, I wanted to compile from the command line as part of a build script.
-
Jan 8th, 2007, 04:07 AM
#5
Thread Starter
Addicted Member
Re: VB6 Binary Compatibility
I've now included the interface definitions that were present in the old dll but missing/modified in the current dll. After fixing name conflicts my program compiles and I do not get the dialog asking me to preserve/break compatibility. I can now compile from the command line.
-
Feb 18th, 2012, 06:19 AM
#6
New Member
Re: [RESOLVED] VB6 Binary Compatibility
I am facing the same issue, please explain how you included the interface definitions.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|