realbasic-plugins
[Top] [All Lists]

REALGetEventInstance returns NULL

To: "'realbasic-plugins at lists dot realsoftware dot com'" <realbasic-plugins at lists dot realsoftware dot com>
Subject: REALGetEventInstance returns NULL
From: Darren Boon <dboon at renlearn dot ca>
Date: Thu, 21 Jul 2005 10:41:22 -0500
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
 
I am trying to use an event that I have defined in my control without much
success.
 
This is how I have defined it:

    typedef void (*InitEventPtr)( REALcontrolInstance instance );
 
    static REALevent SectionEditorEvents[] = {
         { "Initialize" },
    };
 
This is how I am using it:
 
      InitEventPtr init = (InitEventPtr)REALGetEventInstance( instance,
&SectionEditorEvents[0] );
      if( init != NULL )
           init( instance );

The event shows up in the RB IDE and I can add code it it, but my plug-in
always gets a NULL function pointer from REALGetEventInstance. What could be
preventing my plug-in from getting the function pointer?
 
Thanks,
 
Darren Boon
 
_______________________________________________
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>

<Prev in Thread] Current Thread [Next in Thread>