hi;
just a small question: I looked at a good number of MT4 dll source files and I noticed that some use: BOOL APIENTRY DllMain while others not.
(e.g. official MT4 experts/samples/DLLSample
My question: is there any rule of thumb that such as the MTF sample should be included as default?
just a small question: I looked at a good number of MT4 dll source files and I noticed that some use: BOOL APIENTRY DllMain while others not.
(e.g. official MT4 experts/samples/DLLSample
PHP Code
//+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ BOOL APIENTRY DllMain(HANDLE hModule,DWORD ul_reason_for_call,LPVOID lpReserved) { //---- switch(ul_reason_for_call) { case DLL_PROCESS_ATTACH: case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: break; } //---- return(TRUE); }
__Thanks__ MJ