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: 4 votes, 5.00 average. Display Modes
  #1  
Old 02-22-2006, 10:16 AM
Alexey Alexey is online now
Registered User
 
Join Date: 02-17-2006
Location: Moscow, Russia
Posts: 14
VB6 DLL project: binary compatibility and missing DLL

E.g. I have a "Make VB6" step. Field "Filename" points to VBP-file of the DLL project. This VBP has Component Compatibility set to "Binary", but the corresponding binary (DLL-file) is missing. Is there a chance to automatically rebuild DLL in such situation? Currently I must explicitly set "No compatibility" on the "Compatibility" tab. And I'm thinking of setting "Don't change" there, but (!) with the ability to automatically switch to "No compatibility" and build the DLL - instead of just falling with error.
Reply With Quote
  #2  
Old 02-22-2006, 02:08 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
No, but one option would be to use two Make VB6 steps (the first set to not change compatibility and continue on failure, and the second to set to no compatibility and build only if %LASTSTEP_STATUS% is not equal to 0). You could encapsulate these in a subroutine if needed multiple times.
Reply With Quote
  #3  
Old 02-23-2006, 04:34 AM
Alexey Alexey is online now
Registered User
 
Join Date: 02-17-2006
Location: Moscow, Russia
Posts: 14
Thanx - that's a workaround!
Reply With Quote
  #4  
Old 02-26-2006, 03:23 AM
Alexey Alexey is online now
Registered User
 
Join Date: 02-17-2006
Location: Moscow, Russia
Posts: 14
Unhappy Well, it's not as simple as it seemed to me first...

Well, it's not as simple as it seemed to me first.

Imagine I got a VBP-project (Standard EXE) with references to 10 self-made COM-components. The source code of these components is often updated by the developers, so to make building of the EXE-project more intelligent, I followed your advice (given in another forum thread) and created group of projects (VBG), with totally 11 projects inside (10 of them - ActiveX DLLs or controls, and 1 - main EXE-project set as "start-up"). Now imagine, that only one of the ten components failed to be built (because of missing binary, for example). As far as I understand, this will rezult in the following (if using your workaround suggested above): ALL components being built at the next step will be set to "No compatibility" before building, although it would be enough to do that only for one component (for the one being the source of the problem). I think it's not very good. Of course, if the build failure occurs at the 10th (last) component (when 9 are already built successfully), then the next step will change compatibility type only for the "problematic" component. But if failure occurs at component number N, then (10 - N) other components will be set (at the next step) to "No compatibility" before building!

Can you give any recommendations?
Reply With Quote
  #5  
Old 02-27-2006, 11:17 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
1) Don't break compability
2) Always build with no compatibility
3) http://www.yukondude.com/html/tame_vb_with_idl.php
Reply With Quote
  #6  
Old 02-28-2006, 09:01 AM
Alexey Alexey is online now
Registered User
 
Join Date: 02-17-2006
Location: Moscow, Russia
Posts: 14
Quote:
Originally posted by kinook
1) Don't break compability
Not always this is possible. But we try to do out best

Quote:
Originally posted by kinook
2) Always build with no compatibility
Are you sure this is the right choice?!
And, besides, OCX-references are not properly fixed in FRM- and VBP-files, as I described in another thread (http://www.kinook.com/Forum/showthre...&threadid=1576).

Quote:
Originally posted by kinook
3) http://www.yukondude.com/html/tame_vb_with_idl.php
I know, thank you. It's quite normal for C-developers. But we got a team of VB-developers... very experienced developers - but only in VB... well, you understand the problem, I think
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 09:30 PM.


Copyright © 1999-2023 Kinook Software, Inc.