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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You don't put arguments in the Sub Main() proc that defines your startup.
ASKER
Thanks for the fast help!
Happy to help.