You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Test script:
+added Prints and test __int d0 inside int ViewInt() for comparison purposes
OUTPUT:
I read your code, @o_o, before writing previous posts and saw perfectly well that there is a union - that's why this bug seemed strange to me too, but it is obviously there.
However, I didn't find the bug in the lib(further down the code - in ViewArray and constructors __int) . However, I can assume from what is highlighted in OUTPUT (obviously strange for union) that the "kind" compiler did not see the change in __int after ViewArray (which operates only .b) and returned the last known value for .v = 0 (highlighted) from the cache "without looking" at d. v itself.
But here I have only assumptions, because I haven't seen the compliator itself, and I repeat, I haven't found any errors related to this bug in your code.
New article SQL and MQL5: Working with SQLite Database has been published:
Author: o_O
Hey man, great article.
Good afternoon,
I get 2 warnings when running the script:
2017.09.26 07:39:35.569 SQLite3Test 'C:\Users\Roman\AppData\Roaming\MetaQuotes\Terminal\MQL5\Libraries\sqlite3_32.dll' is not 64-bit version
Both libraries 32 and 64 were in the archive. I have Win7 64. I don't understand - what do I need to do?
I get 2 warnings when running the script:
2017.09.26 07:39:35.569 SQLite3Test 'C:\Users\Roman\AppData\Roaming\MetaQuotes\Terminal\MQL5\Libraries\sqlite3_32.dll' is not 64-bit version
2017.09.26 07:39:35.602 SQLite3Test (GAZP,H1) Cannot load 'C:\Users\Roman\AppData\Roaming\MetaQuotes\Terminal\MQL5\Libraries\sqlite3_32.dll' [193]
Both libraries 32 and 64 were in the archive. I have Win7 64. I don't understand - what do I need to do?
nothing
this is MT's reaction to import, but the code continues to work.
There is a fix for the PrintTable function in the appendix.
New article SQL and MQL5: Working with SQLite Database has been published:
Author: o_O
Do you have a 32 bits version ?
The issue is i have a lot of 32 bit customers...
Hello.
When I run SQLite3Test.mq5 I get error 14 (SQLITE_CANTOPEN). What am I doing wrong?
Hello.
When I run SQLite3Test.mq5 I get error 14 (SQLITE_CANTOPEN).
What am I doing wrong?
not debugging or logging the error location
do not debug or do not print the error location to the log
1. I run the script from the archive, "as is".
2. Debug "On real data". I enter the first function:
3. I get to this place in the SQLite3Base.mqh file:
4. After executing the line
int res=::sqlite3_open(file,m_db);I get res equal to 14. This is the end of the script.
Although, judging by the text of the article, it should be
"В результате работы появится файл базы данных в папке установки терминала MetaTrader 5."What can be the reason? Which way to look?
Checked the downloaded script
Everything worked correctly the first time
Serhii Shevchuk:
Which direction to look in?
start here
Checked the downloaded script
I checked it too:
Still error 14.
I realise it's hard to get any help from you. I'll just have to figure it out myself. Just keep in mind that your example doesn't work everywhere. I don't know why.