I did, or at least I thought I did. But then I get "Invalid use of
incomplete type 'struct REALobjectStruct'. But I have since gotten
over that hurdle.

Everything now compiles, but I have no idea how to use it. The sample
code looks like this:

void (*fpConnect)( REALobject ) = NULL;
fpConnect = (void (*)( REALobject ))REALLoadObjectMethod( obj, "Connect()" );
if (fpConnect)  fpConnect( obj );

and my code looks like this:

void (*fpConnect)(REALobject) = NULL;
        fpConnect = (void
(*)(REALobject))REALLoadObjectMethod((REALobjectStruct*)context,"DrawString(str
as string, x as integer, y as integer)");
        if (fpConnect) fpConnect((REALobjectStruct*)context);

How do I use my text and x,y values in conjunction with my fpConnect
object? The "connect" sample doesn't show how to pass values in.

--Seth




On Wed, Dec 8, 2010 at 11:46 AM, Christian Schmitz
<[email protected]> wrote:
>
> Am 08.12.2010 um 17:38 schrieb Real Basic:
>
>>  But if I use my REALgraphics object in the
>> REALLoadObjectMethod I'm told that I cannot convert it into a
>> REALobjectStruct.
>
> Cast it.
>
> Greetings
> Christian
>
> --
> See you in Atlanta (USA) at the REAL Studio Summit 2011
>
> Registration and details here:
> http://arbpmembers.org/real-studio-summit-2011/
>
>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
>

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

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

Reply via email to