Forex



Go Back   Forex Trading > Downloads > Tools and utilities
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
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.
See more

Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 11-26-2005, 12:10 AM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Talking Updated!

Quote:
Originally Posted by sx ted
CodersGuru, thank u super, have u got equivalent of FileTell()
sx ted,

I've updated the program. Now it includes these functions:

int gFileOpen(string file_name,int mode);
bool gFileWrite(int handle,string data);
bool gFileClose(int handle);
string gFileRead(int handle,int length=0);
void gFileSeek(int handle,int offset, int mode);
bool gFileDelete(string file_name);
int gFileSize(int handle);
int gFileTell(int handle);
bool gFileFlush(int handle);
bool gFileCopy(string source,string distance,bool IfExists);
bool gFileMove(string source,string distance);

I hope you enjoy it.
Attached Files
File Type: zip mtguru1.zip (87.8 KB, 444 views)
__________________
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #12 (permalink)  
Old 11-26-2005, 01:13 PM
Junior Member
 
Join Date: Nov 2005
Posts: 7
gnrslash is on a distinguished road
dll import problems

Hi guys,
I see you by your words you're very good with these things
and I hope you can give me a hand with my dll import problem.
I did exactly as codersguru explained with the filehandler dll.
I have the .ex4 file in the indicators directory. In the .ex4 there's an include to a file(.mqh) in the include directory which has an #import statement within to a dll in the libraries directory.
Dll is loaded but as soon as i drag the indicator in the chart I read in the expert tab of strategy builder: cannot call function functionname from dll ' dllname.dll'
I tested the dll from an .exe and all the function are running but within the .ex4 i can't find a way.I'm sure I'm missing something but I really don't know what. what could it be?
Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #13 (permalink)  
Old 11-26-2005, 01:23 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow There's something wrong in dll code.

Quote:
Originally Posted by gnrslash
Hi guys,
I see you by your words you're very good with these things
and I hope you can give me a hand with my dll import problem.
I did exactly as codersguru explained with the filehandler dll.
I have the .ex4 file in the indicators directory. In the .ex4 there's an include to a file(.mqh) in the include directory which has an #import statement within to a dll in the libraries directory.
Dll is loaded but as soon as i drag the indicator in the chart I read in the expert tab of strategy builder: cannot call function functionname from dll ' dllname.dll'
I tested the dll from an .exe and all the function are running but within the .ex4 i can't find a way.I'm sure I'm missing something but I really don't know what. what could it be?
Thank you
gnrslash,

If you enbabled "Allow DLL Import" option and still getting the message "cannot call function functionname from dll dllname.dll" it means there's something wrong in dll code.

Could I see the source code of the dll?
__________________
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #14 (permalink)  
Old 11-26-2005, 01:28 PM
Junior Member
 
Join Date: Nov 2005
Posts: 7
gnrslash is on a distinguished road
Sure.

Sure you can.
btw the "Allow dll import is checked"
Where can i send you?
Pm your email if you want
Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #15 (permalink)  
Old 11-26-2005, 01:34 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow

Quote:
Originally Posted by gnrslash
Sure you can.
btw the "Allow dll import is checked"
Where can i send you?
Pm your email if you want
Thank you
codersguru at gmail
__________________
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #16 (permalink)  
Old 11-26-2005, 01:43 PM
Junior Member
 
Join Date: Nov 2005
Posts: 7
gnrslash is on a distinguished road
Quote:
Originally Posted by codersguru
codersguru at gmail
email sent. Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #17 (permalink)  
Old 11-26-2005, 01:50 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow You're welcome!

Quote:
Originally Posted by gnrslash
email sent. Thank you
You're welcome!
Received and I'll check it.
__________________
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #18 (permalink)  
Old 11-26-2005, 02:54 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Lightbulb Visual basic dosen't create a standard dll.

Quote:
Originally Posted by gnrslash
email sent. Thank you
gnrslash,

The problem is Visual basic dosen't create a standard dll.

Please review this article:
http://www.vb-helper.com/howto_make_standard_dll.html

I've made the dll for you and I'll send it to your email now (I didn't test it yet in MQL4, please test it and tell me the result).
__________________
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #19 (permalink)  
Old 11-26-2005, 02:57 PM
Junior Member
 
Join Date: Nov 2005
Posts: 7
gnrslash is on a distinguished road
Quote:
Originally Posted by codersguru
gnrslash,

The problem is Visual basic dosen't create a standard dll.

Please review this article:
http://www.vb-helper.com/howto_make_standard_dll.html

I've made the dll for you and I'll send it to your email now (I didn't test it yet in MQL4, please test it and tell me the result).
I'd have bet something like this.
anyway, I didn't receive your email. I guess mail server blocks that kind of attachment. try to zip and resend. thank you again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #20 (permalink)  
Old 11-26-2005, 03:13 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Unhappy gmail attachment problem.

Quote:
Originally Posted by gnrslash
I'd have bet something like this.
anyway, I didn't receive your email. I guess mail server blocks that kind of attachment. try to zip and resend. thank you again
Check your mail, if have not got them could I upload the dll and the visual basic calling example here?
__________________
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
awesome, metatrader kernel32.dll, MT4 FILES, mtguru1.dll, mtguru1.zip


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

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


All times are GMT. The time now is 12:53 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.