0

I want to create a DLL project and add it implicitly to a win32 app. I have a header.h file and a func.c file to generate DLL. header.h:

#include <Shlwapi.h>
#include <header.h>

#ifdef LIBRARY_EXPORTS
#    define LIBRARY_API __declspec(dllexport)
#else
#    define LIBRARY_API __declspec(dllimport)
#endif

LIBRARY_API VOID __cdecl MyFunction(WCHAR *wchSource, WCHAR *wchDestination, WCHAR *wchKey);

and func.c:

#include <Shlwapi.h>

VOID MyFunction(WCHAR *wchSource, WCHAR *wchDestination, WCHAR *wchKey)
{
    // Some code here.
}

so my project builds DLL successfully but there is no .lib file beside it. Is my code wrong or I should change some properties of my project? Maybe in Linker part? My project is in visual studio 2010.

Ehsan Zand
  • 350
  • 1
  • 15

0 Answers0