Forex
Google

Go Back   Forex Trading > Downloads > Tools and utilities
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (4) Thread Tools Display Modes
  #21 (permalink)  
Old 11-26-2005, 02:41 PM
gnrslash gnrslash is offline
Junior Member
 
Join Date: Nov 2005
Posts: 7
gnrslash is on a distinguished road
Quote:
Originally Posted by codersguru
Check your mail, if have not got them could I upload the dll and the visual basic calling example here?
I got it,
unfortunately the dll you sent me make strategybuilder crash.
more I tried to change the linker as explained but it returns a file not found error. sob
Attached Images
File Type: gif crash.GIF (25.8 KB, 454 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 11-26-2005, 04:46 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Unhappy Visual basic is really bad!

Quote:
Originally Posted by gnrslash
I got it,
unfortunately the dll you sent me make strategybuilder crash.
more I tried to change the linker as explained but it returns a file not found error. sob
You are right, MT4 crashed here too, then I spent all the day trying to figure where the error and finally I discovered that "Visual basic is really bad!"

Even this code didn't work (Although it didn't crash MT4):

PHP Code:
Public Function FirstTime(accnumber As Integer) As Integer
FirstTime 
1
End 
Function

Public Function 
isTrial(accnumber As Integer) As Integer
isTrial 
1
End 
Function
Public Function 
isFull(accnumber As Integer) As Integer
isFull 

End 
Function 
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 11-26-2005, 05:14 PM
gnrslash gnrslash is offline
Junior Member
 
Join Date: Nov 2005
Posts: 7
gnrslash is on a distinguished road
Smile

Quote:
Originally Posted by codersguru
You are right, MT4 crashed here too, then I spent all the day trying to figure where the error and finally I discovered that "Visual basic is really bad!"

Even this code didn't work (Although it didn't crash MT4):

PHP Code:
Public Function FirstTime(accnumber As Integer) As Integer
FirstTime 
1
End 
Function

Public Function 
isTrial(accnumber As Integer) As Integer
isTrial 
1
End 
Function
Public Function 
isFull(accnumber As Integer) As Integer
isFull 

End 
Function 

I'm glued at the screen too trying to figure out something.
Visual basic is good for normal and fast things but as you try
to do something different it becomes a hell. (notice the on error statement)
Did you try the procedure at Vb Helper you sent the link before?
I'm still not able to compile this dll. it keeps saying "error loading dll"
I'm even searching for some tool, add-in or something but nothing till now
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 11-26-2005, 05:40 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Unhappy

Quote:
Originally Posted by gnrslash
I'm glued at the screen too trying to figure out something.
Visual basic is good for normal and fast things but as you try
to do something different it becomes a hell. (notice the on error statement)
Did you try the procedure at Vb Helper you sent the link before?
I'm still not able to compile this dll. it keeps saying "error loading dll"
I'm even searching for some tool, add-in or something but nothing till now
I was one of Visual Basic loyal fans for 5 years; it scared me to learn C++.
But now as a Visual C++ developer I feel the difference.
Visual basic is good for normal and fast things but it is not a real programming language (I'm sorry )

Could you give me the time to convert your Visual basic code to Visual C++? is it useful for you to convert it?


About the procedure at Vb Helper, I used it and I made the dll I sent to you. But it still bad dll (I think it's not pure win32 dll, it's an activex control because you can register and unregister it with regsvr32.exe"
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 11-26-2005, 06:30 PM
gnrslash gnrslash is offline
Junior Member
 
Join Date: Nov 2005
Posts: 7
gnrslash is on a distinguished road
Quote:
Originally Posted by codersguru
I was one of Visual Basic loyal fans for 5 years; it scared me to learn C++.
But now as a Visual C++ developer I feel the difference.
Visual basic is good for normal and fast things but it is not a real programming language (I'm sorry )

Could you give me the time to convert your Visual basic code to Visual C++? is it useful for you to convert it?


About the procedure at Vb Helper, I used it and I made the dll I sent to you. But it still bad dll (I think it's not pure win32 dll, it's an activex control because you can register and unregister it with regsvr32.exe"
You will do me a great favour converting the code, I wouldn't know how to thank you.
But maybe I'll have to edit here and then, small things i suppose, after the testing. I'll try to import your converted code in the vc++ compiler but since I never used it maybe I'll need your help again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 11-26-2005, 10:13 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Post You're welcome.

Quote:
Originally Posted by gnrslash
You will do me a great favour converting the code, I wouldn't know how to thank you.
But maybe I'll have to edit here and then, small things i suppose, after the testing. I'll try to import your converted code in the vc++ compiler but since I never used it maybe I'll need your help again.
gnrslash,

You're welcome.
I'll do my best to convert it to VC++, We are here to help each others and to make this forum the BEST .
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27 (permalink)  
Old 12-01-2005, 03:26 PM
sx ted sx ted is offline
Junior Member
 
Join Date: Nov 2005
Posts: 5
sx ted is on a distinguished road
Re: CodersGuru 11-26-2005, 12:10 AM
Sorry for the delay, thank you very much for the extra functions, take care.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28 (permalink)  
Old 12-20-2005, 03:25 PM
tworkman tworkman is offline
Junior Member
 
Join Date: Dec 2005
Posts: 15
tworkman is on a distinguished road
Thumbs up Very exciting!

I just came across this thread after searching for several days. I've been looking for something very similar, and would like to participate in the effort if possible. Is there a way that you could add a function to run an external program? if I could do that, I would be able to pass a command line string (xml) to a c# program I have. From there I could do whatever I wanted with the data. My current goal is to send it via a winsock control to a listening client, so in reality, another cool function to have in the dll you are working on is direct winsock function calls.

Could you also email me with the dll/code you have developed?

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29 (permalink)  
Old 12-20-2005, 04:00 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Exclamation Executing an external program & Winsock direct calling

Quote:
Originally Posted by tworkman
I just came across this thread after searching for several days. I've been looking for something very similar, and would like to participate in the effort if possible. Is there a way that you could add a function to run an external program? if I could do that, I would be able to pass a command line string (xml) to a c# program I have. From there I could do whatever I wanted with the data. My current goal is to send it via a winsock control to a listening client, so in reality, another cool function to have in the dll you are working on is direct winsock function calls.

Could you also email me with the dll/code you have developed?

Thanks!
tworkman,

It's a very good idea. (Executing an external program & Winsock direct calling).


But do you think it'll be good to put those function in the File Handling dll?

Isn抰 it better to make another dll(s)?


I think executing an external program fit the File Handling dll, I'll add it and tell you.


About the Winsock, which functions you want to use?


I think you need these functions:


send
connect
listen
recv
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #30 (permalink)  
Old 12-20-2005, 04:12 PM
tworkman tworkman is offline
Junior Member
 
Join Date: Dec 2005
Posts: 15
tworkman is on a distinguished road
Post

Yes, separating the winsock from the other file functions is what I had in mind as well - I didn't want to push my luck in directly asking for it though ;-)

As for winsock, I hadn't thought much of listening and receiving, because I didn't think it would be possible from MT. But if so, that would open up a whole new world of possibilities - controlling mt4 from outside. Sort of gets around the non-existent mt4 API issue???

Interesting thoughts. Thanks in advance for what you can do!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/tools-utilities/386-mt4-files-functions-replacement.html
Posted By For Type Date
File functions - Part 1 This thread Refback 03-05-2008 01:29 PM
MT4编程学习教程! - MT4系统交易 - 外汇牛人邦 飞狐免费外汇行情接收!飞狐外汇接口! - Powered by Discuz! This thread Refback 01-11-2008 05:45 PM
Mql - Metatrader Development Course This thread Refback 07-19-2007 02:50 AM
File functions - Part 1 | www.metatrader.info This thread Refback 06-21-2007 06:21 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
File Functions intelligent_14 Questions 6 07-11-2006 08:37 PM
Unusual Functions intelligent_14 Questions 3 06-23-2006 11:20 PM
Appendix 2 - Trading functions codersguru Lessons 8 12-26-2005 01:46 PM
Lesson 7 - Functions codersguru Lessons 2 11-02-2005 03:32 PM


All times are GMT. The time now is 10:51 AM.