Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

[MBS] realbasic plugin issue to pass memory location. (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] PDF image resolution problems
Next thread: [MBS] 6.4pr3


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
Dear All,'

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.

MyREALbasic_app<=DMyREALbasic_Plugin<=marbon_static_library.

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

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

long Glue_getUniqueHandle(long input_parameter, REALmemoryBlock
Glue_handle){

getUniqueHAndle(input_parameter, XXXX); // =bwhat shuould be inplace of
XXX

}

c) At REALbasic application level

void *handle;

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

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,
Rohit Dhamija
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

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.

Gruß
Christian