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

 
#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



 
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?
 
MT4 is 32 bits application, and has always been.
 
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

Reason: