gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C# interoperability


From: Pawel Kot
Subject: Re: C# interoperability
Date: Thu, 25 Oct 2007 09:01:23 +0200

Hi,

On 10/25/07, address@hidden <address@hidden> wrote:
> Having trouble retrieving sms messages from the phone using the gnokii
> library dll (gnokii.dll)
>
> In summary I have been able to connect to the phone, read details from
> the phone (nokia 5110).
> But very confused on how messages sms messages are retrieved. The most
> likely candidate function is
>
> gn_error gn_sms_get(gn_data * data, struct gn_statemachine *state)
>
> but most notably receiving an error because gn_data hasn't been
> initialized properly i.e.
> gn_sms_raw *raw_sms;         /* This is for phone driver, application
> using libgnokii should not touch this */
> gn_sms *sms;                 /* This is for user communication, phone
> driver should not have to touch this one */
>
> Is there anyone who can point me in the right direction.

See gnokii/gnokii-sms.c:getsms() on how gnokii does it. You simply
need to allocate memory for these two structures. Perhaps also for sms
folders.

take care,
pkot
-- 
Pawel Kot




reply via email to

[Prev in Thread] Current Thread [Next in Thread]