On Apr 10, 2006, at 2:40 PM, Peter Truskier wrote:

The following snippet compiles and works correctly in RB 5.X - 2006r1, but results in a compiler error - "this method does not exist" - on "err = SetUserFocusWindow(-1)" (i.e., in the "else" code):


    if w <> NIL then
Declare Function SetUserFocusWindow Lib "CarbonLib" (inWindow as WindowPtr) as Integer
      err = SetUserFocusWindow(w)
    else
Declare Function SetUserFocusWindow Lib "CarbonLib" (inWindow as integer) as Integer
      err = SetUserFocusWindow(-1)
    end if


Is this a bug, or am I doing something wrong?

It certainly is a bug. Please file a report.

Thanks,
Jon


--
Jonathan Johnson
REAL Software, inc.



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to