Skip to content

Commit aee359e

Browse files
author
Colin Robertson
committed
Fix typo, style, format
1 parent dbb3696 commit aee359e

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

docs/build/importing-function-calls-using-declspec-dllimport.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
---
2-
title: "Importing Function Calls Using __declspec(dllimport)"
2+
title: "Importing function calls using __declspec(dllimport)"
33
description: "How and why to use __declspec(dllimport) when calling DLL data and functions."
44
ms.date: "05/03/2020"
55
helpviewer_keywords: ["importing function calls [C++]", "dllimport attribute [C++], function call imports", "__declspec(dllimport) keyword [C++]", "function calls [C++], importing"]
66
ms.assetid: 6b53c616-0c6d-419a-8e2a-d2fff20510b3
77
---
8-
# Importing Function Calls Using `__declspec(dllimport)`
8+
# Importing function calls using `__declspec(dllimport)`
99

10-
The following code example shows how to use **`_declspec(dllimport)`** to import function calls from a DLL into an application. Assume that `func1` is a function that's in a DLL separate from the executable file that contains the **main** function.
10+
Annotating calls by using the **`__declspec(dllimport)`** can make them faster. **`__declspec(dllimport)`** is always required to access exported DLL data.
11+
12+
## Import a function from a DLL
13+
14+
The following code example shows how to use **`__declspec(dllimport)`** to import function calls from a DLL into an application. Assume that `func1` is a function that's in a DLL separate from the executable file that contains the **main** function.
1115

1216
Without **`__declspec(dllimport)`**, given this code:
1317

0 commit comments

Comments
 (0)