Here is my simple function:

Code:
DLLTEST_API int add(int num1, int num2)
{
	return num1+num2;
}
and i have declared it in the header as follows:

Code:
class DLLTEST_API CDLLTest {
public:
	CDLLTest(void);
	// TODO: add your methods here.
	DLLTEST_API int add(int num1, int num2);
};