When an app is started and a previous instance is present,
I want to forward the command-line to the previous instance.
This works:
This is executed but there are no data...
I have tried globalAlloc/globalLock/globalunlock with no success
Would certainly need some advice here...
Thank you
-------------
Fred
mailto:[email protected][email protected]</A>
http://www.oxenby.se
I want to forward the command-line to the previous instance.
This works:
Code:
MyMessage = RegisterWindowMessage("DoCmdLine") If FindWindow(ByVal StrPtr(Class$), ByVal %NULL) Then TmpWnd& = FindWindow(ByVal StrPtr(Class$), ByVal %NULL) If IsIconic(TmpWnd&) Then ShowWindow TmpWnd& ,%SW_RESTORE SetForegroundWindow TmpWnd& Call SendMessage(TmpWnd&,MyMessage,ByVal StrPtr(CmdLine$),ByVal Len(CmdLine$)) Function = 0:Exit Function End If
Code:
Select Case Msg& Case MyMessage CmdLine$ = Peek$(wParam&,lParam&) Call ExecuteCmdLine(CmdLine$) Function = 0:Exit Function ...etc
Would certainly need some advice here...
Thank you
-------------
Fred
mailto:[email protected][email protected]</A>
http://www.oxenby.se
Comment