hello,
possible more example c++
regards
more C++ example
-
- Posts: 72
- Joined: Wed Apr 23, 2008 12:24 pm
-
- Posts: 72
- Joined: Wed Apr 23, 2008 12:24 pm
c++ sample
I look for
regards
I look for
Code: Select all
string substr=StringSubstr(Symbol(), 6, 1);
Code: Select all
MessageBox(" function returned the "+GetLastError()+" error\nContinue?", "Question", MB_YESNO|MB_ICONQUESTION);
regards
- Terranin
- Site Admin
- Posts: 833
- Joined: Sat Oct 21, 2006 4:39 pm
FinGeR wrote:c++ sample
I look forCode: Select all
string substr=StringSubstr(Symbol(), 6, 1);
Code: Select all
MessageBox(" function returned the "+GetLastError()+" error\nContinue?", "Question", MB_YESNO|MB_ICONQUESTION);
regards
So, what is the question?
Hasta la vista
Mike
Mike
-
- Posts: 72
- Joined: Wed Apr 23, 2008 12:24 pm
- Terranin
- Site Admin
- Posts: 833
- Joined: Sat Oct 21, 2006 4:39 pm
FinGeR wrote:I would want
1. MessageBox on chart with YES and NO Button
2. subtracted string or char
(like MQL4 Function StringSubstr( string text, int start, int length=0) )
thanks
regards
1. You can do it like this:
Code: Select all
Pause();
MessageBox(NULL, "Some info", "Caption", MB_YESNO);
Continue();
Pause will pause execution until you call Continue, giving you time to work with message box.
2. I am not familiar how C++ works with strings, if you are C++ programmer you can do it by yourself. Just use regular C++ functions and conversions char* <--> string.
Hasta la vista
Mike
Mike
-
- Posts: 72
- Joined: Wed Apr 23, 2008 12:24 pm
Who is online
Users browsing this forum: No registered users and 20 guests