Tim Jones <[EMAIL PROTECTED]> wrote:
> Hi Folks,
>
> Working on a plugin being developed from a current Linux shared library
> that requires 2 structs of shorts passed in and a third struct of shorts
> for the results to be returned. I understand the process of passing in
> the structs as MemoryBlocks as Ptr, and passing the third struct as a
> memoryblock byref as a Ptr.
>
> My question is what type of object am I creating when I add my RB
> function? Here's the actual function call definition:
>
> static void MontgomeryReduction(unsigned short *m1,
> unsigned short *m2,
> unsigned short *result)
>
> What type of the entry in the pluginMethodArray[]? For example:
>
> static REALmethodDefinition pluginMethodArray[] = {
> { (REALproc) ModularExp, REALnoImplementation,
> "ModularExp(MemoryBlock As Ptr,
> MemoryBlock As Ptr,
> ByRef MemoryBlock As Ptr)" },
> };
"ModularExp(m1 As MemoryBlock,
m2 As MemoryBlock,
r As MemoryBlock)" },
Just pass memoryblocks.
Gruß
Christian
--
Over 900 classes with 17000 functions in one REALbasic plug-in.
The Monkeybread Software Realbasic Plugin v7.6.
<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>