[MBS] realbasic plugin issue to pass memory location. (MBS Xojo Plugin Mailinglist archive)
|Re: [MBS] MIDI Destinations and External Devices - Ron Benditt|
|[MBS] realbasic plugin issue to pass memory location. - rohit dhamija|
|Re: [MBS] realbasic plugin issue to pass memory location. - Christian Schmitz|
|[MBS] realbasic plugin issue to pass memory location.|
|Date: 27.09.06 15:51 (Wed, 27 Sep 2006 20:21:38 +0530)|
|From: rohit dhamija|
Developing a REALbasic application in REALbasic 2004 Release 4 on Mac OS X
10.4.7 ppc machine and enountering an issue.
I have a REALbasic application that communicates to my carbon library built
using CodeWarrior 10.0 through a wrapper layer,
i.e. my developed REALbasic plugin.
I need to pass a unique handle generated by the API at the static library
level to the REALbasic application through the glue
layer. But unfortunately i am not founding any good method to do so.
Below is the code snippet at all three levels:
a) //At library level
I get a unique handle from my carbon library that I need to pass to my
long getUniqueHandle(long input_parameter, void * handle)
we get the handle (void * handle) from this function as output.
b)// At Glue layer
Now in my REALbasic Glue layer, i have a glue function for getUniqueHandle,
Glue_getUniqueHandle. Now in this function the
unique handle memory location should be returned back from the library
long Glue_getUniqueHandle(long input_parameter, REALmemoryBlock
getUniqueHAndle(input_parameter, XXXX); // =nwhat shuould be inplace of
c) At REALbasic application level
I call this Glue_getUniqueHandle API in my REALbasic application with empty
handle, this api call will go to the glue layer.
The glue layer will communicate to the carbon library. Now carbon library
will return back the created handle back.
But I donot know how to transfer back the memory location to my REALbasic
So, in summary I need to get the handle value generated at the carbon static
library in my REALbasic application.
Did anybody encoutered same scenerio ?
Is it possible ? How to resolve the same ?
Any sample code, pointers to the same are most welcome.
Thanks and Regards,
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
|Re: [MBS] realbasic plugin issue to pass memory location.|
|Date: 27.09.06 18:11 (Wed, 27 Sep 2006 19:11:41 +0200)|
|From: Christian Schmitz|
rohit dhamija <<email address removed>> wrote:
> Dear All,'
> I have a REALbasic application that communicates to my carbon library built
> using CodeWarrior 10.0 through a wrapper layer,
Is that email for the RB plugin list?
By the way, I do contract plugin development, so you can just order me
to make a plugin for you or some declare lines.