realbasic-plugins
[Top] [All Lists]

Re: calling methods of a class in RB

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: calling methods of a class in RB
From: Norman Palardy <npalardy at great-white-software dot com>
Date: Thu, 13 Sep 2007 23:31:30 -0600
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <1i4ew8g dot 1h1kv9p1qlu0qgM%support at monkeybreadsoftware dot de> <9D4EAFC7-3FAC-4BCD-9645-4A7506FA63EF at great-white-software dot com>
On 13-Sep-07, at 11:11 PM, Norman Palardy wrote:

>
> On 13-Sep-07, at 7:57 PM, Christian Schmitz wrote:
>
>> Norman Palardy <npalardy at great-white-software dot com> wrote:
>>
>>>               func = ( Boolean(*)(void) ) REALLoadObjectMethod
>>> (instance-
>>
>> Don't load using REALLoadObjectMethod. It was defined much later than
>> interfaces.
>
> I looked at that and was not sure that was the right one
> Apparently it is :)

or not ...
doesn't seem to get the method

I suppose it's possible I dont have the object instance I think I do  
but this is not getting me the routine IF I do

I basically have a boolean method that I am just doing

        Boolean  SomeFunc(data *instance)
        {
                Boolean (*func)(void);
                func = ( Boolean(*)(void) ) REALInterfaceRoutine (instance- 
 >iFuncsProvider,"iFunctions", "SomeFunc() as Boolean");
                if (! func)
                        return false;
        
                return func();
        }
and this is always returning false

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>