Possible to insert dll import code ?
-
Hi,
I am trying to insert code to import a dll, #import ...............#import.
It needs to go directly after the #property entries at the very beginning of the code.
Currently I have to open each compilation & manually insert it.
Does anyone know if there is a block that allows MQL to be injected into that specific position or a cunning way around it ?
Many thanks in advance.
-
I was just wondering did you ever come right with this request.
Im trying to include the #import "wininet.dll" into my fxdreema code but im not coming right.
-
Not yet, sorry.
-
OK I have now managed to import a dll using fxdreema:
- Create a new CUSTOM block (click "Custom" from left hand panel).
- Enter a name for your block in the "new block..." field and press "create".
- Look down to the bottom panel on the screen with heading "Global variables,includes".
- Enter your import / include etc:
#import " myDLLname.dll"
or #include <Telegram.mqh> - Press "SAVE CHANGES" at the top
- Refresh fxdreema browser and you should see your new block listed under Custom blocks.
To get it to work I had to make sure the first block in OnInit is "Pass" and the next block is the DLL import block with no other blocks after it. I then started a separate "Pass" block to conduct the remaining OnInit actions.
-
@mantadiver Thank you very much for sharing this info. Much appreciated.