Good day everybody!
Can I use c-functions GetWindow() and GetWindowText() in VFP? I am trying it , but return value is always 0 which is indication that something is wrong.Here is my code :
*---------------
LPARAMETERS tnHandle,tcTextString,tnMaxCount
DECLARE INTEGER GetWindowText IN user32.dll;
INTEGER lnHandle,;
STRING @lcTextString,;
INTEGER lnMaxCount
RETURN GetWindowText(tnHandle,tcTextString,tnMaxCount)
*----------------
What i am trying to do is simple : get the title of running window , but lcTextString is always empty...
Any suggestions what am I doing wrong ?
Thanks a lot
Can I use c-functions GetWindow() and GetWindowText() in VFP? I am trying it , but return value is always 0 which is indication that something is wrong.Here is my code :
*---------------
LPARAMETERS tnHandle,tcTextString,tnMaxCount
DECLARE INTEGER GetWindowText IN user32.dll;
INTEGER lnHandle,;
STRING @lcTextString,;
INTEGER lnMaxCount
RETURN GetWindowText(tnHandle,tcTextString,tnMaxCount)
*----------------
What i am trying to do is simple : get the title of running window , but lcTextString is always empty...
Any suggestions what am I doing wrong ?
Thanks a lot