TestDLL.h extern "C" int __stdcall MyDll_MySum(int , int); TestDLL.c #include <windows.h> #include "TestDLL.h" int __stdcall MyDll_MySum(int firstNum, int SecondNum) { int Sum; Sum = firstNum + SecondNum; return Sum; } TestDLL.odl [ uuid(5F744182-7A6F-11d4-A77D-0050BA0556E1), helpstring("My DLL Tesing"), lcid(0x0409), version(1.0) ] library TestDLL { [ helpstring("Sample functions exported by TestDll.dll"), version(1.0), dllname("TestDll.dll") ] module MyDllFunctions { [ helpstring("Sum 2 numbers."), entry("MyDll_MySum") ] int __stdcall MySum([in] int firstNum, [in] int SecondNum); } }; // End of Library TestDLL.rc 1 typelib TestDLL.tlb TestDLL.def LIBRARY TestDLL DESCRIPTION 'My Test DLL' EXPORTS MyDll_MySumThank you very much!!!!