Hi I have developed very small program for calculation, and in that I have included my personal DLL files that I have created. The DLL files contains the code
And I am calling those DLL files from my program and while compiling the code I am getting the error like “Run-Time Check Failure #0 The value of ESP was not properly , any suggestion?Code:extern "A" declspec(dllexport) int fact(int n) { double j, fac; for(j = 2, fac = 1; j <= n; j++) fac*=j; return fac; }
Bookmarks