Click to See Complete Forum and Search --> : How to pass arguments to ActiveX Exe
Arjun M
December 13th, 1999, 01:24 AM
Hi,
I have a main program which uses an ActiveX exe. I need to pass some arguments to this ActiveX exe. How can I pass argument as command line to this AX from main program? (And the Class Initialise of the class inside event Active X does not take parametres).
Does any one know how to tackle this?
Thank you
Arjun
Software Engineer
Bangalore
Lothar Haensler
December 13th, 1999, 01:46 AM
add a public property to a public class of your activex exe and set that, or
run it via Shell command and pass parameters to the ActiveX Exe (access those command line parameters via Command$ variable)
Arjun M
December 14th, 1999, 11:49 PM
Hi,
The requirement is that the AX class initialization should establish a connection and the parametres to do this should be available at the class initialization time. So the public Let Interface cannot be used. If I try the Shell to invoke with these parametres as command line, I am getting "-Embedding" when I use the Command() function.
Is there any method to solve this?
Thanks in advance
Arjun
Software Engineer
Bangalore
Lothar Haensler
December 15th, 1999, 01:45 AM
VB does NOT have constructors (Class-Init...) that allow you to pass parameters.
This could change in VB 7 (I have seen a demo).
INHO, the only way is:
instantiate the class
intialize properties
call a method
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.