Results 1 to 3 of 3

Thread: [RESOLVED] command line and new object

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    Resolved [RESOLVED] command line and new object

    I run into a scenario that I am stuck. I have an exe, and in the program, there's this sequence:

    1. Create an object provided by API.
    2. Call that object to login.
    3. On logoff, call that object to logoff

    This is working fine; however, now what if I want to pass in command line to my program to logoff at any time that program is running. So in step 2, once the program is logged in. I want to be able to have a shortcut that I can point to that program.exe /logoff and it should call the step 3. It's not working so far, my guess is the object is a new object now and it doesn't tie to that existing object.

    Perhaps, pass in the command line to the existing running exe? not sure if that's achieveable.

  2. #2
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060

    Re: command line and new object

    You may want to assess the available methods described in this thread and see whether a viable solution exists for you.


    On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
    Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    Re: command line and new object

    Thanks you just gave me an idea from that thread. I can always count on vbforum gurus.

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