Thomas
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.
Where did "Soft" come from? Is that new syntax?

Barrie

On Oct 19, 2006, at 11:12 PM, Thomas Cunningham wrote:

Hi Barry,

Your guy started with the OpenGL classes that John B. and I did a while ago.
If you add the word *Soft* before each word *Declare*, it should stop
crashing for you. Like this,

  #pragma DisableBackgroundTasks
  dim GrafPtr as integer

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

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

  #if targetPPC then
    return callGL(gl_ctx, gl_draw)
  #else
    GrafPtr = GetWindowPort(gl_draw)
    return callGL(gl_ctx, GrafPtr)
  #endif

You should just do a global search and replace and preface all of the
declare calls in the modules with soft declare calls.

--
Thomas C.

_______________________________________________
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