Kinook Software Forum

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

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1  
Old 02-09-2012, 01: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
  #2  
Old 02-09-2012, 01:21 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,027
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
  #3  
Old 02-09-2012, 01:29 PM
saurabh saurabh is online now
Registered User
 
Join Date: 02-09-2012
Posts: 13
yeah I have the compulsion of not using Make VB6 to compile VB projects. Thats coz it was found that the DLL/OCX created produced some appln defects (like some icons not showing properly etc). And the same projects when compiled from the IDE or from command line, produced no such defects.
Hence I'm forced to use command line compilation for VB projects alone.

I'm handling binary break scenarios also from the build script. If a project fails to compile, continue the build, check for its error log. If the error matches with what I have stored in 2 macros (binary breaks have typical error messages), then compile the project in NO COMPAT MODE, and then compile in BINARY mode and then go back to the next project in loop and start compiling again.

Note - If the project failed due to some other reason (like compilation error, file missing etc etc and not due to binary break), then stop the build.

So during build, I can not manually change the project settings temporarily. I need to do that using script only.
Reply With Quote
  #4  
Old 02-09-2012, 01:33 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,027
That's odd, since the Make VB6 action actually calls vb6.exe to compile, so I'm not sure how it could produce different results than calling vb6.exe directly (you can see the command-line it uses to build by checking the 'Log the command-line' option on the Options tab). At any rate, you can use the Make VB6 action to change compatibility setting in the project file but not build (check the 'Don't build the project(s)' option on the Project/Group tab).
Reply With Quote
  #5  
Old 02-09-2012, 01:55 PM
saurabh saurabh is online now
Registered User
 
Join Date: 02-09-2012
Posts: 13
wow! this can help me i guess.
first change the compat settings and dont build it using Make VB6 action.
in next step build it with the settings having been checked in the previous step.

I would need to check now if the change in settings in the first step would save the project file and be available in the next step or not.
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 02:28 PM.


Copyright © 1999-2023 Kinook Software, Inc.