![]() ![]() ![]() Now let's export some function from our new library. ![]() Go ahead and save the new project giving it a name like "MyFirstLibrary". So the new project is called "Project1.dll" rather than the usual "Project1.exe". Where an application has got the extension ".exe" a library has got ".dll". There is only one difference: It starts with the keyword library rather than program.Īnother difference is how it is listed in the project explorer. There is also a comment about using strings and ShareMem, but we can ignore that for now.Īt first glance, this looks like the project source for a normal console program. Select it and press OK and Delphi will automatically create a new DLL file project for you. There is one called "DLL Wizard" that's the one we need here. To create one you use the File -> New -> Other menu entry to open a dialog where you can select the project type you want to create. Exporting some functions from that libraryĭelphi has got a special kind of project for a DLL file. A DLL file (short for dynamic link library) is a special kind of executable that cannot be started by itself, but exports procedures and functions (called "Entry Points") for other executables to call.Ĭreating a DLL file with Delphi consists of two steps:Ģ. 2.2.1 Side note about calling conventionsĭelphi allows not only to create applications but also DLL files. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |