Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi Folks,

I have VB porject, which is compiling/buidling perfectly using vb6 IDE in XP mode.

My objective is to automate the deployment process, so am trying to build this project in command line using VBC.

But while compiling vb project in window 7 using VBC.exe and cmd its throwing following error/exception.

Example:
error: BC30203: Identifier expected.
error: BC30481:'class' statement must end with matching end class.
error: BC30617:'Module' statement can occur only at file or namespace level.

Does anybody have any suggestion ideas what am missing here.

Thanks in advance.
Posted
Comments
TheLonelyCoder 16-Apr-15 2:16am    
You say, you can compile with VB6 IDE. If so, you can use your VB6 with command line parameters, something like this: VB6 /MAKE "yourproject.vbp" /outdir "whereveryouwant".

All of these are compiler thrown exceptions (errors). Some say, identifier was expected (example context is when you miss the identifier while creating an object), some say Class doesn't end with exact matching End Class; check for any typo. Again that Module thing... Do you know the VB language and structure[^] (link of VB.NET on MSDN)? Or probably you're using old version of language which doesn't match which current settings for compiler.
 
Share this answer
 
I have about 30 programs in vb6 which are part of a system and compile them all via a script with out issue but I'm not using VBC...

My script pulls the project names from a directory and calls something similar to...
VB
"C:\Program Files\Microsoft Visual Studio\VB98\vb6.exe" /m n:\source\vb6\application\app.vbp"
If '%ERRORLEVEL%'=='1' Goto Error
 
Share this answer
 
We can't see your code, nor access your HD in any way. Please give us more informations to work with.

I may try to guess: as far as I know VBC exist for .NET projects - I don't have any similar utility in my VB6 Enterprise installation. Not only that but "namespace level" is a concept non existent in VB6.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900