Link to home
Start Free TrialLog in
Avatar of thomsone
thomsone

asked on

Can't make VB6 program that uses argv

I'm trying to make a VB6 project that uses a main subroutine whose first line declares it as follows:  Sub Main(ByRef argv() As String)

I need to be able to pick up command line arguments, but I get error message "Must have startup form or Sub Main()."  When I elimiante the argv reference, the project compiles.  How do I fix this?
ASKER CERTIFIED SOLUTION
Avatar of kbirecki
kbirecki
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You don't put arguments in the Sub Main() proc that defines your startup.
Avatar of thomsone
thomsone

ASKER

Thanks for the fast help!
Happy to help.