Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
Also, I'm not an expert, but from the little I've learned about winsock, the listening functions are blocking functions, which means (I think) that the application (mt4) needs to be multi threaded. It would have to switch back and forth between listening for an incoming message, and doing its own work.
Also, I'm not an expert, but from the little I've learned about winsock, the listening functions are blocking functions, which means (I think) that the application (mt4) needs to be multi threaded. It would have to switch back and forth between listening for an incoming message, and doing its own work.
for what its worth...
mt4 is already multi threaded. Every chart has its own thread. In order to use blocking winsock functions, one would like to attach a script to a chart with a continous loop. The script can then set/unset some global variables, which on the other hand can be used by any EA.
Do you still think these socket-based functions are a good idea? I'd like to hear if you've looked into it at all? Please let me know if you've had no time, or just given up on the idea.
Do you still think these socket-based functions are a good idea? I'd like to hear if you've looked into it at all? Please let me know if you've had no time, or just given up on the idea.
Thanks.
tworkman,
My problem is the time, I didn't give up the idea.
I'll inform you with the update as soon I get the time.
Hi again,
I've been working with a friend to write a dll in c++ that does this netcomm stuff, but I can't get past the problem mentioned above: cannot call function functionname from dll ' dllname.dll'
If and when your time permits, would you be willing to take a look at the source and let me know if you can see what is wrong? We've actually tried compiling with two different c++ compilers, and still get the same error. We even took the sample source code that mt4 delivers, and get the same error when trying to call those functions. Seems like it must be a compile issue.
Hi again,
I've been working with a friend to write a dll in c++ that does this netcomm stuff, but I can't get past the problem mentioned above: cannot call function functionname from dll ' dllname.dll'
If and when your time permits, would you be willing to take a look at the source and let me know if you can see what is wrong? We've actually tried compiling with two different c++ compilers, and still get the same error. We even took the sample source code that mt4 delivers, and get the same error when trying to call those functions. Seems like it must be a compile issue.
Please let me know.
Thanks.
tworkman,
Did you try the source code of my dll? it's wrote in VC++.
Please try to compile my source code and tell me what you get.
We even took the sample source code that mt4 delivers, and get the same error when trying to call those functions. Seems like it must be a compile issue.
Please let me know.
Thanks.
This is not good. I have no problems with compiling it. Maybe too simple, but have you enabled calling DLL functions from MT4?