how to code win32 dll ?
YALEWANG:
how to code win32 dll ?
how to code win32 dll ?
Hi YALEWANG and/or ywang 2,
http://www.psnouvion.com/projects/view/mt4_sample_dll
https://www.forex-tsd.com/metatrader-4-mql-4-development-course/3395-create-your-own-metatrader-extension-dll.html old me on page 9
thank you very much
Tks!
your idea its a lifesaver!
worked here... for me...
your idea its a lifesaver!
worked here... for me...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
1 I create a VC6.0 Win32 Dynamic-Link Library project, new one file, the code:
#define MT4_EXPFUNC __declspec(dllexport)int a=0;
extern "C" MT4_EXPFUNC int __stdcall GetValue()
{
return a++;
}
build one lib: DLIB.dll
Copy DLIB.dll in the folder:MetaTrader 4\experts\libraries
2 mql code:
#import "DLIB.dll"
int GetValue();
#import
int start()
{
//----
int a=GetValue();
Print(a);//
//----
return(0);
}
build, no error.
run, the error message:
cannot call function 'GetValue' from dll 'DLIB.dll'
Thanks very much.