#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #include <windows.h> #include <stdlib.h> #include <stdio.h> double price(); double pp; #define MT4_EXPFUNC __declspec(dllexport) BOOL WINAPI DllEntryPoint(HINSTANCE hDll,DWORD dwReason, LPVOID Reserved) { switch(dwReason) { case DLL_PROCESS_ATTACH: break; case DLL_PROCESS_DETACH: break; } return TRUE; } MT4_EXPFUNC double __stdcall Reza(double ppp) { pp=ppp; return (pp); } double price(){ double dd; dd=pp; return dd; }
... #ifdef M_DLL __declspec(dllexport) double pp; #else __declspec(dllimport) double pp; #endif ...
MT4_EXPFUNC double __stdcall price()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)