I successfully adapted the answer you gave infoanytime to his/hers question "passing Param to existing instance of prg" to my own use, which is to just activate the previous instance and kill the new one. That is, I got it working in Win32... But in Win16 I can't get the "FindWindow" line to work, and that ,obviously, breaks the whole thing. Can you help me with this?
I've posted "my" code below, so you know exactly what I'm doing...
Thanks in advance!
*** begin code ***
si = FindWindowA(&O0, &O0)
'here's the showstopper...
si = GetWindow(si, GW_HWNDNEXT)
Loop Until (ShowWindowText(si) = Me.Caption And si <> hwnd) Or si = GetWindow(si, GW_HWNDLAST)
If si > 0 And si <> hwnd And si <> Getwindow(si, GW_HWNDLAST) Then
ShowWindow si, SW_MAXIMIZE