Adding a .DEF file to a DLL project

Hi,

I've created a .DLL application project in Visual Studio 2005 Express in C++. I am now trying to add a .DEF file to the project. I presumed I could add such a file much in the same fashion you can add a .CPP file or a .H file to the project. However this does not seem to be the case. Can anyone help with this, I'm still feeling my way around the IDE after migrating from C++ V6.

Thanks,




Answer this question

Adding a .DEF file to a DLL project

  • Andreas12345

    Just create a text file. Save it with the extension def. Add this existing file to the project. At least this works.

    Just write into the DEF file what you need. Thee is no special action thats needed with the DEF file. Just define the entry names for the DLL you need and thats it.



  • Jaypee

    What is your problem. Just create a new file with the Extension .DEF and add it to the project. Thats AFAIK all you need to do.

  • Luke Waters

    Moving the thread to the C++ Express groups.



  • Jonas Bergman

    Martin, I think the concern is that there appears to be no Add New Item ... that corresponds to a .DEF file or even some sort of miscellaneous file.

  • Adding a .DEF file to a DLL project