| You are here: | About>Computing & Technology>Delphi Programming> Advanced Delphi Techniques> DLLs Made Simpler |
![]() | Delphi Programming |
Join the DiscussionPost your views, comments, questions and doubts to this article Suggested ReadingDLLs Made SimplerThis article is aimed at removing the fear of writing DLLs for beginners.
Article submitted by Richard Le Mesurier for the Delphi Programming Quickies Contest.
Easier, SimplerThis document is aimed at removing the fear of writing DLLs (Dynamic Link Libraries) for beginners. A lot of beginners think DLLs are really complex, but in actual fact they are pretty simple.Hopefully this will provide a template you can use to develop your own. The actual code doesn't do very much. I have also included an idea I found in the Secure32.DLL (NT security, SSPI validation). This has a routine that returns the addresses of all routines in the DLL. I think this is a "good" way of coding, especially if you have a DLL with many routines and you don't want to have to keep calling GetProcAddress. Again, it's just the idea, and some explanatory notes on how _I_ did it. File names are rather long. I did it this way for explanatory purposes only. I would expect "real" code to use more sensible naming conventions... I have not attempted to explain all the Delphi functions used - use the F1 help. I am a beginner. If I made a mistake, please email me back and tell me. This pack started off as notes to me so I could remember the correct way to do all these methods. Things to remember when writing DLLs
Final wordsI was teaching myself the very basics of DLL programming the other day, and part of that involved me writing up a tutorial for my friends. Everything I have learnt about Delphi has either been self-taught, or through some Internet help - I love the strength of our community so would like to contribute. What goes around comes around...Basically, this is very informal document with source code. The DLL itself is pretty useless, but I have tried to explain the things that initially cared me about this topic. "DLL" is an intimidating word for a lot of us and I have tried to unmask this monster and show people that it really is easy. Join the DiscussionPost your views, comments, questions and doubts to this article Suggested Reading |
Las Vegas on a BudgetFind a BargainHotel DealsCheap EatsFree AttractionsEntertainment for Less |
All Topics | Email Article | | | ![]() |
| Advertising Info | News & Events | Work at About | SiteMap | Reprints | Help | Our Story | Be a Guide |
| User Agreement | Ethics Policy | Patent Info. | Privacy Policy | ©2008 About, Inc., A part of The New York Times Company. All rights reserved. |


