We recommend using Visual Studio 2017

Importing into an Application


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Importing into an Application.

You can import functions into an application using two methods:

  • Use the keywords __declspec(dllimport) in a function definition in the main application

  • Use a module definition (.def) file along with __declspec(dllimport)

Importing and Exporting