[Gambas-user] Issue trying to access external Libraties

Gareth Bult gareth at ...1689...
Wed Jan 16 15:53:03 CET 2008


Mmm,

Interesting .. just calling the routine without the print no longer gives an error.

However, the documentation on the site states;

Function: virDomainGetInfo
int	virDomainGetInfo		(virDomainPtr domain, virDomainInfoPtr info)

Extract information about a domain. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted.
domain:	a domain object
info:	pointer to a virDomainInfo structure allocated by the user
Returns:	0 in case of success and -1 in case of failure.

.... confused ...


----- Original Message -----
step 3.: "Daniel Campos" <dcamposf at ...626...>
To: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
Sent: 16 January 2008 10:46:04 o'clock (GMT) Europe/London
Subject: Re: [Gambas-user] Issue trying to access external Libraties

>
> I'm trying to call functions from an external "C" library and I'm getting so far, then running into a problem.
>
> I have;
>
> P UBLIC EXTERN virConnectOpenReadOnly(host AS String) AS Pointer IN "libvirt"
> PUBLIC EXTERN virDomainLookupByID(con AS Pointer, id AS Integer) AS Pointer IN "libvirt"
> PUBLIC EXTERN virDomainGetInfo(dom AS Pointer, inf AS String) IN "libvirt"

In this definition the last function has no return value, so you can
not print the output of the function, as there's not any return value.

I suppose that "inf" can be s pointer which receives the information
or something like that, or may be you forgot to put the return
value...


Daniel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user




More information about the User mailing list