Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 2.67 KB

File metadata and controls

50 lines (29 loc) · 2.67 KB
description Learn more about: Exporting from a DLL
title Exporting from a DLL
ms.date 11/04/2016
helpviewer_keywords
exporting DLLs [C++], about exporting from DLLs
exporting functions [C++], DLLs (exporting from)
exporting DLLs [C++]
DLLs [C++], exporting from
DLL exports [C++]
functions [C++], exporting
exports table [C++]
ms.assetid a08f86c4-5996-460b-ae54-da2b764045f0

Exporting from a DLL

A DLL file has a layout very similar to an .exe file, with one important difference — a DLL file contains an exports table. The exports table contains the name of every function that the DLL exports to other executables. These functions are the entry points into the DLL; only the functions in the exports table can be accessed by other executables. Any other functions in the DLL are private to the DLL. The exports table of a DLL can be viewed by using the DUMPBIN tool with the /EXPORTS option.

You can export functions from a DLL using two methods:

When exporting functions with either method, make sure to use the __stdcall calling convention.

What do you want to do?

What do you want to know more about?

See also

Importing and Exporting