pass some values from .dll file to experts..

 

hi all..

currently i made some ea that get int value from .dll file.. but i face some problem regarding this matter.. below is the c++ source code for dll file..

#include "stdafx.h"
#define MT4_EXPFUNC __declspec(dllexport)
#include "test.h"


#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif



MT4_EXPFUNC int __stdcall GetIntValue()
{
return(5);
} 
but i got an error below..
mfcs42d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in ExpertSample.obj
mfcs42d.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in ExpertSample.obj; second definition ignored
Creating library Debug/test.lib and object Debug/test.exp
Debug/test.dll : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

test.dll - 2 error(s), 1 warning(s) 
can someone help me how to handle this problem.. maybe i made some mistake or missing somewhere..