I just want to shoot this up so maybe pro coders can notice.
I'm wondering, Are they in a vacation?? All of them at once???
I'm pretty sure the problem is easy to solve, isn't it?
waiting for you guys.
SF
scarface:
Now, I kindly need help from bro coders to setup this and convert it to Dll if possible.
I just want to shoot this up so maybe pro coders can notice.
I'm wondering, Are they in a vacation?? All of them at once???
I'm pretty sure the problem is easy to solve, isn't it?
waiting for you guys.
I'm not sure from your messages whether (a) you are looking for general help on how to create DLLs, or (b) you are specifically looking to convert this named-pipe code into DLL form.
(a) is outside the scope of this forum. I don't think you're going to find anyone here prepared to hold your hand through such a very long tutorial.
(b) is a different matter. It would help to know why you want to convert the code into a DLL given that it's possible to use named pipes within MQ4, either using the above code or something like https://www.mql5.com/en/forum/127032. What's the need to turn this into a DLL?
scarface:
If you guys know the way using Delphi Xe for example, that would be great. If there are other options on how to make it DLL using other programs like VB, that would be fine, too.
Use Delphi or FPC/Lazarus.
You will create equally efficient code but with half the bugs and in half the time. There is no need to use C++ if you are not absolutely forced to use it by requirements beyond your control (And I cannot imagine what strange requirements this might be that would force one to chose C++ over Object Pascal for a new project).
On ForexFactory there is a thread about making DLLs with FPC/Lazarus, almost everything that is written there can also be 1:1 applied to Delphi.
Pipes are implemented in the class TPipeStream and implement the same easy to use high level interface as all other TStream descendants. No need to use these raw Windows API functions in an environment (the environment where you create your DLL) where there are standard libraries with convenient high level abstractions for things like this. And I am sure even C++ has already something comparable in one of the available libs nowadays.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi all,
Good day,
I'm on my way learning about Dll (Dynamic Library Link) and how to create it in the right way. I found a code at Forex Factory by 4xCoder that gives the main body of it, but he didn't complete it.
Here is the code:
The first is the interface==>
and To open the pipe as a client, do the following:
To Read from the pipe is a little tricky. You can't read directly into strings, so I read into a int array, then convert the array to a string :
And to write to the pipe:Now, I kindly need help from bro coders to setup this and convert it to Dll if possible.
If you guys know the way using Delphi Xe for example, that would be great. If there are other options on how to make it DLL using other programs like VB, that would be fine, too.
Looking forward to hearing from you.
Best wishes,
SF