Home > Back-end >  VS2008 DLL problem how to solve?
VS2008 DLL problem how to solve?

Time:10-04

# ifdef CustomDll_EXPORTS
# define CustomDLL_API_declspec (dllexport)
# the else
# define CustomDLL_API_declspec (dllimport)
# endif
CustomDLL_APIint; Int DLLFuncAdd (int a, int b);
# include "CustomDll. H"
#include
BOOL APIENTRY DllMain (HMODULE HMODULE, dwords ul_reason_for_call LPVOID lpReserved)
{
The switch (ul_reason_for_call)
{
Case DLL_PROCESS_ATTACH:
Case DLL_THREAD_DETACH:
Case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
Int DLLFuncAdd (int a, int b)
{
Return a + b;
}

CodePudding user response:

What question clear
  • Related