On Oct 20, 2006, at 2:21 PM, Frank Condello wrote:

On 20-Oct-06, at 11:44 AM, Barrie Jones wrote:

I forgot to include the function parameters. They are as follows:
gl_ctx As Integer, gl_draw As Integer
I changed "Context" to "gl_ctx"
Now I have two errors:
error 1:
This method or property does not exist
  #if TargetPowerPC then
error 2:
Parameters not compatible with this function
    return callGL(gl_ctx, windowptr)

Build settings are "Mac OSX PowerPC" which includes "TargetPowerPC"
Any idea how I can fix these errors?
Barrie

First, I'm not sure why soft declares are needed if they weren't in Rb 5.5 (???) but as far as your error goes, it seems the function expects gl_draw rather than windowptr - BUT - TargetPowerPC looks like the wrong thing to use. The deprecated TargetPPC constant or the new TargetMacOSClassic makes more sense. In fact, the original classes must have used TargetPPC, since TargetPowerPC didn't exist back when they were made...

Frank.
<http://developer.chaoticbox.com/>

Thank you for your suggestions. Yes, the original function had TargetPPC, I changed it to targetPowerPC when I noticed this was in the build settings and also referenced in the manual. TargetPPC was flagged as an error when I ran Check for errors but it was not flagged when I ran the program. I tried both TargetPPC and TargetMacOSClassic, also tried gl_draw in place of windowptr but these did not fix the problem. The error message was: Exception of class FunctionNotFoundException could not load glViewPort from carbon.
Any other suggestions?
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>

Reply via email to