Although TargetPowerPC was flagged as an error when running "Check Project for Errors" it was accepted when the app was compiled. Now there is another Error:

Parameters are not compatible with this function:
return callGL(gl_ctx, windowptr)

Here is the entire function:

Function aglSetDrawable(gl_ctx As Integer, gl_draw As Integer) As Boolean

 #pragma DisableBackgroundTasks
  dim GrafPtr as integer

  #if TargetMacOS then
Soft Declare Function callGL lib kAGL_Lib alias "aglSetDrawable" (ctx as integer, draw as integer) as boolean
  #endif

  #if targetCarbon then
Soft Declare Function GetWindowPort Lib kAGL_Lib (window as integer) as integer
  #endif

  #if TargetPowerPC then
return callGL(gl_ctx, windowptr)//<––––––––––––––––––––– •••••••• Parameters are not compatible with this function
  #else
    GrafPtr = GetWindowPort(gl_draw)
    return callGL(gl_ctx, GrafPtr)
  #endif
End Function

There was no problem when running on RB 5.5.5 but It seems the above function is not compatible with RB 2006 r4.
Can anyone offer any suggestions?
Barrie

On Oct 20, 2006, at 12:59 PM, Barrie Jones wrote:

Has anyone seen this error when compiling a Mac program in RB 2006 r4?
Any idea why TargetPowerPC is not recognized?

This method or property does not exist (TargetPowerPC is highlighted)
  #if TargetPowerPC then

Mac OSX 10.4.8 Dual 2.7Ghz PowerPC G5
Build setting: Mac OSX PowerPC

Barrie
_______________________________________________
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>

_______________________________________________
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