Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Dec 16, 2017 1:45 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Using AddressOf to Create a Callback from Plugin to RB Funct
PostPosted: Tue May 13, 2008 8:21 pm 
Offline

Joined: Sun Apr 20, 2008 9:38 pm
Posts: 10
I can use Event code from a Plugin Class to create a type of CallBack from a Plugin to RealBasic.

I was wondering if I could pass the "Addressof" an RB code Function as a parameter to a Plugin C++ function to allow a Plugin to directly CallBack a function written in Realbasic.

I do this with a lot of success in VB6 to allow a C++ (fast) function to call a VB (slow) function to update a UI element.

If this is possible, is there any template or example for the code in the Plugin to allow this to work ?


Top
 Profile  
Reply with quote  
 Post subject: Re: Using AddressOf to Create a Callback from Plugin to RB Funct
PostPosted: Sat May 17, 2008 11:22 pm 
Offline
User avatar

Joined: Wed Sep 28, 2005 8:39 am
Posts: 9341
Location: St Augusta, MN
You can do it only if the RB method is shared or a module method -- otherwise there's no way for the plugin to properly call the RB method (implicit self parameter).


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group