Visit site Leonardo's blog
November 2007
0
votes
Using Sqlite3 with Fcl-Db
Leonardo's blog
– In this tutorial, I'll try to explain how to access Sqlite3 databases usingFreePascal and Fcl-Db. Fcl-Db is the standard way of accessing databases using FreePascal, but you can find some other methods to connect to them, such as LibSql and Zeos.The first step is to install Sqlite versión 3.x.x, ...
October 2007
0
votes
Session class for SQLite
Leonardo's blog
– I needed Session management for a web project I made using Delphi with WebBroker, and found a unit called MISessionClass in newsgroups created by Tony Caduto. The problem with that unit was it worked with Interbase and my web hosting provider doesn't inlcude Interbase/Firebird in the package I ...
May 2007
0
votes
Sending big files to friends
Leonardo's blog
– A couple of weeks ago, my sister was working on an AutoCad design for an university assignment and wanted to send it to his teammate by email. She zipped it and tryed without any luck to send using her HotMail account, she can't send the file because HotMail imposes a size limitation of attachment ...
April 2007
0
votes
Your own zero-configuration web server
Leonardo's blog
– One month ago, a customer who's using a client/server application I've created for his office asked me if it's possible to make a simple web form where customers can add orders to his system using a web browser. Of course it's possible, one way is to contract with a web hosting provider and upload ...
February 2007
0
votes
Object Pascal & LDAP
Leonardo's blog
– Object Pascal & LDAPOne common feature of enterprise software is security, applications must be prepared to allow/deny access to its resources (modules or dialogs) to different usesers. The vast majority of development teams, every time a project involves user authentication develops its own methods ...
November 2006
0
votes
Is Delphi a memory predator?
Leonardo's blog
– In this article, i want to show why the Delphi way of development of visual applications is not as cleaner as you should want. When I say clean, i mean in memory terms, it mantains an instance of every form in memory, even if you don't want it.To show it in an example, just create a new application ...
October 2006
0
votes
Web software in Pascal?
Leonardo's blog
– In 1997, i and a partner where the owners of a small graphic design and editorial studio working with 133mhz - Win95 PCs and a Mac Performa 6200 (90 mhz). In that time, the usual type of job a customer could request was the design of a leaflet or printed magazine, eventually a customer could call ...
September 2006
0
votes
Why i can't capture exceptions from Dlls?
Leonardo's blog
– A very common topic in newsgroups is Dll Exception handling. If your dll raises an exception, the exception handler in the host app should not be able to recognize the class of the exception it trapped. That's because the host application doesn't recognizes the exception class raised by the dll.The ...
0
votes
Cross compiler Data Access
Leonardo's blog
– Object Pascal compilers offers a wide range of classes and components that allows you to connect to different databases, ranging from BDE to open source components. But many of them only works in Delphi or only in FreePascal, turning very dificult to develop cross platform database applications.One ...
August 2006
0
votes
Designing for the future
Leonardo's blog
– Most programmers doesn't take care of the future of the software they're writing, they just try to make it work and send it to the market. But many times, when a customer asks for a change, very large portions of the code must be rewritten. This is specially known in applications that share ...
June 2006
0
votes
Example added
Leonardo's blog
– In order to finalize this series of articles related to interfacing objects with Dll's i've added an example (as promised on my last post) you can download from this url.Feel free to post comments about the example and/or propose alternatives.
0
votes
Virtual-Abstract objects as Interfaces
Leonardo's blog
– In my last post i exposed a method to share objects between Dll's and applications. As i wrote in that post, the compiler doesn't know the type of received object (it assumes it's a pointer), so you must cast it to the correct type. In the code below, i casted it to TObject only to be sure it ...
0
votes
First blog!
Leonardo's blog
– Hi everybody, my name is Leonardo M. Ramé, i'm software developer from Córdoba, Argentina and started this blog to help the Object Pascal community with some hacks useful to me (and you).
0
votes
How to import an Object from a dll?
Leonardo's blog
– Some time ago, a boss of a company that i used to work gave a course of COM & DCOM technologies because he thought packages (bpl's) wasn't working as one might expect (actually the problem wasn't packages at all, but that's another story). He was trying to change packages to COM interfaces as a way ...



