Results 1 to 3 of 3

Thread: Activex exe

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    2

    Activex exe

    Hello Everybody,

    I need to know how to write an exe , either a standard one or an activex exe, that takes parameters when calling it from an asp page.
    Can it be done? How?

    Thank you in advance.
    Butterfly

  2. #2
    Hyperactive Member
    Join Date
    May 2000
    Location
    Or
    Posts
    316
    Do you mean like a command line parameters, or properties of an object.

    Command Line parameters are easy. You simply use the Command$ keyword.

    So if you wanted to pass a help parameter as "-h" you would read it using the following:

    VB Code:
    1. '==============================
    2. 'To use Command, you program has to
    3. 'be started from Sub Main.  This is because
    4. 'the Command generally plays a role in
    5. 'deciding what forms are or are not shown.
    6. 'So place this code in a module.
    7. '==============================
    8.  
    9. Sub Main()
    10.    If Left$(Command$,2)="-h" then
    11.         msgbox "help command was called"
    12.    Else
    13.         msgbox "no parameters'
    14.    end if
    15. end sub

    This could be compiled into an exe, and called like: project1.exe -h

    If you have multiple parameters, you usually use the Split command to split on the delimiter like "-" in my example, then loop through the array.

    If this isn't want you wanted, then I can try again later.

    Hope this helps.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    2
    It really helps
    Thank you a lot
    Butterfly

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width