Skip to content

Latest commit

 

History

History
81 lines (62 loc) · 3.24 KB

File metadata and controls

81 lines (62 loc) · 3.24 KB
title Exporting from a DLL | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-tools
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
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
caps.latest.revision 7
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

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