I've released my second book about FreePascal/Lazarus/Object Pascal.
Book title is
Second step with object pascal. In Arabic "الخطوة الثانية مع أوبجكت باسكال"
You can download this book from here
http://code.sd/secondstepThe book also contains a lot of sample applications written in Lazarus.
Chapters:1. Memory
2. Files management
3. Relational Databases
4. Web Applications
5. Socket programming
Contents:
Contents
Introduction ................................................ .................................................. ....... 2
Object Pascal Language ............................................ ............................................. 2
Free Pascal ............................................... .................................................. .. 2
Lazaras ................................................ .................................................. ..... 2
Features of Free Pascal .............................................. .............................................. 3
Chapter I
Memory
Introduction ................................................ .................................................. ....... 9
virtual memory ............................................... ............................................ 9
Memory and programs ............................................... ............................................ 10
Memory and variables ............................................... .......................................... 12
Move Function .............................................. ................................................ 14
Pointers .............................................. ........................................ 16
Memory allocation ............................................. ...................... 19
Sharing memory locations .............................................. ........................................ 12
precautions in dealing with pointers ............................................ .............................. 22
Untyped Pointers ........................................... ................................... 25
Linked List ............................................. ........................................ 27
Linked List program ............................................. .................................... 27
Doubly linked list ........................................... ........................................ 41
Strings and memory ............................................... .................................... 50
Short String ............................................... ............................................ 50
Null terminated string ............................................... .............................. 51
Ansi String ............................................... ............................................. 52
Objects and components ....................................................... ....... 55
Chapter II
Files Management
Introduction ................................................ .................................................. .... 57
Listing files ............................................... ........................................... 57
Listing Directory .............................................. ....................................... 58
Lines numbers program ............................................ ................................ 58
Folder Size program ............................................ ...................... 60
Smart backup program .............................................. ......................................... 63
Chapter III
Relational Databases
Introduction ................................................ .................................................. .... 96
Firebird Database ............................................. ..................................... 96
Requerements of database programs ............................................. ............................. 96
FireBird administration tools ........................................... ......................70
School library program .............................................. ...................................... 70
Searching ............................................... ................................................. 77
Modify the data ............................................... ................................................ 80
Borrow and return books .............................................. ........................................ 82
Bi Directional Record set .......................................... ....................................... 87
Borrowed Books report .............................................. .......................................... 91
Garage program .............................................. ...................................... 94
Reports ................................................ ................................................... 100
Journal Program (Accounting) ................................. ........................................ 104
Security in FireBird database ................................................. ........................ 118
Accounting systems .............................................. ...................................... 119
Chapter IV
Web Applications
Introduction ................................................ ................................................... 121
Web server .................................................... ............................................... 122
First web program .............................................. ......................................... 123
CGI protocol .................................................. ........................................... 125
Free Spider Package .............................................. ..................................... 125
First FreeSpider Program ............................................ ................................ 126
Sending parameters ............................................... ........................................ 128
Using static pages .............................................. ........................................... 129
Action Component .............................................. ........................................... 131
Books borwser application .............................................. ................................ 132
Get method .............................................. ...................................................... 135
Forms ......................................................... .................................................. 135
Post method .............................................. ....................................................... 136
Spider Form ............................................. ........................................................ 138
CGI application Lifecycle ........................................... ................................. 141
Cookies .............................................. ....................................................... 141
News web application ........................................ ............................................ 144
Separating design from application ................................... ............................... 148
Chapter V
Socket programming
Introduction ................................................ .................................................. 152
LNet Package .............................................. .............................................. 152
Commands Application ............................................. ................................... 153
Chat application ............................................... .......................................... 158
HTTP Protocol .............................................. ......................................... 163
HTTP Terminal program ............................................. ............................. 163
FTP Protocol .............................................. .............................................. 165
FTP CLient Program .............................................. ................................... 165