|
-
Aug 27th, 2013, 11:30 AM
#1
Thread Starter
Frenzied Member
[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.
-
Aug 27th, 2013, 11:55 AM
#2
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)
-
Aug 27th, 2013, 12:34 PM
#3
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|