Click here to Skip to main content
11,924,469 members (54,562 online)
Click here to Skip to main content
Add your own
alternative version


6 bookmarked

HelloWorld.dll: The simplest way to create your first DLL

, 7 Feb 2013 CPOL
Rate this:
Please Sign up or sign in to vote.
How to create your first DLL without coding too much... :)


This tip is for seriously lazy people who don't take themselves too seriously and want to get over the creation of their first DLL quickly. This is an advanced beginner tutorial, not necessarily recommended for beginners.


You need to have the Microsoft Incremental Linker (link.exe). It comes with Microsoft Visual C++ and older MASM32 distributions. If you have Visual C++ installed then the linker is located somewhere around "c:\Program Files (x86)\Microsoft Visual Studio X.0\VC\bin\".

Creating your DLL

Run the following command: 


And voila! Congratulations!!! You have created your first DLL! You can load it with LoadLibrary() , and unload it with FreeLibrary(), but demonstrating that is out of the scope of this beginner tutorial.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer (Senior)
United Kingdom United Kingdom
No Biography provided

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.151125.3 | Last Updated 7 Feb 2013
Article Copyright 2012 by pasztorpisti
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid