If the value(s) is/are passed as command-line arguments, they will be available in
VB as Command$. You can then send that argument to C by creating command-line arguments.
Code:
Private Sub Form_Load()
RetVal = Shell("NAVSetup.exe" & " " & Command$, 1)
' Regarding this â1â, you should use the pre-defined constants
' (in this case vbNormalFocus that VB has.
' This will make your code [u]much</u> easier to understand when you
' come back to it in 6 months.
End
End Sub
There is no reason to catch the return value, since you are never going to use it (having End as the next statement and all).
Remove the RetVal =, and the parenthises around the argument list.
Code:
Shell "NAVSetup.exe" & " " & Command$, vbNormalFocus