[Gambas-user] Release of gambas 1.9.26

Benoit Minisini gambas at ...1...
Thu Mar 2 14:27:58 CET 2006


On Thursday 02 March 2006 12:03, Benoit Minisini wrote:
> What's new there?
>
> * You get a new component again!! gb.net.smtp, that allows to send mails,
> with attachments, by using the SMTP protocol.
>
> Here is a quick example:
>
> --8<-----------------------------------------------------------------------
>
>   DIM hSmtpClient AS NEW SmtpClient
>
>   WITH hSmtpClient
>
>     .Host = "smtp.wanadoo.fr"
>     .From = "gambas at ...764..."
>     .Subject = "This was sent by Gambas SMTP component!"
>     .To.Add("s.ballmer at ...1385...")
>     .Cc.Add("my.mother at ...67...")
>
>     .Add("How are you? :-)", "text/plain;charset=utf-8")
>     .Add(File.Load("~/Documents/rose.jpg"), "image/jpeg", "rose.jpg")
>     .Add(File.Load("~/Documents/photo.jpg"), "image/jpeg", "photo.jpg")
>     .Add(File.Load("~/Documents/gambas-presentation.pdf"),
> "application/pdf", "Gambas presentation")
>
>     .Send()
>
>   END WITH
>
> --8<-----------------------------------------------------------------------
>
> I wrote this component by taking the source code of libsmtp, whose
> development has been dropped by its author apparently, and fixing many
> bugs.
>
> I tested it only with KMail, so tell me if you have problems with other
> mail clients.
>
> * The presentation made by Laurent and I for the french meeting 'Solutions
> Linux 2006' becomes an OpenGL example. This example has its own package at
> Sourceforge. You can download it at:
>
> http://prdownloads.sourceforge.net/gambas/Presentation-1.9.26.tar.gz?downlo
>ad
>
> * Now everything is compiled with the gcc flag '-fvisibility=hidden'
> activated.
>
> That means that component exported symbols (GB_INIT, GB_EXIT, GB_CLASSES,
> GB, and optional component interface symbol) must be explicitely declared
> with the new EXPORT macro declared in gambas.h.
>
> Look in the source to know where to put EXPORT.
>
> I tried to put EXPORT everywhere it was needed, but I may forgot some. In
> this case, you will get an error when loading a component used by your
> project. You know where crying if you are in that case :-)
>

And of course I forgot one EXPORT! Please download the source package again, I 
just fixed the problem...

Sorry for the inconvenience!

Regards,

-- 
Benoit Minisini





More information about the User mailing list