Good morning
I am trying to activate my powerbuilder application while working on another (non powerbuilder) application.
What I have to do is, when the second application write a file in a predefined folder, my PB application must consume the file activating itself, and becaming the actual active window application.
I tried whit this code:
unsignedlong hwnd
hwnd = FindWindow(0, "My PB App")
SetForegroundWindow(hwnd)
using these API declaration:
PUBLIC FUNCTION unsignedlong FindWindow (long classname, string windowname) LIBRARY "user32.dll"
FUNCTION BOOLEAN SetForegroundWindow( LONG HWND ) LIBRARY "USER32"
but it doen't work.
Any suggestion?
Thanks in advance.
Mario