Mostly Delphi you have always chance to manage your executable. You can re-pack it, crypt it ( you know that we can see most of the strings or code strings in an executable compiled with delphi. Remember DeDe ) or compress the executable.
There’re many programs doing this job. You can look most of them at protools.
I tested most of them for my personal use. At last i choose pelock.
Pelock is a packer, crypter and compressor for your delphi programs. It has very simple and easy to use interface. Additionally you can make demo check by this program.
But not most of these are pelock’s good side. The good with pelock is the producer. If you encounter some problems he always help you on your job. He wants you to send the files, extra libs, etc. Solve the problem and recompile his program and then send it to you. So pelock is my first choice because of the very very nice producer.
While using pelock you always now that the producer is at the other side waiting there to solve the problem related to his software!
If you make a tag system and want to make a tag cloud page which will writes tags in different sizes accoring to use time refer to Tag Cloud document. That’s an easy and practical way for you. (Document Mirror on Focus on Code (186KB))
If you want to learn CSS Positioning or need a manual in your pocket you can refer to Learn CSS Positioning in Ten Steps article. That’s a very good and simple article including most of positioning styles. (Document Mirror on Focus on Code (88KB))
If you want to read and write to TWebBrowser component on Delphi you can refer to How to read and write form elements article. Article contains most wishes while using TWebBrowser. Before using these just insert Microsoft HTML Object Library to your project and add MSHTML_TLB class to your uses block.(Document Mirror on Focus on Code (52KB))
When using Zeos Database Objects you can encounter some problems about charset. The main charset problem will be that you’re using a charset different than latin1. In this case you can get some errors while showing or fetching data from mySQL.
We have a simple solution :
Continue reading ‘ZeosLib Database Component Charset Problems’
PNG Delphi is Delphi Component (or Class) for doing PNG operations through Delphi. It has lots of functions and procedures to manipulate PNG files.
For example if you want to load a PNG image practically to a TImage area simply write this code :
Continue reading ‘Delphi And Portable Network Graphics (PNG)’
If a field’s type is TEXT ( like LONGTEXT, MEDIUMTEXT etc) and we try to show it on a DBGrid it’ll be shown like (MEMO). But everyone in the world want to show some part of the TEXT field to user. For example you want to show user first 200 characters of the TEXT field.
To solve this situation;
Continue reading ‘Showing Memo Fields on a DBGrid’
If you are using any OLE dedicated object (for example, if you’re parsing an xml document, there was a XMLDocument in your program, etc) and also if you’re using thread at the same time you can get some errors, mostly cache, ram errors. To solve this situation you must write;
CoInitialize(nil);
at your thread code before execute method. And after the thread function ends you must write;
CoUnInitialize;
Sometimes you can encounter errors like below while starting your Delphi IDE :
Unable to open key "SOFTWARE\Borland\BDS\3.0\Personalities" for read
or
Unable to open key "SOFTWARE\Borland\BDS\4.0\Personalities" for read
This error can occur by any of these :
Continue reading ‘Unable to Open Key for Read’
Latest Comments