I am using the Microsoft Visual C++ 2010 Express version and I would like to add a .def file to create a dll. The problem is that when I want to add an item I can only choose between:
- Windows form
- C++ file(.cpp)
- Header file(.h)
- Property Sheet(.props)
- Component Class
But no module-definition(.def). How can I do ?
I would be grateful if you had any idea.
Choose new project -> win32 -> win32 project. In the wizard click Next, choose "dll" radio box and also check "export symbols" options. You will be able to add a module definition file to the project after this, altough it is not required.