MQL4, I cannot load #import "user32.dll", error msg -- Cannot call 'user32.dll::RegisterWindowMessageW', 'user32.dll' is not loaded

To add comments, please log in or register
zeeye
17
zeeye  
#import "user32.dll"
   int RegisterWindowMessageW(string MessageName);
   int PostMessageW(int hwnd,int msg,int wparam,uchar &Name[]);


got error message:

2019.05.18 12:30:16.944 2019.01.01 00:00:00  Cannot call 'user32.dll::RegisterWindowMessageW', 'user32.dll' is not loaded


Menu:  Tools->Options->Expert Advisors->Allow DLL imports has Cheched


but I cannot find user32.dll in the folder: Terminal\DA3C92B1779898CC0CACD726A655BECB\MQL4\Libraries


thanks for your help



William Roeder
18873
William Roeder  
Since Build 600 and Higher (17.02.2014):
  1. MT4 has been 64 bit.
  2. that was only used in off-line generators. No longer used in the Period Convertor.
  3. the format of history has changed.
Are you trying to compile some ancient generator?
Alain Verleyen
38248
Alain Verleyen  
MT4 is 32 bits application, and has always been.
Mladen Rakic
138544
Mladen Rakic  
MT4 was never 64 bit
zeeye:
#import "user32.dll"
   int RegisterWindowMessageW(string MessageName);
   int PostMessageW(int hwnd,int msg,int wparam,uchar &Name[]);


got error message:

2019.05.18 12:30:16.944 2019.01.01 00:00:00  Cannot call 'user32.dll::RegisterWindowMessageW', 'user32.dll' is not loaded


Menu:  Tools->Options->Expert Advisors->Allow DLL imports has Cheched


but I cannot find user32.dll in the folder: Terminal\DA3C92B1779898CC0CACD726A655BECB\MQL4\Libraries


thanks for your help



No problem with it (if you enabled dll imports in the indicator/expert/script options)

PS:  your PostMessageW() prototype is wrong

To add comments, please log in or register