[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is it possible/acceptable to create a component in Gambas that depends on a shared library?
[Thread Prev] | [Thread Next]
- Subject: Re: Is it possible/acceptable to create a component in Gambas that depends on a shared library?
- From: gbWilly <gbWilly@xxxxxxxxxxxxxx>
- Date: Sun, 15 Feb 2026 20:01:58 +0000
- To: Gambas Mailing List <user@xxxxxxxxxxxxxxxxxxxxxx>
On Sunday, February 15th, 2026 at 20:57, gbWilly <gbWilly@xxxxxxxxxxxxxx> wrote: > > On Saturday, February 14th, 2026 at 21:00, Lee <t.lee.davidson@xxxxxxxxx> wrote: > > > > Up until now, I have used external functions that take a pointer to a structure, that I have created, as an argument and fill in > > the structure. I can then access the members of the structure. I have now used LibC's 'getlocaltime' function that actually > > returns a pointer to a structure. It works. > > > > Example attached. > > Thanks, I'll have a look at it > It works but produces a wrong year (-> 126). It seems to start give a result for year that start from 1900. I changed to: Print Format(Date(1900 + hTm.year, hTm.mon, hTm.mday, hTm.hour, hTm.min, hTm.sec), "yyyy-mm-dd hh:nn:ss") to get a correct date, but good example, thanks gbWilly