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
On Oct 20, 2006, at 11:23 AM, Barrie Jones wrote:
Thanks for the "soft" info.
I have added "Soft" to all declares and now there is just one error
as follows:
This method or property does not exist
#if TargetPowerPC then
return callGL(context, windowptr)
#else
The word "context" is highlighted. It is not declared in the
function and I can't find "context" in the reference manual.
Here is the Function:
#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(context, windowptr)
#else
GrafPtr = GetWindowPort(gl_draw)
return callGL(gl_ctx, GrafPtr)
#endif
Any ideas how I can eliminate the error?
Barrie
On Oct 20, 2006, at 10:17 AM, [EMAIL PROTECTED] wrote:
On Oct 20, 2006, at 03:32 UTC, Barrie Jones wrote:
You are a life saver. Thank you very much for your reply. There are
over 500 declare statements so I will try it tomorrow and let you
know the result.
Keep global search & replace in mind for this.
Where did "Soft" come from? Is that new syntax?
Fairly new -- I forget exactly when it was introduced, but it makes a
weak link to the declared function instead of a strong one. That
means
that the declared function is loaded dynamically, at runtime, and
your
app will launch whether that function is actually available or
not. If
it's not, and you try to use it, then an exception will be raised.
Cheers,
- Joe
--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC "Making the Internet a Better Place"
http://www.verex.com/
_______________________________________________
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>
_______________________________________________
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>