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