Skip to content

MQL5 Update Breaks SQLite: uchar[] to const char Conversion Not Allowed* #7

@zinwaiyan94

Description

@zinwaiyan94

The code needs to be updated for the latest MQL5 version because the new MQL5 does not allow converting uchar[] to const char[] &, which causes errors in Imports.mqh, statement.mqh, and SQLite3.mqh.

For example:

uchar u8filename[];
StringToUtf8(filename, u8filename);
int res = 0;
if (vfs == "")
res = sqlite3_open_v2(u8filename, handle, flags, 0);

In this code, u8filename is of type uchar[], but sqlite3_open_v2() expects a parameter of type const char*.
This type mismatch creates a compilation error in the new MQL5 version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions