//filename : Dll1.h#ifndef _DLL1_H_ #define _DLL1_H_#ifdef DLL1_API#else#define DLL1_API extern "C" _declspec(dllimport)#endif // DLL1_APIDLL1_API int _stdcall add(int a,int b);DLL1_API int _stdcall substract(int a,int b);#endif //filename:Dll1.cpp#define DLL1_API extern "C" _dec Read More
protected void Button1_Click(object sender, EventArgs e){ localhost.MyDemo MyService; // try to get the proxy from Session state MyService = Session["MyService"] as localhost.MyDemo; if (MyService == null) { // create the proxy MyService = new localhost.MyDemo(); ... Read More