[Gambas-user] Release of gambas 1.9.26

Benoit Minisini gambas at ...1...
Thu Mar 2 12:03:25 CET 2006


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?download

* 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 :-)

* The gb.db.form component has been fixed and optimized.

It now caches all the table definition, and so behaves far quicker when 
connecting to a non-local database.

* CheckBox control now can be tristate.

* The Sqlite version 2 driver returns.

I forgot to put it in the last version. Only Nigel detected that :-)

* Tables with more than about 30 fields do not crash the interpreter anymore.

And other bug fixes of course...

Enjoy it!

-- 
Benoit Minisini





More information about the User mailing list