Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Divide error when compiling from the command line

Status
Not open for further replies.

BlackSneak

Programmer
Aug 13, 2000
9
NZ
I am trying to compile a VB6 app from the command line.
I have
VB6.exe /make <programName>.vbp /out errors.txt
where <programName> is the name of my project.

When I run this, I get a divide error. Microsoft knowledge base says the problem is caused by custom &quot;tabs&quot; on VB6 IDE's toolbox.

If I remove all the custom tabs from the toolbox, the compile works.

My question : is there any way programmatically that I can remove the custom tabs ?

Thanks,
-Black Sneak
 
Figured it out :
The
[HKEY_CURRENT_USER\Software\Microsoft\Visual Basic\6.0]
&quot;Tool&quot;
key contains hex values for the custom tab names.

1) Export this key as a registry file.
2) Remove the tabs programmatically by deleting the Tool key (using an API)
3) run the compile
4) shell to the registry file you exported earlier to put the Tool key back to what it should be.

-Black Sneak
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top