[Gambas-devel] Some questions about Gambas C interface

Daniel Campos daniel.campos at ...103...
Tue Oct 12 13:57:17 CEST 2004


Hi Benoît:


I have some questions about Gambas C interface:

I'm using GB.Push, GB.Call and GB.GetFunction in order to call the
'Post' function of HttpClient from RPC Client. All seems to be ok with
this code:

GB.GetFunction (&Post,THIS->http,"Post",NULL );
		GB.Push(2,GB_T_STRING,"text/xml",8,GB_T_STRING,buffer->content,buffer-
>use);
		GB.Call (&Post,2,1);

Where "Post" is a GB_FUNCTION, and THIS->http is an HttpClient pointer.

However:

What's the meaning of the "signature" parameter from GB.GetFuncion? I
just used NULL.

How can I call to a property instead of a method?

How can I receive the return value after calling GB.Call?

After I do GB.Push must I free anything, or Gambas does it
automatically?

Well, that's all for today...:-))

Regards,

Daniel Campos






More information about the Devel mailing list