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 Rate Thread Display Modes
  #1  
Old 03-04-2008, 11:05 AM
wkwan wkwan is online now
Registered User
 
Join Date: 02-22-2008
Posts: 5
Question VB6 VBG Compile

We have two VB6 VBP file in one VBG like below.

D:\DLL\PROGRAM1.VBP -> ActiveX DLL
D:\EXE\PROGRAM1.VBP -> EXE
D:\EXE\PROGRAM1.VBG

When we open PROGRAM1.VBG in VB6 IDE it will automatically load both apps with the same name and when we compile we choose File -> Make Project Group... in the IDE menu and compile both apps producing PROGRAM1.DLL for the activex and PROGRAM.EXE for the EXE.

I compiled the PROGRAM1.VBG in Visual Build but it always failed. Below is the excerp of the help file.

*****************
Note: The Make VB6 Action requires that all VBP filenames within a single VBG be unique. If multiple projects in the group have the same filename, rename the VBP files so that they are unique, and update the VBG with the changes as well. The project names stored in the VBP files do not need to be changed (but be aware that it is dangerous to have multiple VB COM projects with the same project name since this can result in ProgID clashes when registered).
******************

Is there any workaround for this?

What I have in mind is compile first the activex PROGRAM1.VBP and then compile PROGRAM1.VBP for the EXE but how do I reference the newly created activex DLL in the PROGRAM1.VBP for the EXE?

Thank you in advance.

Regards,
Reply With Quote
  #2  
Old 03-04-2008, 11:08 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
As that note states, rename one of the .vbp files and update the .vbg accordingly.
Reply With Quote
  #3  
Old 03-04-2008, 11:23 AM
wkwan wkwan is online now
Registered User
 
Join Date: 02-22-2008
Posts: 5
Do we have any alternative? I just can't rename the file it's been there for years.
Reply With Quote
  #4  
Old 03-04-2008, 11:36 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
What prevents you from renaming it (why would its age matter)? If needed, you could automate from the build:
1) Rename one of the .VBP files using the Rename Files action (i.e., PROGRAM1.VBP -> PROGRAM1_.VBP).
2) In the .VBG file, replace the VBP filename using the Replace in File action (i.e., replace DLL\PROGRAM1.VBP with DLL\PROGRAM1_.VBP).
Reply With Quote
  #5  
Old 03-04-2008, 11:47 AM
wkwan wkwan is online now
Registered User
 
Join Date: 02-22-2008
Posts: 5
OK, thanks.

I was thinking of renaming it without renaming it back to it's original name.
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 07:11 AM.


Copyright © 1999-2023 Kinook Software, Inc.